[rubygem-inifile/f16] First official build for Fedora.

Darryl L. Pierce mcpierce at fedoraproject.org
Wed Jan 2 14:10:42 UTC 2013


commit b2747304ae14f0372102dbe6e38ed114dd717ad9
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Wed Jan 2 08:03:45 2013 -0500

    First official build for Fedora.

 .gitignore           |    1 +
 rubygem-inifile.spec |  104 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1cdd465 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/inifile-2.0.2.gem
diff --git a/rubygem-inifile.spec b/rubygem-inifile.spec
new file mode 100644
index 0000000..414ac95
--- /dev/null
+++ b/rubygem-inifile.spec
@@ -0,0 +1,104 @@
+# Generated from inifile-2.0.2.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name inifile
+%global rubyabi 1.8
+
+Summary:       INI file reader and writer
+Name:          rubygem-%{gem_name}
+Version:       2.0.2
+Release:       2%{?dist}
+Group:         Development/Languages
+License:       MIT
+
+URL:           http://rubygems.org/gems/inifile
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel
+
+BuildArch:     noarch
+
+Requires:      ruby(abi) = %{rubyabi}
+Requires:      rubygems
+
+Provides:      rubygem(%{gem_name}) = %{version}
+
+
+%description
+Although made popular by Windows, INI files can be used on any system thanks
+to their flexibility. They allow a program to store configuration data, which
+can then be easily parsed and changed. Two notable systems that use the INI
+format are Samba and Trac.
+
+
+%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
+
+# apply any patches here
+
+
+%build
+gem build %{gem_name}.gemspec
+
+gem install --local \
+            --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+# cleanup some files that we don't package
+rm -rf %{buildroot}%{gem_instdir}/.gitignore
+rm -rf %{buildroot}%{gem_instdir}/.travis.yml
+
+
+%check
+# TODO tests need to be fixed upstream
+# ruby -Ilib test/test_inifile.rb
+
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/README.md
+%exclude %{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/test
+
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/History.txt
+
+%changelog
+* Wed Jan  2 2013 Darryl L. Pierce <dpierce at redhat.com> - 2.0.2-2
+- First official build for Fedora.
+
+* Wed Dec 19 2012 Darryl L. Pierce <dpierce at redhat.com> - 2.0.2-1.3
+- Removed the tests and Rakefile from being shipped.
+
+* Mon Dec 17 2012 Darryl L. Pierce <dpierce at redhat.com> - 2.0.2-1.2
+- Fixed the licence to be MIT.
+
+* Wed Dec 12 2012 Darryl L. Pierce <dpierce at redhat.com> - 2.0.2-1.1
+- Fixed up the spec based on current Ruby gem packaging guidelines.
+
+* Wed Nov 07 2012 Darryl L. Pierce <dpierce at redhat.com> - 2.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..764d3b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+85343673d62af520d08ef9a01bfb7726  inifile-2.0.2.gem


More information about the scm-commits mailing list