Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created April 22, 2021 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/95454a094a3e861923cd5da43822f753 to your computer and use it in GitHub Desktop.
Save pvalena/95454a094a3e861923cd5da43822f753 to your computer and use it in GitHub Desktop.
ERROR: Gem mimemagic in 0.3.2 doesn't exist.
commit 6bb9b6e926c4f413111943fb5c0627401c72d41f
Author: Pavel Valena <pvalena@redhat.com>
Date: Tue Apr 20 03:03:23 2021 +0200
Update to mimemagic 0.4.3.
diff --git a/.gitignore b/.gitignore
index 47fed7e..8f1b3e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/mimemagic-0.3.2.gem
+/mimemagic-*.gem
diff --git a/rubygem-mimemagic.spec b/rubygem-mimemagic.spec
index d72c29f..a27fdb4 100644
--- a/rubygem-mimemagic.spec
+++ b/rubygem-mimemagic.spec
@@ -2,20 +2,18 @@
%global gem_name mimemagic
Name: rubygem-%{gem_name}
-Version: 0.3.2
-Release: 7%{?dist}
+Version: 0.4.3
+Release: 1%{?dist}
Summary: Fast mime detection by extension or content
License: MIT
URL: https://github.com/minad/mimemagic
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# Change testing framework from bacon to minitest.
-# https://github.com/minad/mimemagic/commit/872e813
-Patch0: rubygem-mimemagic-0.3.2-use-minitest.patch
-Patch1: rubygem-mimemagic-0.3.2-use-minitest-test.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(minitest)
+BuildRequires: %{_bindir}/rake
+BuildRequires: shared-mime-info
BuildArch: noarch
%description
@@ -34,14 +32,8 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
-%patch0 -p1
-
%build
-# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.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_install
%install
@@ -51,7 +43,6 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
-cat "%{PATCH1}" | patch -p1
ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
@@ -60,19 +51,22 @@ popd
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE
%{gem_libdir}
-%{gem_instdir}/script
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
+%{gem_instdir}/ext/%{gem_name}/Rakefile
%{gem_instdir}/mimemagic.gemspec
-%{gem_instdir}/test
%changelog
+* Mon Apr 19 2021 Pavel Valena <pvalena@redhat.com> - 0.4.3-1
+- Update to mimemagic 0.4.3.
+
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
diff --git a/sources b/sources
index b475a94..2f8d387 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mimemagic-0.3.2.gem) = 0d919ecf7f787c1b72ea337945089070db3647976192adeb510985542962a9efc9a2dc62c51024a9a32afbebf804c21745cc06d6d4738f570f1d2eee0b1ae181
+SHA512 (mimemagic-0.4.3.gem) = 0b514a132dcbca487a817e94dd4363a42705bf3b4bd76eb3931d800fef5b048adcd5c0db32cd7e37d3f3d42127f0268d03aedd1960d1a5ddb4468e6eafc2eddd
On branch rebase
Your branch is up to date with 'pvalena/rebase'.
nothing to commit (use -u to show untracked files)
Everything up-to-date
Branch 'rebase' set up to track remote branch 'rebase' from 'pvalena'.
> Run copr build.
+ scripts/pkgs/cr-build.sh -c -t 30m rubygems
Created builds: 2144878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment