# 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 - 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 - 0.1.2-1 - Initial package