Fix build error
(cherry picked from commit 8f8188da6654958ebd736f70ace58918a7786103)
This commit is contained in:
parent
d16c1c0222
commit
6fab2fcd82
12
fix-build-error.patch
Normal file
12
fix-build-error.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur a/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb b/usr/share/gems/gems/mime-types-3.1//lib/mime/types/logger.rb
|
||||
--- a/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb 2022-01-22 13:03:02.461246411 +0800
|
||||
+++ b/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb 2022-01-22 13:02:41.332893171 +0800
|
||||
@@ -25,7 +25,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
- def initialize(_1, _2 = nil, _3 = nil)
|
||||
+ def initialize(one, two = nil, three = nil)
|
||||
super nil
|
||||
@logdev = WarnLogDevice.new
|
||||
@formatter = ->(_s, _d, _p, m) { m }
|
||||
@ -2,10 +2,11 @@
|
||||
Summary: The mime-types library provides a library
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: MIT
|
||||
URL: https://github.com/mime-types/ruby-mime-types/
|
||||
Source0: https://rubygems.org/gems/mime-types-%{version}.gem
|
||||
Patch0: fix-build-error.patch
|
||||
BuildRequires: rubygems-devel ruby(release) ruby >= 2.0 rubygem(mime-types-data)
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
@ -33,6 +34,7 @@ This package contains documentation for %{name}.
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
|
||||
@ -75,5 +77,8 @@ popd
|
||||
%doc %{gem_docdir}
|
||||
|
||||
%changelog
|
||||
* Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 3.1-2
|
||||
- fix build error
|
||||
|
||||
* Fri Aug 7 2020 yanan li <liyanan032@huawei.com> - 3.1 3.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user