%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} %global gem_name tilt %global bootstrap 0 Summary: Generic interface to multiple Ruby template engines Name: %{?scl_prefix}rubygem-%{gem_name} Version: 1.3.3 Release: 13%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rtomayko/%{gem_name} Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Support RDoc 4.0 # https://github.com/rtomayko/tilt/pull/168 Patch0: ruby200-rubygem-tilt-1.3.3-rdoc-4.0-support-fix.patch Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) Requires: %{?scl_prefix_ruby}ruby BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}ruby # comment out the packages that are not in the scl %if 0%{bootstrap} < 1 BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) #BuildRequires: %{?scl_prefix}rubygem(nokogiri) BuildRequires: %{?scl_prefix}rubygem(erubis) #BuildRequires: %{?scl_prefix}rubygem(haml) BuildRequires: %{?scl_prefix}rubygem(builder) #BuildRequires: %{?scl_prefix}rubygem(RedCloth) %endif # Markaby test fails. It is probably due to rather old version found in Fedora. # https://github.com/rtomayko/tilt/issues/96 # BuildRequires: %{?scl_prefix}rubygem(markaby) # RDiscount test fails. Is it due to old version in Fedora? # BuildRequires: %{?scl_prefix}rubygem(rdiscount) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description Generic interface to multiple Ruby template engines %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires:%{?scl_prefix}%{pkg_name} = %{version}-%{release} %description doc Documentation for %{pkg_name} %prep %setup -q -c -T %{?scl:scl enable %scl - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} pushd .%{gem_instdir} %patch0 -p1 popd %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir} -name '*.orig' -delete %check %if 0%{bootstrap} < 1 pushd %{buildroot}%{gem_instdir} %{?scl:scl enable %scl - << \EOF} RUBYOPT="-rrdoc" LANG=en_US.utf8 testrb -Ilib test/*_test.rb %{?scl:EOF} popd %endif %files %dir %{gem_instdir} %{_bindir}/%{gem_name} %exclude %{gem_instdir}/%{gem_name}.gemspec %if "%{bootstrap}" == "0" #%exclude %{gem_instdir}/.sass-cache #%exclude %{gem_instdir}/.yardoc %endif %exclude %{gem_instdir}/Gemfile %{gem_instdir}/bin %{gem_libdir} %doc %{gem_instdir}/COPYING %doc %{gem_instdir}/README.md %doc %{gem_instdir}/TEMPLATES.md %exclude %{gem_cache} %{gem_spec} %files doc %{gem_instdir}/Rakefile %doc %{gem_docdir} %{gem_instdir}/test %changelog * Fri Mar 21 2014 Vít Ondruch - 1.3.3-13 - Rebuid against new scl-utils to depend on -runtime package. Resolves: rhbz#1069109 * Thu Nov 28 2013 Josef Stribny - 1.3.3-12 - Get rid of patch leftovers * Thu Jun 13 2013 Josef Stribny - 1.3.3-11 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 - Patch for RDoc 4.0 * Wed Jun 12 2013 Josef Stribny - 1.3.3-10 - Remove RDoc patch - Resolves: rhbz#969099 * Thu Apr 25 2013 Vít Ondruch - 1.3.3-9 - Fix unowned directory (rhbz#912046, rhbz#956236). * Tue Jul 31 2012 Bohuslav Kabrda - 1.3.3-8 - Exclude the cached gem. * Thu Jul 26 2012 Bohuslav Kabrda - 1.3.3-7 - Specfile cleanup * Thu May 31 2012 Bohuslav Kabrda - 1.3.3-6 - Fix the rdoc test patch to apply cleanly. * Thu Apr 26 2012 Bohuslav Kabrda - 1.3.3-5 - Fix the rdoc template tests. * Mon Apr 02 2012 Bohuslav Kabrda - 1.3.3-4 - Rebuilt for scl. * Fri Feb 03 2012 Bohuslav Kabrda - 1.3.3-3 - Allowed running the tests. * Tue Jan 24 2012 Bohuslav Kabrda - 1.3.3-2 - Rebuilt for Ruby 1.9.3. - Introduced %%bootstrap macro to deal with dependency loop for BuildRequires. * Mon Jan 16 2012 Bohuslav Kabrda - 1.3.3-1 - Updated to tilt 1.3.3. - Removed patch that fixed BZ #715713, as it is a part of this version. - Excluded unnecessary files. * Sat Jan 14 2012 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jul 20 2011 Vít Ondruch - 1.3.2-1 - Updated to the tilt 1.3.2. - Test suite for erubis, haml, builder and RedCloth template engines enabled. * Fri Jun 24 2011 Vít Ondruch - 1.2.2-3 - Fixes FTBFS (rhbz#715713). * Thu Feb 10 2011 Vít Ondruch - 1.2.2-2 - Test moved to doc subpackage - %{gem_name} macro used whenever possible. * Mon Feb 07 2011 Vít Ondruch - 1.2.2-1 - Initial package