!5 [sync] PR-3: update to 3.2.4
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
99dad46004
Binary file not shown.
BIN
builder-3.2.4.gem
Normal file
BIN
builder-3.2.4.gem
Normal file
Binary file not shown.
13
rubygem-builder-3.2.4-Fix-Ruby-3-compatibility.patch
Normal file
13
rubygem-builder-3.2.4-Fix-Ruby-3-compatibility.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/lib/blankslate.rb b/lib/blankslate.rb
|
||||||
|
index 7ea1864..b974f40 100644
|
||||||
|
--- a/lib/blankslate.rb
|
||||||
|
+++ b/lib/blankslate.rb
|
||||||
|
@@ -129,7 +129,7 @@ class Module
|
||||||
|
alias blankslate_original_append_features append_features
|
||||||
|
def append_features(mod)
|
||||||
|
result = blankslate_original_append_features(mod)
|
||||||
|
- return result if mod != Object
|
||||||
|
+ return result if (mod != Object && mod != Kernel)
|
||||||
|
instance_methods.each do |name|
|
||||||
|
BlankSlate.hide(name)
|
||||||
|
end
|
||||||
@ -1,13 +1,14 @@
|
|||||||
%global gem_name builder
|
%global gem_name builder
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 3.2.3
|
Version: 3.2.4
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Builders for MarkUp
|
Summary: Builders for MarkUp
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://onestepback.org
|
URL: http://onestepback.org
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||||
|
Patch1: rubygem-builder-3.2.4-Fix-Ruby-3-compatibility.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
Builder provides a number of builder objects that make creating structured
|
Builder provides a number of builder objects that make creating structured
|
||||||
@ -23,19 +24,23 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -n %{gem_name}-%{version}
|
||||||
%gem_install -n %{SOURCE0}
|
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
|
||||||
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
# Fix anything executable that does not have a shebang.
|
pushd %{buildroot}%{gem_instdir}
|
||||||
for file in `find %{buildroot}/%{gem_instdir} -name "*.rb"`; do
|
find -type f -name '*.rb' -print | xargs sed -i '/#!\/usr\/bin\/env/d'
|
||||||
[ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod +x $file
|
popd
|
||||||
done
|
|
||||||
chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc
|
chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -55,10 +60,15 @@ popd
|
|||||||
%doc %{gem_instdir}/CHANGES
|
%doc %{gem_instdir}/CHANGES
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%{gem_instdir}/Rakefile
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/builder.blurb
|
||||||
|
%{gem_instdir}/builder.gemspec
|
||||||
%doc %{gem_instdir}/doc
|
%doc %{gem_instdir}/doc
|
||||||
%{gem_instdir}/rakelib
|
%{gem_instdir}/rakelib
|
||||||
%{gem_instdir}/test
|
%{gem_instdir}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 10 2022 chenchen <chen_aka_jan@163.com> - 3.2.4-1
|
||||||
|
- update to 3.2.4
|
||||||
|
|
||||||
* Sat Jul 25 2020 wangxiao <wangxiao65@huawei.com> - 3.2.3-1
|
* Sat Jul 25 2020 wangxiao <wangxiao65@huawei.com> - 3.2.3-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user