From 7fd2cbfc926855f99c46284e5f385c87fd157252 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:38:55 +0000 Subject: import rh-ror42-rubygem-rack-1.6.2-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62bdcca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rack-1.6.2.gem diff --git a/.rh-ror42-rubygem-rack.metadata b/.rh-ror42-rubygem-rack.metadata new file mode 100644 index 0000000..803d0b0 --- /dev/null +++ b/.rh-ror42-rubygem-rack.metadata @@ -0,0 +1 @@ +85d34dbf068cda5cf36432984da8ccf81c3d1be5 SOURCES/rack-1.6.2.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-rack.spec b/SPECS/rubygem-rack.spec new file mode 100644 index 0000000..2e0ec3e --- /dev/null +++ b/SPECS/rubygem-rack.spec @@ -0,0 +1,191 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name rack + +Name: %{?scl_prefix}rubygem-%{gem_name} +Summary: Common API for connecting web frameworks, web servers and layers of software +# Introduce Epoch (related to bug 552972) +Epoch: 1 +Version: 1.6.2 +Release: 3%{?dist} +Group: Development/Languages +# lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD) +# lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license. +License: MIT and (Ruby or BSD) and BSD +URL: http://rack.github.io/ +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem + +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix}rubygem(bacon) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} +Provides: bundled(okjson) = 20150104 + +%description +Rack provides a minimal, modular and adaptable interface for developing +web applications in Ruby. By wrapping HTTP requests and responses in +the simplest way possible, it unifies and distills the API for web +servers, web frameworks, and software in between (the so-called +middleware) into a single method call. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{epoch}:%{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 +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +mkdir -p %{buildroot}%{_bindir} +cp -pa .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +# Fix anything executable that does not have a shebang +for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do + [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file +done + +# Find files with a shebang that do not have executable permissions +for file in `find %{buildroot}%{gem_instdir} -type f`; do + [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file +done + +%check +pushd .%{gem_instdir} + +%{?scl:scl enable %{scl} - << \EOF} +bacon -Ilib --automatic --quiet +%{?scl:EOF} + +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/COPYING +%{gem_libdir} +%{gem_instdir}/bin +%{_bindir}/rackup +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/KNOWN-ISSUES +%doc %{gem_instdir}/HISTORY.md +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/Rakefile +%{gem_instdir}/SPEC +%doc %{gem_instdir}/example +%{gem_instdir}/test +%doc %{gem_instdir}/contrib + +%changelog +* Mon Feb 22 2016 Pavel Valena - 1:1.6.2-3 +- Update to 1.6.2 + +* Thu Jan 15 2015 Josef Stribny - 1:1.5.2-5 +- rebuilt for ror41 + +* Fri Mar 21 2014 Vít Ondruch - 1:1.5.2-4 +- Don't prefix the bundled OkJson virtual provide. + Resolves: rhbz#1079388 + +* Fri Mar 21 2014 Vít Ondruch - 1:1.5.2-3 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Tue Feb 04 2014 Josef Stribny - 1:1.5.2-2 +- Fix licensing +- Add virtual provide for bundled okjson + +* Thu Oct 03 2013 Josef Stribny - 1:1.5.2-1 +- Update to rack 1.5.2 + +* Wed Jun 12 2013 Josef Stribny - 1:1.4.5-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Added patch0 to fix tests for Ruby 2.0 +- Update to Rack 1.4.5 + +* Wed Mar 06 2013 Bohuslav Kabrda - 1:1.4.1-5 +- Update Patch2 and Patch3 to apply cleanly. + +* Mon Feb 11 2013 Josef Stribny - 1:1.4.1-4 +- Fixes for CVE-2013-0262 and CVE-2013-0263. + +* Tue Jan 15 2013 Vít Ondruch - 1:1.4.1-3 +- Fixes for CVE-2011-6109, CVE-2013-0183 and CVE-2013-0184. + +* Wed Jul 25 2012 Bohuslav Kabrda - 1:1.4.1-2 +- Specfile cleanup + +* Mon Apr 02 2012 Bohuslav Kabrda - 1:1.4.1-1 +- Rebuilt for scl. +- Updated to 1.4.1. + +* Tue Jan 24 2012 Bohuslav Kabrda - 1:1.4.0-2 +- Rebuilt for Ruby 1.9.3. + +* Thu Jan 05 2012 Bohuslav Kabrda - 1:1.4.0-1 +- Update to Rack 1.4. +- Moved gem install to %%prep to be able to apply patches. +- Applied two patches that fix test failures with Ruby 1.8.7-p357. + +* Tue Jun 28 2011 Vít Ondruch - 1:1.3.0-1 +- Updated to Rack 1.3. +- Fixed FTBFS. + +* Wed Feb 09 2011 Fedora Release Engineering +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Mar 11 2010 Mamoru Tasaka - 1:1.1.0-2 +- Epoch 1 for keeping upgrade path from F-12 (related to bug 552972) +- Enable %%check + +* Mon Jan 4 2010 Jeroen van Meeuwen - 1.1.0-1 +- New upstream version + +* Sun Oct 25 2009 Jeroen van Meeuwen - 1.0.1-1 +- New upstream version + +* Sun Jul 26 2009 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Apr 26 2009 Jeroen van Meeuwen - 1.0.0-1 +- New upstream version + +* Mon Mar 16 2009 Jeroen van Meeuwen - 0.9.1-1 +- New upstream version + +* Wed Feb 25 2009 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Nov 09 2008 Jeroen van Meeuwen - 0.4.0-2 +- Remove unused macro (#470694) +- Add ruby(abi) = 1.8 as required by package guidelines (#470694) +- Move %%{gem_dir}/bin/rackup to %%{_bindir} (#470694) + +* Sat Nov 08 2008 Jeroen van Meeuwen - 0.4.0-1 +- Initial package