%global gem_name rack-protection %bcond_with bootstrap Name: rubygem-%{gem_name} Version: 3.0.5 Release: 5%{?dist} Summary: Ruby gem that protects against typical web attacks License: MIT URL: http://sinatrarb.com/protection/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/sinatra/sinatra.git && cd sinatra/rack-protection # git archive -v -o rack-protection-3.0.5-spec.txz v3.0.5 spec/ Source1: %{gem_name}-%{version}-spec.txz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby %if %{without bootstrap} BuildRequires: rubygem(rack) BuildRequires: rubygem(rspec) BuildRequires: rubygem(rack-test) %endif BuildArch: noarch %description Protect against typical web attacks, works with all Rack apps, including Rails. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b 1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %if %{without bootstrap} %check pushd .%{gem_instdir} ln -s %{_builddir}/spec spec rspec -r 'spec_helper' spec popd %endif %files %dir %{gem_instdir} %license %{gem_instdir}/License %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/rack-protection.gemspec %changelog * Fri Jul 19 2024 Fedora Release Engineering - 3.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 3.0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 3.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 19 2023 Vít Ondruch - 3.0.5-1 - Update to rack-protection 3.0.5. Resolves: rhbz#2107686 * Sat Jul 23 2022 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Feb 17 2022 Pavel Valena - 2.2.0-1 - Update to rack-protection 2.2.0. Resolves: rhbz#2054769 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Aug 01 2021 Pavel Valena - 2.1.0-1 - Update to rack-protection 2.1.0. Resolves: rhbz#1875986 * Fri Jul 23 2021 Fedora Release Engineering - 2.0.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Apr 28 2020 Vít Ondruch - 2.0.8.1-1 - Update to rack-protection 2.0.8.1. Resolves: rhbz#1744277 Resolves: rhbz#1800024 * Thu Jan 30 2020 Fedora Release Engineering - 2.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 11 2018 Jun Aruga - 2.0.3-1 - Update to rack-protection 2.0.3. * Fri Feb 09 2018 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 19 2017 Jun Aruga - 2.0.0-1 - Update to rack-protection 2.0.0. * Tue Feb 07 2017 Jun Aruga - 1.5.3-4 - Fix for RSpec 3 compatibility. * Thu Feb 04 2016 Fedora Release Engineering - 1.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Feb 23 2015 Vít Ondruch - 1.5.3-1 - Update to rack-protection 1.5.3. * Sun Jun 08 2014 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Michal Fojtik - 1.5.0-1 - Release 1.5.0 * Tue Mar 05 2013 Vít Ondruch - 1.3.2-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Fri Feb 22 2013 Michal Fojtik - 1.3.2-2 - Fixed rspec dependency * Thu Feb 21 2013 Michal Fojtik - 1.3.2-1 - Release 1.3.2 * Thu Feb 14 2013 Fedora Release Engineering - 1.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 24 2012 Bohuslav Kabrda - 1.2.0-4 - Set %%bootstrap to 0 to allow tests. * Tue Jan 24 2012 Bohuslav Kabrda - 1.2.0-3 - Rebuilt for Ruby 1.9.3. - Introduced bootstrap to deal with dependency loop. * Tue Jan 03 2012 Michal Fojtik - 1.2.0-2 - Fixed BR - Marked documentation file with doc tag - Changed the way how to run rspec tests * Mon Jan 02 2012 Michal Fojtik - 1.2.0-1 - Initial import