Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
f8bb223f5c
!21 【轻量级 PR】:fix bogus date
From: @zhangshaoning_uniontech 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-20 01:53:34 +00:00
zhangshaoning
eaf2b89977
fix bogus date 2022-06-17 06:44:22 +00:00
openeuler-ci-bot
2c02b235e3 !17 [sync] PR-12: Upgrade to 2.2.33 for fix CVE-2021-43809
Merge pull request !17 from openeuler-sync-bot/sync-pr12-master-to-openEuler-22.03-LTS-Next
2021-12-29 03:18:08 +00:00
houyingchao
b9db637dc2 Upgrade to 2.2.33 for fix CVE-2021-43809
(cherry picked from commit 39c29631400aa5b00a1bc3e92034b2d7e9d3cd42)
2021-12-29 10:44:34 +08:00
openeuler-ci-bot
9bc47aacf7 !4 Upgrade Package
From: @yun-chengzhang
Reviewed-by: 
Signed-off-by:
2021-06-08 20:42:52 +08:00
yun-chengzhang
49825806d4 Upgrade the Package 2021-06-08 17:32:11 +08:00
openeuler-ci-bot
faa8986b65 !3 add yaml file
Merge pull request !3 from sigui/master
2020-05-12 19:36:44 +08:00
si-gui
30946e489a add yaml file 2020-05-12 18:06:14 +08:00
openeuler-ci-bot
41e00baef5 !2 add yaml file
Merge pull request !2 from sigui/master
2020-05-09 19:55:21 +08:00
openeuler-ci-bot
e3bcbd98ae !1 rubygem-bundler: package init
Merge pull request !1 from Grooooot/master
2020-03-09 10:59:23 +08:00
Grooooot
bf9944582b rubygem-bundler: package init
Signed-off-by: Grooooot <isula@huawei.com>
2020-03-09 10:49:36 +08:00
4 changed files with 145 additions and 0 deletions

BIN
bundler-2.2.33.gem Normal file

Binary file not shown.

BIN
bundler-v2.2.33.tar.gz Normal file

Binary file not shown.

141
rubygem-bundler.spec Normal file
View File

@ -0,0 +1,141 @@
%global gem_name bundler
%bcond_with tests
%global fileutils_version 0.7.2
%global molinillo_version 0.7.0
%global net_http_persistent_version 4.0.0
%global thor_version 1.1.0
Name: rubygem-%{gem_name}
Version: 2.2.33
Release: 1
Summary: Library and utilities to manage a Ruby application's gem dependencies
License: MIT
URL: http://bundler.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rubygems/rubygems/archive/refs/tags/%{gem_name}-v%{version}.tar.gz
BuildArch: noarch
Requires: rubygem(io-console)
BuildRequires: ruby(release) rubygems-devel ruby
%if %{with tests}
BuildRequires: ruby-devel rubygem(rspec) >= 3.0 git %{_bindir}/ps
%endif
Provides: bundled(rubygem-fileutils) = %{fileutils_version}
Provides: bundled(rubygem-molinillo) = %{molinillo_version}
Provides: bundled(rubygem-net-http-persisntent) = %{net_http_persistent_version}
Provides: bundled(rubygem-thor) = %{thor_version}
%description
Bundler manages an application's dependencies through its entire life, across
many machines, systematically and repeatably.
%package help
Summary: %{name} documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
This package provides help documents for %{name}.
%prep
%autosetup -c -T -n %{name}
%gem_install -n %{SOURCE0}
%build
%install
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}/exe -type f | xargs chmod a+x
chmod a-x %{buildroot}%{gem_libdir}/bundler/templates/Executable
for n in 5 1; do
mkdir -p %{buildroot}%{_mandir}/man${n}
for file in %{buildroot}%{gem_instdir}/lib/bundler/man/*.${n}; do
base_name=$(basename "${file}")
cp -a "${file}" "%{buildroot}%{_mandir}/man${n}/${base_name}"
done
done
%check
pushd .%{gem_instdir}
[ `ls lib/bundler/vendor | wc -l` == 8 ]
ruby -e '
module Bundler; end
require "./lib/bundler/vendor/fileutils/lib/fileutils.rb"'
[ `ruby -e '
module Bundler; end
require "./lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata"
puts Bundler::Molinillo::VERSION'` == '%{molinillo_version}' ]
[ `ruby -Ilib -e '
module Bundler; module Persistent; module Net; module HTTP; end; end; end; end
require "./lib/bundler/vendor/net-http-persistent/lib/net/http/persistent"
puts Bundler::Persistent::Net::HTTP::Persistent::VERSION'` == '%{net_http_persistent_version}' ]
[ `ruby -e '
module Bundler; end
require "./lib/bundler/vendor/thor/lib/thor/version"
puts Bundler::Thor::VERSION'` == '%{thor_version}' ]
%if %{with tests}
tar xzvf %{SOURCE1}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
sed -i '/^ context "with color" do$/,/^ end$/ s/^/#/' \
spec/bundler/source_spec.rb
sed -i '/^ it "like a normally executed executable" do$/,/^ end$/ s/^/#/' \
spec/commands/exec_spec.rb
sed -i '/^ context "given a default gem shippped in ruby" do$/,/^ end$/ s/^/#/' \
spec/commands/info_spec.rb
mkdir -p %{_builddir}/rubygems/rubygems/defaults/
touch %{_builddir}/rubygems/rubygems/defaults/operating_system.rb
RUBYOPT=-I%{_builddir}/rubygems GEM_PATH=%{gem_dir} rspec -rspec_helper spec -f d
%endif
popd
%files
%dir %{gem_instdir}
%{_bindir}/bundle
%{_bindir}/bundler
%exclude %{gem_instdir}/.*
%exclude %{gem_libdir}/bundler/ssl_certs/index.rubygems.org
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.global.ssl.fastly.net
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.org
%exclude %{gem_libdir}/bundler/ssl_certs/.document
%license %{gem_instdir}/LICENSE.md
%exclude %{gem_instdir}/bundler.gemspec
%{gem_instdir}/exe
%{gem_libdir}
%exclude %{gem_instdir}/lib/bundler/man/*.ronn
%exclude %{gem_cache}
%{gem_spec}
%files help
%doc %{gem_instdir}/lib/bundler/man
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%doc %{_mandir}/man1/*
%doc %{_mandir}/man5/*
%changelog
* Wed Dec 29 2021 houyingchao <houyingchao@huawei.com> - 2.2.33-1
- Upgrade to 2.2.33
- Fix CVE-2021-43809
* Tue Jun 8 2021 zhaomengchao <zhaomengchao3@huawei.com> - 2.2.19-1
* Upgrade to 2.2.19
* Thu Feb 06 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.61.1-5
* Package init

4
rubygem-bundler.yaml Normal file
View File

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