%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} # Generated from fakeweb-1.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name fakeweb Summary: A tool for faking responses to HTTP requests Name: %{?scl_prefix}rubygem-%{gem_name} Version: 1.3.0 Release: 12%{?dist} Group: Development/Languages License: MIT URL: http://github.com/chrisk/fakeweb Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Patch0: patch_out_samuel.patch Patch1: rubygem-fakeweb-1.3.0-ruby-2-tests-fix.patch Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) BuildRequires: %{?scl_prefix_ruby}rubygems-devel # The following BR are there for %%check BuildRequires: %{?scl_prefix}rubygem(mocha) BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) BuildRequires: %{?scl_prefix}rubygem(right_http_connection) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs. %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} %description doc This package contains documentation for %{pkg_name}. %prep %{?scl:scl enable %{scl} - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} pushd ./%{gem_instdir}/test %patch0 -p0 %patch1 -p2 popd %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # Don't vendor all your gems...srsly rm -rf %{buildroot}%{gem_instdir}/test/vendor/right_http* rm -rf %{buildroot}%{gem_instdir}/test/vendor/samuel* # rpmlint cleanup rm -f %{buildroot}%{gem_instdir}/test/vendor/samuel-0.2.1/.gitignore rm -f %{buildroot}%{gem_instdir}/.autotest rm -f %{buildroot}%{gem_instdir}/.gitignore # This file is also in specifications rm -f %{buildroot}%{gem_instdir}/*.gemspec # Get rid of patch leftovers find %{buildroot}%{gem_instdir} -name '*.orig' -delete %check pushd %{buildroot}%{gem_instdir} %{?scl:scl enable %{scl} - << \EOF} testrb -Ilib test %{?scl:EOF} popd %files %dir %{gem_instdir} %doc %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/CHANGELOG %{gem_instdir}/test %{gem_instdir}/Rakefile %changelog * Fri Mar 21 2014 Vít Ondruch - 1.3.0-12 - Rebuid against new scl-utils to depend on -runtime package. Resolves: rhbz#1069109 * Wed Feb 05 2014 Josef Stribny - 1.3.0-11 - Revert -doc license change since we remove the setup.rb in install * Mon Feb 03 2014 Josef Stribny - 1.3.0-10 - Fix license for -doc subpackage * Thu Nov 28 2013 Josef Stribny - 1.3.0-9 - Get rid of patch leftovers - Fix changelog * Thu Jul 26 2012 Bohuslav Kabrda - 1.3.0-8 - Specfile cleanup * Tue Apr 03 2012 Bohuslav Kabrda - 1.3.0-7 - Rebuilt for scl. * Tue Jan 31 2012 Bohuslav Kabrda - 1.3.0-6 - Rebuilt for Ruby 1.9.3. * Sun Jan 08 2012 Michael Stahnke - 1.3.0-5 - Bug bz#715907 FTBFS on rawhide * Wed Feb 09 2011 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Sep 17 2010 Michael Stahnke - 1.3.0-3 - A few minor fixes in spec per review * Mon Sep 13 2010 Michael Stahnke - 1.3.0-2 - Removing 'vendored' items * Sun Sep 12 2010 Michael Stahnke - 1.3.0-1 - Initial package