%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} %global gem_name builder Name: %{?scl_prefix}rubygem-%{gem_name} Version: 3.2.3 Release: 1%{?dist} Summary: Builders for MarkUp Group: Development/Languages License: MIT URL: http://onestepback.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Builder carries copy of Blankslate, which was in the meantime extracted into # independent gem. # https://github.com/jimweirich/builder/issues/24 # # Moreover, rubygem-blankslate is not yet in Fedora. # https://bugzilla.redhat.com/show_bug.cgi?id=771316 # # Requires: %{?scl_prefix}rubygem(blankslate) Requires: %{?scl_prefix_ruby}ruby(release) Requires: %{?scl_prefix_ruby}ruby(rubygems) BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}ruby BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} # Explicitly require runtime subpackage, as long as older scl-utils do not generate it %{?scl:Requires: %{?scl_prefix}runtime} %description Builder provides a number of builder objects that make creating structured data simple to do. Currently the following builder objects are supported: * XML Markup * XML Events %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{pkg_name}. %prep %setup -n %{pkg_name}-%{version} -q -c -T %{?scl:scl enable %{scl} - << \EOF} %gem_install -n %{SOURCE0} %{?scl:EOF} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # Fix anything executable that does not have a shebang. for file in `find %{buildroot}/%{gem_instdir} -name "*.rb"`; do [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod +x $file done chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc %check pushd .%{gem_instdir} %{?scl:scl enable %{scl} - << \EOF} set -e ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)' %{?scl:EOF} popd %files %dir %{gem_instdir} %doc %{gem_instdir}/MIT-LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGES %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %doc %{gem_instdir}/doc %{gem_instdir}/rakelib %{gem_instdir}/test %changelog * Mon Jan 16 2017 Vít Ondruch - 3.2.3-1 - Update to Builder 3.2.3. * Wed Apr 06 2016 Pavel Valena - 3.2.2-7 - Fix: build should fail on test failure * Fri Feb 19 2016 Pavel Valena - 3.2.2-6 - Add scl macros * Thu Feb 04 2016 Fedora Release Engineering - 3.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 3.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue May 26 2015 Josef Stribny - 3.2.2-3 - Fix tests to run with Minitest * Sun Jun 08 2014 Fedora Release Engineering - 3.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 20 2014 Vít Ondruch - 3.2.2-1 - Update to Builder 3.2.2. * Sun Aug 04 2013 Fedora Release Engineering - 3.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Feb 23 2013 Vít Ondruch - 3.1.4-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 3.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Oct 17 2012 Vít Ondruch - 3.1.4-1 - Update to Builder 3.1.4. * Thu Oct 11 2012 Vít Ondruch - 3.1.3-1 - Update to Builder 3.1.3. * Wed Jul 18 2012 Vít Ondruch - 3.0.0-1 - Update to Builder 3.0.0. * Fri Feb 03 2012 Vít Ondruch - 2.1.2-9 - Fixed license. * Thu Jan 19 2012 Vít Ondruch - 2.1.2-8 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 2.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Nov 25 2011 Vít Ondruch - 2.1.2-6 - Fix FTBFS rhbz#712927. * Wed Feb 09 2011 Fedora Release Engineering - 2.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 2.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 2.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Jul 29 2008 Jeroen van Meeuwen - 2.1.2-2 - Rebuild for review * Sun Jul 13 2008 root - 2.1.2-1 - Initial package