%global gem_name rack-restful_submit Summary: Allows RESTful routing without Javascript and multiple submit buttons Name: rubygem-%{gem_name} Version: 1.2.2 Release: 24%{?dist} License: MIT URL: https://github.com/martincik/%{gem_name} Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Fix test suite to pass against Rack 1.6+. # https://github.com/martincik/rack-restful_submit/pull/4 Patch0: rubygem-rack-restful_submit-1.2.2-Fix-test-suite-to-pass-against-Rack-1.6.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(rack) >= 1.3.0 BuildRequires: rubygem(rack) < 3 BuildRequires: rubygem(rspec) BuildArch: noarch %description Implements support of RESTful resources with Rails MVC when Javascript is off and bulk operations are required with multiple submit buttons. %package doc Summary: Documentation for %{name} Requires:%{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec # Support rack 2.x # https://github.com/martincik/rack-restful_submit/pull/6 sed -i '// s/"~> 1.3"/">= 1.3", "< 3"/' %{gem_name}.gemspec %patch0 -p1 %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} rspec spec/ popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %doc %{gem_instdir}/README.markdown %{gem_instdir}/rack-restful_submit.gemspec %{gem_instdir}/spec %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.2.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.2.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.2.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.2.2-20 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.2.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.2.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Aug 03 2016 Jun Aruga - 1.2.2-10 - Fix a broken dependency for rack. (rhbz#1363893) * Thu Feb 04 2016 Fedora Release Engineering - 1.2.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 26 2015 Vít Ondruch - 1.2.2-8 - Fix test suite compabitility with Rack 1.6+. * Thu Jun 18 2015 Fedora Release Engineering - 1.2.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 07 2013 Vít Ondruch - 1.2.2-5 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 24 2012 Vít Ondruch - 1.2.2-2 - Rebuilt for Ruby 1.9.3. * Fri Jan 06 2012 Vít Ondruch - 1.2.2-1 - Updated to rack-restful_submit 1.2.2. * Tue Oct 04 2011 Vít Ondruch - 1.2.1-3 - Fix upgrade path. * Mon Aug 29 2011 Vít Ondruch - 1.2.1-1 - Updated to rack-restful_submit 1.2.1. * Tue Jun 28 2011 Vít Ondruch - 1.1.2-4 - Relaxed Rack dependency to ~> 1.1. * Tue Mar 08 2011 Vít Ondruch - 1.1.2-3 - Updated RSpec dependencies. RSpec2 used for newer distributions. * Wed Feb 09 2011 Fedora Release Engineering - 1.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 15 2010 Jozef Zigmund - 1.1.2-1 - Initial package