[rubygem-CFPropertyList] Initial commit.

Vít Ondruch vondruch at fedoraproject.org
Fri Mar 20 11:46:07 UTC 2015


commit b043573afc12940a48409bb32d8d5a5f1483c1e3
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Mar 19 12:20:49 2015 +0100

    Initial commit.

 rubygem-CFPropertyList.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
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 at redhat.com> - 2.3.0-1
+- Initial package


More information about the scm-commits mailing list