Blame SPECS/rubygem-rack.spec

6eaea1
%{!?scl:%global pkg_name %{name}}
6eaea1
%{?scl:%scl_package rubygem-%{gem_name}}
6eaea1
6eaea1
%global gem_name rack
6eaea1
6eaea1
Name:           %{?scl_prefix}rubygem-%{gem_name}
6eaea1
Summary:        Common API for connecting web frameworks, web servers and layers of software
6eaea1
# Introduce Epoch (related to bug 552972)
6eaea1
Epoch:          1
6eaea1
Version:        1.5.2
6eaea1
Release:        5%{?dist}
6eaea1
Group:          Development/Languages
6eaea1
# lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD)
6eaea1
License:        MIT and (Ruby or BSD)
6eaea1
URL:            http://rubyforge.org/projects/%{gem_name}/
6eaea1
Source0:        http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
6eaea1
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
6eaea1
Requires:       %{?scl_prefix_ruby}ruby(rubygems)
6eaea1
Requires:       %{?scl_prefix_ruby}ruby(release)
6eaea1
BuildRequires:  %{?scl_prefix_ruby}rubygems-devel
6eaea1
BuildRequires:  %{?scl_prefix}rubygem(bacon)
6eaea1
BuildArch:      noarch
6eaea1
Provides:       %{?scl_prefix}rubygem(%{gem_name}) = %{version}
6eaea1
Provides:       bundled(okjson) = 20130206
6eaea1
6eaea1
%description
6eaea1
Rack provides a common API for connecting web frameworks,
6eaea1
web servers and layers of software in between
6eaea1
6eaea1
%prep
6eaea1
%setup -q -c -T
6eaea1
%{?scl:scl enable %{scl} - << \EOF}
6eaea1
%gem_install -n %{SOURCE0}
6eaea1
%{?scl:EOF}
6eaea1
6eaea1
6eaea1
%build
6eaea1
6eaea1
%install
6eaea1
rm -rf %{buildroot}
6eaea1
mkdir -p %{buildroot}%{gem_dir}
6eaea1
cp -a .%{gem_dir}/* \
6eaea1
        %{buildroot}%{gem_dir}/
6eaea1
6eaea1
mkdir -p %{buildroot}%{_bindir}
6eaea1
cp -pa .%{_bindir}/* \
6eaea1
        %{buildroot}%{_bindir}/
6eaea1
6eaea1
6eaea1
# Remove backup files
6eaea1
#find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
6eaea1
6eaea1
# Delete zero-length files
6eaea1
#find %{buildroot}/%{gem_instdir} -type f -size 0c -exec rm -rvf {} \;
6eaea1
6eaea1
# Fix anything executable that does not have a shebang
6eaea1
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
6eaea1
    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
6eaea1
done
6eaea1
6eaea1
# Find files with a shebang that do not have executable permissions
6eaea1
for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
6eaea1
    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
6eaea1
done
6eaea1
6eaea1
# Find files that have non-standard-executable-perm
6eaea1
#find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
6eaea1
6eaea1
# Find files that are not readable
6eaea1
#find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
6eaea1
6eaea1
# Move %%{gem_dir}/bin/rackup to %%{_bindir}
6eaea1
#mkdir -p %{buildroot}/%{_bindir}
6eaea1
#mv %%{buildroot}/%%{gem_dir}/bin/rackup %%{buildroot}/%%{_bindir}
6eaea1
6eaea1
#mkdir -p %{buildroot}%{_bindir}
6eaea1
#cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
6eaea1
6eaea1
#rm -rf %{buildroot}/%{gem_dir}/bin/
6eaea1
6eaea1
%clean
6eaea1
rm -rf %{buildroot}
6eaea1
6eaea1
%check
6eaea1
pushd %{buildroot}%{gem_instdir}
6eaea1
%{?scl:scl enable %{scl} - << \EOF}
6eaea1
bacon --automatic --quiet
6eaea1
%{?scl:EOF}
6eaea1
popd
6eaea1
6eaea1
%files
6eaea1
%dir %{gem_instdir}
6eaea1
%doc %{gem_docdir}
6eaea1
%doc %{gem_instdir}/COPYING
6eaea1
%doc %{gem_instdir}/Rakefile
6eaea1
%doc %{gem_instdir}/README.rdoc
6eaea1
%doc %{gem_instdir}/KNOWN-ISSUES
6eaea1
%doc %{gem_instdir}/SPEC
6eaea1
%doc %{gem_instdir}/example
6eaea1
%doc %{gem_instdir}/test
6eaea1
%doc %{gem_instdir}/contrib
6eaea1
%{gem_instdir}/%{gem_name}.gemspec
6eaea1
%{gem_libdir}
6eaea1
%{gem_instdir}/bin
6eaea1
%{_bindir}/rackup
6eaea1
%exclude %{gem_cache}
6eaea1
%{gem_spec}
6eaea1
6eaea1
%changelog
6eaea1
* Thu Jan 15 2015 Josef Stribny <jstribny@redhat.com> - 1:1.5.2-5
6eaea1
- rebuilt for ror41
6eaea1
6eaea1
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 1:1.5.2-4
6eaea1
- Don't prefix the bundled OkJson virtual provide.
6eaea1
  Resolves: rhbz#1079388
6eaea1
6eaea1
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 1:1.5.2-3
6eaea1
- Rebuid against new scl-utils to depend on -runtime package.
6eaea1
  Resolves: rhbz#1069109
6eaea1
6eaea1
* Tue Feb 04 2014  Josef Stribny <jstribny@redhat.com> - 1:1.5.2-2
6eaea1
- Fix licensing
6eaea1
- Add virtual provide for bundled okjson
6eaea1
6eaea1
* Thu Oct 03 2013 Josef Stribny <jstribny@redhat.com> - 1:1.5.2-1
6eaea1
- Update to rack 1.5.2
6eaea1
6eaea1
* Wed Jun 12 2013 Josef Stribny <jstribny@redhat.com> - 1:1.4.5-1
6eaea1
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
6eaea1
- Added patch0 to fix tests for Ruby 2.0
6eaea1
- Update to Rack 1.4.5
6eaea1
6eaea1
* Wed Mar 06 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.4.1-5
6eaea1
- Update Patch2 and Patch3 to apply cleanly.
6eaea1
6eaea1
* Mon Feb 11 2013 Josef Stribny <jstribny@redhat.com> - 1:1.4.1-4
6eaea1
- Fixes for CVE-2013-0262 and CVE-2013-0263.
6eaea1
6eaea1
* Tue Jan 15 2013 Vít Ondruch <vondruch@redhat.com> - 1:1.4.1-3
6eaea1
- Fixes for CVE-2011-6109, CVE-2013-0183 and CVE-2013-0184.
6eaea1
6eaea1
* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.4.1-2
6eaea1
- Specfile cleanup
6eaea1
6eaea1
* Mon Apr 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.4.1-1
6eaea1
- Rebuilt for scl.
6eaea1
- Updated to 1.4.1.
6eaea1
6eaea1
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.4.0-2
6eaea1
- Rebuilt for Ruby 1.9.3.
6eaea1
6eaea1
* Thu Jan 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:1.4.0-1
6eaea1
- Update to Rack 1.4.
6eaea1
- Moved gem install to %%prep to be able to apply patches.
6eaea1
- Applied two patches that fix test failures with Ruby 1.8.7-p357.
6eaea1
6eaea1
* Tue Jun 28 2011 Vít Ondruch <vondruch@redhat.com> - 1:1.3.0-1
6eaea1
- Updated to Rack 1.3.
6eaea1
- Fixed FTBFS.
6eaea1
6eaea1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
6eaea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6eaea1
6eaea1
* Thu Mar 11 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:1.1.0-2
6eaea1
- Epoch 1 for keeping upgrade path from F-12 (related to bug 552972)
6eaea1
- Enable %%check
6eaea1
6eaea1
* Mon Jan  4 2010 Jeroen van Meeuwen <kanarip@kanarip.com> - 1.1.0-1
6eaea1
- New upstream version
6eaea1
6eaea1
* Sun Oct 25 2009 Jeroen van Meeuwen <kanarip@kanarip.com> - 1.0.1-1
6eaea1
- New upstream version
6eaea1
6eaea1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
6eaea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6eaea1
6eaea1
* Sun Apr 26 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 1.0.0-1
6eaea1
- New upstream version
6eaea1
6eaea1
* Mon Mar 16 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.9.1-1
6eaea1
- New upstream version
6eaea1
6eaea1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
6eaea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6eaea1
6eaea1
* Sun Nov 09 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.4.0-2
6eaea1
- Remove unused macro (#470694)
6eaea1
- Add ruby(abi) = 1.8 as required by package guidelines (#470694)
6eaea1
- Move %%{gem_dir}/bin/rackup to %%{_bindir} (#470694)
6eaea1
6eaea1
* Sat Nov 08 2008 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.4.0-1
6eaea1
- Initial package