Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3594af7809
!24 fix rubygem-rack build problem in openEuler:22.03:LTS:Next
From: @backjace 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-04-24 01:15:43 +00:00
sjxur
bd9b38c593 fix rubygem-rack build problem in openEuler:22.03:LTS:Next 2023-04-19 10:36:51 +08:00
openeuler-ci-bot
01e6c2ecc7
!21 Upgrade to 2.2.3.1 for fix CVE-2020-8184 CVE-2022-30122 CVE-2022-30123
From: @wk333 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-06-28 03:03:39 +00:00
wk333
e843440515 Upgrade to 2.2.3.1 for fix CVE-2020-8184 CVE-2022-30122 CVE-2022-30123 2022-06-28 10:28:07 +08:00
openeuler-ci-bot
35185d6ea6 !10 [sync] PR-9: upgrade to 2.2.2
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-02-18 14:58:34 +08:00
si-gui
a94f206b7e upgrade to 2.2.2
(cherry picked from commit 621a053f7777efe9396075c6a5c3daf7d2db9cac)
2021-02-18 11:51:56 +08:00
openeuler-ci-bot
7d89c962d6 !6 Modify Source0 Url of package rubygem-rack
From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-17 14:08:05 +08:00
wangge
85e0c1627f Modify Source0 Url on master branch 2020-09-17 12:51:08 +08:00
openeuler-ci-bot
264adfe3f6 !3 add yaml file
Merge pull request !3 from sigui/master
2020-05-19 10:07:34 +08:00
si-gui
68850ec6f2 add yaml file 2020-05-12 18:06:27 +08:00
4 changed files with 81 additions and 43 deletions

Binary file not shown.

BIN
rack-2.2.3.1.gem Normal file

Binary file not shown.

View File

@ -1,79 +1,113 @@
%global gem_name rack
Name: rubygem-rack
Version: 2.0.4
Epoch: 1
Release: 1
Summary: A modular Ruby webserver interface
License: MIT and BSD
URL: https://github.com/rack/rack
Source0: https://github.com/rack/rack/archive/rack-%{version}.gem
%bcond_with bootstrap
BuildRequires: rubygems-devel ruby
BuildArch: noarch
Name: rubygem-%{gem_name}
Version: 2.2.3.1
Epoch: 1
Release: 2
Summary: A modular Ruby webserver interface
License: MIT and BSD
URL: https://rack.github.io/
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(concurrent-ruby)
BuildRequires: memcached rubygem(memcache-client) rubygem(minitest)
BuildRequires: rubygem(memcache-client)
BuildRequires: rubygem(minitest)
%if ! %{with bootstrap}
BuildRequires: rubygem(thin)
%endif
BuildArch: noarch
%global __brp_mangle_shebangs_exclude_from ^%{gem_instdir}/test/cgi/test.ru$
%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.
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 help
Summary: Documents for %{name}
Buildarch: noarch
Requires: man info %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-doc = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release}
%description help
Man pages and other related documents for %{name}.
%package help
Summary: Documentation for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-doc = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release}
BuildArch: noarch
%description help
Documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%setup -q -n %{gem_name}-%{version}
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
install -d 0755 %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
install -d 0755 %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}%{gem_instdir}/{bin,test/cgi} -type f | \
xargs sed -i 's|^#!/usr/bin/env ruby$|#!/usr/bin/ruby|'
xargs sed -i 's|^#!/usr/bin/env ruby$|#!/usr/bin/ruby|'
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done
for file in `find %{buildroot}%{gem_instdir} -type f`; do
[ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file
[ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file
done
%check
pushd .%{gem_instdir}
PID=%(mktemp)
memcached -d -u root -P "$PID"
LC_ALL=C.UTF-8 \
ruby -Ilib:test -e 'Dir.glob "./test/spec_*.rb", &method(:require)'
kill -TERM $(< "$PID")
popd
%files
%defattr(-,root,root)
%license %{gem_instdir}/COPYING
%{_bindir}/rackup
%dir %{gem_instdir}
%{_bindir}/rackup
%license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%{gem_instdir}/bin
%{gem_spec}
%exclude %{gem_cache}
%{gem_spec}
%files help
%defattr(-,root,root)
%files help
%doc %{gem_docdir}
%doc %{gem_instdir}/example
%doc %{gem_instdir}/contrib
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/SPEC
%{gem_instdir}/test
%doc %{gem_instdir}/CONTRIBUTING.md
%doc %{gem_instdir}/SPEC.rdoc
%{gem_instdir}/Rakefile
%{gem_instdir}/%{gem_name}.gemspec
%doc %{gem_instdir}/example
%doc %{gem_instdir}/contrib
%changelog
* Wed Apr 19 2023 sjxur <sjxur@isoftstone.com> - 1:2.2.3.1-2
- fix issue(I6UCVJ) for rubygem-rack build problem in openEuler:22.03:LTS:Next
* Tue Jun 28 2022 wangkai <wangkai385@h-partners.com> - 1:2.2.3.1-1
- Upgrade to 2.2.3.1 for fix CVE-2020-8184 CVE-2022-30122 CVE-2022-30123
* Mon Feb 8 2021 sunguoshuai<sunguoshuai@huawei.com>- 1:2.2.2-1
- Upgrade to 1:2.2.2
* Wed Sep 9 2020 Ge Wang <wangge20@huawei.com> - 1:2.0.4-2
- Modify Source0 Url
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:2.0.4-1
- Package init

4
rubygem-rack.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rack/rack
tag_prefix: ^v
seperator: .