summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2015-03-19 12:20:49 +0100
committerVít Ondruch <vondruch@redhat.com>2015-03-19 12:20:49 +0100
commitf4163e1b0f3c2b5327771760414eee5cb5c2aa7b (patch)
tree99b2f5895e5c4c90519a02921048b9e4c6514326
parente01f1bc03b15b3de960542b91d075450755d8025 (diff)
downloadrubygem-CFPropertyList-f4163e1b0f3c2b5327771760414eee5cb5c2aa7b.tar.gz
rubygem-CFPropertyList-f4163e1b0f3c2b5327771760414eee5cb5c2aa7b.tar.xz
rubygem-CFPropertyList-f4163e1b0f3c2b5327771760414eee5cb5c2aa7b.zip
Initial commit.
-rw-r--r--rubygem-CFPropertyList.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/rubygem-CFPropertyList.spec b/rubygem-CFPropertyList.spec
new file mode 100644
index 0000000..d3efcae
--- /dev/null
+++ b/rubygem-CFPropertyList.spec
@@ -0,0 +1,76 @@
+# Generated from CFPropertyList-2.3.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name CFPropertyList
+
+Name: rubygem-%{gem_name}
+Version: 2.3.0
+Release: 1%{?dist}
+Summary: Read, write and manipulate property lists as defined by Apple
+Group: Development/Languages
+License: MIT
+URL: http://github.com/ckruse/CFPropertyList
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# git clone https://github.com/ckruse/CFPropertyList.git && cd CFPropertyList && git checkout cfpropertyList-2.3.0
+# tar czvf CFPropertyList-2.3.0-tests.tgz test/
+Source1: %{gem_name}-%{version}-tests.tgz
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(nokogiri)
+BuildArch: noarch
+
+%description
+This is a module to read, write and manipulate both binary and XML property
+lists as defined by apple.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+
+%check
+pushd .%{gem_instdir}
+tar xzvf %{SOURCE1}
+
+# We don't have rubygem-libxml-ruby in Fedora.
+sed -i '/_libxml/,/^ end$/ s/^/#/' test/test_*.rb
+
+ruby -Ilib:test -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/README
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+
+%changelog
+* Thu Mar 19 2015 Vít Ondruch <vondruch@redhat.com> - 2.3.0-1
+- Initial package