From f4163e1b0f3c2b5327771760414eee5cb5c2aa7b Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Thu, 19 Mar 2015 12:20:49 +0100 Subject: Initial commit. --- rubygem-CFPropertyList.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 rubygem-CFPropertyList.spec (limited to 'rubygem-CFPropertyList.spec') 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 - 2.3.0-1 +- Initial package -- cgit