[dev] Update ruby spec (#771)

* update ruby gem execute installation

* update changelog

* update changelog

* use macros for directory

Co-authored-by: Henry Li <lihl@microsoft.com>
This commit is contained in:
Henry Li 2021-03-22 10:54:28 -07:00 committed by GitHub
parent a46cf8f77d
commit fb6e6f6d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -25,6 +25,7 @@ CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' $CONFI
gem install \\\ gem install \\\
-V \\\ -V \\\
--local \\\ --local \\\
--bindir %{_bindir} \\\
--build-root %{-d*}%{!?-d:.} \\\ --build-root %{-d*}%{!?-d:.} \\\
--force \\\ --force \\\
--document=ri,rdoc \\\ --document=ri,rdoc \\\

View File

@ -1,7 +1,7 @@
{ {
"Signatures": { "Signatures": {
"macros.ruby": "fc26a1eeb3f507c65619a2760a6cf9e1cfb6468731c2a75ab164c577bf632083", "macros.ruby": "fc26a1eeb3f507c65619a2760a6cf9e1cfb6468731c2a75ab164c577bf632083",
"macros.rubygems": "cfe9776ca4cb000fdc3cb228c92e700c44b434552ec09ac0d8c147264446d21c", "macros.rubygems": "2f034f933924e45cf16e024fbd28eb8e5a0ac824e4506b42b1f444585f69b4a0",
"operating_system.rb": "91bb8c3c6742392dc18838b6c762c9ba2a39b7558afc9160239e946540207a51", "operating_system.rb": "91bb8c3c6742392dc18838b6c762c9ba2a39b7558afc9160239e946540207a51",
"ruby-2.7.2.tar.xz": "1b95ab193cc8f5b5e59d2686cb3d5dcf1ddf2a86cb6950e0b4bdaae5040ec0d6", "ruby-2.7.2.tar.xz": "1b95ab193cc8f5b5e59d2686cb3d5dcf1ddf2a86cb6950e0b4bdaae5040ec0d6",
"rubygems.attr": "a89a6c82d6e534539ab499e1d5464161429562133dfb5adad1c8d157a60994fa", "rubygems.attr": "a89a6c82d6e534539ab499e1d5464161429562133dfb5adad1c8d157a60994fa",

View File

@ -9,7 +9,7 @@
Summary: Ruby Summary: Ruby
Name: ruby Name: ruby
Version: 2.7.2 Version: 2.7.2
Release: 1%{?dist} Release: 2%{?dist}
License: (Ruby OR BSD) AND Public Domain AND MIT AND CC0 AND zlib AND UCD License: (Ruby OR BSD) AND Public Domain AND MIT AND CC0 AND zlib AND UCD
Vendor: Microsoft Corporation Vendor: Microsoft Corporation
Distribution: Mariner Distribution: Mariner
@ -46,6 +46,11 @@ Provides: rubygem(io-console) = %{version}-%{release}
Provides: rubygem(psych) = %{version}-%{release} Provides: rubygem(psych) = %{version}-%{release}
Provides: rubygem(did_you_mean) = %{version}-%{release} Provides: rubygem(did_you_mean) = %{version}-%{release}
Provides: rubygem(irb) = %{version}-%{release} Provides: rubygem(irb) = %{version}-%{release}
Provides: rubygem-bigdecimal = %{version}-%{release}
Provides: rubygem-io-console = %{version}-%{release}
Provides: rubygem-psych = %{version}-%{release}
Provides: rubygem-irb = %{version}-%{release}
Provides: rubygem-did_you_mean = %{version}-%{release}
%description %description
The Ruby package contains the Ruby development environment. The Ruby package contains the Ruby development environment.
@ -172,7 +177,13 @@ rm -rf %{buildroot}/*
%{rubygems_dir}/rubygems %{rubygems_dir}/rubygems
%changelog %changelog
* Thu Mar 11 2021 Henry Li <lihl@microsoft.com> - 2.6.6-4 * Fri Mar 19 2021 Henry Li <lihl@microsoft.com> - 2.7.2-2
- Add bindir path to gem installation to install executable at
system bin directory instead of bin directory under gem home directory
- Add Provides for rubygem-bigdecimal, rubygem-irb, rubygem-io-console, rubygem-did_you_mean
and rubygem-psych
* Thu Mar 11 2021 Henry Li <lihl@microsoft.com> - 2.7.2-1
- Upgrade to version 2.7.2 - Upgrade to version 2.7.2
- Add files like macros.rubygems, imported from Fedora 32 (license: MIT) - Add files like macros.rubygems, imported from Fedora 32 (license: MIT)
- Add patches to prevent ruby vesion abuse - Add patches to prevent ruby vesion abuse