| |
@@ -2,12 +2,16 @@
|
| |
%global gem_name mini_mime
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 1.0.0
|
| |
- Release: 7%{?dist}
|
| |
+ Version: 1.1.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A lightweight mime type lookup toy
|
| |
License: MIT
|
| |
URL: https://github.com/discourse/mini_mime
|
| |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
| |
+ # Tests are not packaged with the gem. You may get them like so:
|
| |
+ # git clone --no-checkout https://github.com/discourse/mini_mime
|
| |
+ # git -C mini_mime archive -v -o mini_mime-1.1.0-test.txz v1.1.0 test
|
| |
+ Source1: %{gem_name}-%{version}-test.txz
|
| |
BuildRequires: ruby(release)
|
| |
BuildRequires: rubygems-devel
|
| |
BuildRequires: ruby
|
| |
@@ -27,7 +31,7 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- %setup -q -n %{gem_name}-%{version}
|
| |
+ %setup -q -n %{gem_name}-%{version} -b1
|
| |
|
| |
%build
|
| |
gem build ../%{gem_name}-%{version}.gemspec
|
| |
@@ -38,11 +42,11 @@
|
| |
cp -a .%{gem_dir}/* \
|
| |
%{buildroot}%{gem_dir}/
|
| |
|
| |
-
|
| |
-
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
- ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
| |
+ ln -s %{_builddir}/test .
|
| |
+
|
| |
+ ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
| |
popd
|
| |
|
| |
%files
|
| |
@@ -65,6 +69,9 @@
|
| |
%{gem_instdir}/Rakefile
|
| |
|
| |
%changelog
|
| |
+ * Fri Apr 16 2021 Pavel Valena <pvalena@redhat.com> - 1.1.0-1
|
| |
+ - Update to mini_mime 1.1.0.
|
| |
+
|
| |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
|
| |
To have latest mini_mime gem in Fedora.
Koji scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=66056028
Copr build:
https://copr.fedorainfracloud.org/coprs/build/2133911
Checks:
Update log: https://git.io/JOWDt
Test log: https://git.io/JOWDm