%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} %global gem_name bacon Summary: A ruby-based testing framework Name: %{?scl_prefix}rubygem-%{gem_name} Version: 1.1.0 Release: 11%{?dist} Group: Development/Languages License: MIT URL: http://chneukirchen.org/repos/bacon Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: %{?scl_prefix_ruby}ruby(rubygems) Requires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description Bacon is a small and lightweigt RSpec clone, providing essential spec framework features. %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 %build %install %{?scl:scl enable %{scl} - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ # If there were programs installed: mkdir -p %{buildroot}%{_bindir} cp -a ./%{_bindir}/* %{buildroot}%{_bindir} find %{buildroot}%{_bindir} -type f |xargs chmod a+x # Derop weird non-utf8 characters in e-mail framework LANG=C sed 's/\xc2//g' -i $RPM_BUILD_ROOT%{gem_instdir}/ChangeLog %check pushd $RPM_BUILD_ROOT%{gem_instdir} %{?scl:scl enable %{scl} - << \EOF} bin/bacon -Ilib:. --automatic --quiet %{?scl:EOF} popd %files %{_bindir}/bacon %dir %{gem_instdir} %dir %{gem_instdir}/bin %{gem_instdir}/bin/bacon %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %{gem_instdir}/Rakefile %{gem_instdir}/test %doc %{gem_instdir}/README %doc %{gem_instdir}/RDOX %doc %{gem_instdir}/COPYING %doc %{gem_instdir}/ChangeLog %doc %{gem_docdir} %changelog * Thu Jan 15 2015 Josef Stribny - 1.1.0-11 - rebuilt for ror41 * Fri Mar 21 2014 Vít Ondruch - 1.1.0-10 - Rebuid against new scl-utils to depend on -runtime package. Resolves: rhbz#1069109 * Wed Jun 12 2013 Josef Stribny - 1.1.0-9 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Wed Jul 25 2012 Bohuslav Kabrda - 1.1.0-8 - Specfile cleanup * Mon Apr 02 2012 Bohuslav Kabrda - 1.1.0-7 - Rebuilt for scl. * Tue Jan 24 2012 Bohuslav Kabrda - 1.1.0-6 - Rebuilt for Ruby 1.9.3. - Removed unneeded %%defattr and %%clean section. - Introduced -doc subpackage. * Sat Jan 14 2012 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 29 2009 Lubomir Rintel (Good Data) - 1.1.0-2 - Run tests - Drop useless macro * Thu Jun 25 2009 Lubomir Rintel (Good Data) - 1.1.0-1 - Package generated by gem2rpm - Fix up plist - Make rpmlint happy