|
|
|
@ -2,15 +2,15 @@
|
|
|
|
|
%global gem_name mime-types-data
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 3.2016.0521
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 3.2019.0331
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A registry for information about MIME media type definitions
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/mime-types/mime-types-data/
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby >= 2.0
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -29,18 +29,10 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
|
|
|
|
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
|
|
|
# by default, so that we can move it into the buildroot in %%install
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -49,9 +41,6 @@ cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run the test suite
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
# There is nothing to test, since this is just the data package.
|
|
|
|
@ -61,6 +50,7 @@ popd
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%license %{gem_instdir}/Licence.md
|
|
|
|
|
%{gem_instdir}/data
|
|
|
|
|
%{gem_instdir}/types
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
@ -75,6 +65,9 @@ popd
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 23 2019 Pavel Valena <pvalena@redhat.com> - 3.2019.0331-1
|
|
|
|
|
- Update to mime-types-data 3.2019.0331.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2016.0521-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|