|
|
|
@ -4,8 +4,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: The mime-types library provides a library
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 3.1
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 3.2.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/mime-types/ruby-mime-types/
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
@ -22,11 +22,9 @@ MIME content type definitions. It can be used to determine defined filename
|
|
|
|
|
extensions for MIME types, or to use filename extensions to look up the likely
|
|
|
|
|
MIME type definitions.
|
|
|
|
|
Version 3.0 is a major release that requires Ruby 2.0 compatibility and
|
|
|
|
|
removes
|
|
|
|
|
deprecated functions. The columnar registry format introduced in 2.6 has been
|
|
|
|
|
made the primary format; the registry data has been extracted from this
|
|
|
|
|
library
|
|
|
|
|
and put into {mime-types-data}[https://github.com/mime-types/mime-types-data].
|
|
|
|
|
removes deprecated functions. The columnar registry format introduced
|
|
|
|
|
in 2.6 has been made the primary format; the registry data has been
|
|
|
|
|
extracted from this library and put into {mime-types-data}[https://github.com/mime-types/mime-types-data].
|
|
|
|
|
Additionally, mime-types is now licensed exclusively under the MIT licence and
|
|
|
|
|
there is a code of conduct in effect. There are a number of other smaller
|
|
|
|
|
changes described in the History file.
|
|
|
|
@ -47,7 +45,6 @@ This package contains documentation for %{name}.
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
@ -59,7 +56,12 @@ find %{buildroot}%{gem_instdir}/{Rakefile,test} -type f | \
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
|
|
# We don't have these rubygem packages in Fedora yet.
|
|
|
|
|
sed -i '7,11s/^/#/' test/minitest_helper.rb
|
|
|
|
|
sed -i -e '/^require..minitest-bonus-assertions.$/ s/^/#/' \
|
|
|
|
|
-e '/^require..minitest\/hooks.$/ s/^/#/' \
|
|
|
|
|
-e '/^require..minitest\/focus.$/ s/^/#/' \
|
|
|
|
|
-e '/^require..minitest\/rg.$/ s/^/#/' \
|
|
|
|
|
-e '/^require..fivemat\/minitest\/autorun.$/ s/^/#/' \
|
|
|
|
|
test/minitest_helper.rb
|
|
|
|
|
|
|
|
|
|
# Add assert_has_keys manually not to load minitest-bonus-assertions.
|
|
|
|
|
# https://github.com/halostatue/minitest-bonus-assertions/blob/v2.0/lib/minitest-bonus-assertions.rb#L53-57
|
|
|
|
@ -79,7 +81,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}
|
|
|
|
@ -87,9 +89,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
|
|
|
|
@ -97,6 +99,9 @@ popd
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 23 2019 Pavel Valena <pvalena@redhat.com> - 3.2.2-1
|
|
|
|
|
- Update to mime-types 3.2.2.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|