!5 [sync] PR-2: Fix build error
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
27dd207846
12
Fix-build-error.patch
Normal file
12
Fix-build-error.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur a/lib/public_suffix/list.rb b/lib/public_suffix/list.rb
|
||||
--- a/lib/public_suffix/list.rb 2022-02-11 11:17:18.045013320 +0800
|
||||
+++ b/lib/public_suffix/list.rb 2022-02-11 11:16:50.028545777 +0800
|
||||
@@ -46,7 +46,7 @@
|
||||
#
|
||||
# @return [PublicSuffix::List]
|
||||
def self.default(**options)
|
||||
- @default ||= parse(File.read(DEFAULT_LIST_PATH), options)
|
||||
+ @default ||= parse(File.read(DEFAULT_LIST_PATH), **options)
|
||||
end
|
||||
|
||||
# Sets the default rule list to +value+.
|
||||
@ -1,11 +1,12 @@
|
||||
%global gem_name public_suffix
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.0.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Domain name parser based on the Public Suffix List
|
||||
License: MIT and MPLv2.0
|
||||
URL: https://simonecarletti.com/code/publicsuffix-ruby
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Patch0: Fix-build-error.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(mocha)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
@ -22,6 +23,7 @@ Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
@ -60,5 +62,8 @@ popd
|
||||
%exclude %{gem_instdir}/test/.empty
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 liyanan <liyanan32@huawei.com> - 3.0.1-2
|
||||
- Fix build error
|
||||
|
||||
* Wed Aug 19 2020 luoshengwei <luoshengwei@huawei.com> - 3.0.1-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user