[rubygem-gem-patch] Initial import (#1)

Josef Stribny jstribny at fedoraproject.org
Mon Oct 29 13:45:17 UTC 2012


commit 273c4f92e2930a87f7908c46b9460b6d95761031
Author: Josef Strzibny <strzibny at dhcp-25-242.brq.redhat.com>
Date:   Mon Oct 29 14:45:04 2012 +0100

    Initial import (#1)

 .gitignore             |    1 +
 rubygem-gem-patch.spec |   76 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b170285 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gem-patch-0.1.3.gem
diff --git a/rubygem-gem-patch.spec b/rubygem-gem-patch.spec
new file mode 100644
index 0000000..ae42e5a
--- /dev/null
+++ b/rubygem-gem-patch.spec
@@ -0,0 +1,76 @@
+# Generated from gem-patch-0.1.2.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name gem-patch
+%global rubyabi 1.9.1
+
+Summary: RubyGems plugin for patching gems
+Name: rubygem-%{gem_name}
+Version: 0.1.3
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/strzibny/gem-patch
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires:  rubygems-devel 
+BuildRequires:  rubygem(minitest)
+Requires:       ruby(abi) = 1.9.1
+Requires:       ruby(rubygems)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+`gem-patch` is a RubyGems plugin that helps to patch gems
+without manually opening and rebuilding them.
+It opens a given .gem file, extracts it, patches it with
+system `patch` command, clones its spec, updates the file list
+and builds the patched gem.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib test
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+
+%exclude %{gem_cache}
+%{gem_spec}
+%doc %{gem_instdir}/LICENCE
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/rakefile.rb
+%{gem_instdir}/test
+
+%changelog
+* Mon Oct 22 2012 Josef Strzibny <jstribny at redhat.com> - 0.1.3-1
+- Upgraded to version 0.1.3
+- Moved tests to -doc subpackage
+- Moved rakefile.rb to -doc subpackage
+- Moved LICENCE from -doc subpackage
+- Adjusted description of the package
+
+* Thu Oct 18 2012 Josef Strzibny <jstribny at redhat.com> - 0.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..f616d1d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+636610331a81acc0442a86f99ff3be65  gem-patch-0.1.3.gem


More information about the scm-commits mailing list