diff --git a/fix-build-error.patch b/fix-build-error.patch deleted file mode 100644 index 9578a73..0000000 --- a/fix-build-error.patch +++ /dev/null @@ -1,12 +0,0 @@ -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 } diff --git a/mime-types-3.1.gem b/mime-types-3.1.gem deleted file mode 100644 index 142b7d6..0000000 Binary files a/mime-types-3.1.gem and /dev/null differ diff --git a/mime-types-3.4.1.gem b/mime-types-3.4.1.gem new file mode 100644 index 0000000..7b1056e Binary files /dev/null and b/mime-types-3.4.1.gem differ diff --git a/rubygem-mime-types.spec b/rubygem-mime-types.spec index e53fb7b..0d1798a 100644 --- a/rubygem-mime-types.spec +++ b/rubygem-mime-types.spec @@ -1,12 +1,12 @@ %global gem_name mime-types Summary: The mime-types library provides a library Name: rubygem-%{gem_name} -Version: 3.1 -Release: 2 +Version: 3.4.1 +Release: 1 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 @@ -34,7 +34,6 @@ This package contains documentation for %{name}. %prep %setup -q -c -T %gem_install -n %{SOURCE0} -%patch0 -p1 %build @@ -59,7 +58,7 @@ ruby -Ilib:test -rminitest/autorun -e 'Dir.glob "./test/**/test_*.rb", &method(: popd %files -%license %{gem_instdir}/Licence.rdoc +%license %{gem_instdir}/Licence.md %dir %{gem_instdir} %exclude %{gem_instdir}/.* %{gem_libdir} @@ -67,9 +66,9 @@ popd %{gem_spec} %files doc -%doc %{gem_instdir}/Code-of-Conduct.rdoc -%doc %{gem_instdir}/Contributing.rdoc -%doc %{gem_instdir}/History.rdoc +%doc %{gem_instdir}/Code-of-Conduct.md +%doc %{gem_instdir}/Contributing.md +%doc %{gem_instdir}/History.md %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/Manifest.txt @@ -77,6 +76,9 @@ popd %doc %{gem_docdir} %changelog +* Wed Jun 29 2022 xu_ping - 3.4.1-1 +- Upgrade 3.4.1 + * Sat Jan 22 2022 liyanan - 3.1-2 - fix build error