Update to 2.1

This commit is contained in:
Miro Hrončok 2021-01-04 12:07:51 +01:00
parent 977fbbad9f
commit 1c3b85090d
4 changed files with 15 additions and 33 deletions

2
.gitignore vendored
View File

@ -21,3 +21,5 @@ shared-mime-info-0.71.tar.bz2
/shared-mime-info-1.15.tar.xz /shared-mime-info-1.15.tar.xz
/shared-mime-info-2.0.tar.xz /shared-mime-info-2.0.tar.xz
/xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1.tar.bz2 /xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1.tar.bz2
/xdgmime-de283fc430460b9b3a7e61432a6d273cd64cb102.tar.bz2
/shared-mime-info-2.1.tar.xz

View File

@ -1,22 +0,0 @@
From 6bf9e4ff0fb7eff11a02bd937045bf5dc291841a Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 6 May 2020 16:48:47 +0200
Subject: [PATCH] data: Fix pkg-config installation path
---
data/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/data/meson.build b/data/meson.build
index 25ce031..e22b544 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -38,4 +38,5 @@ pkgconfig.generate(
name: 'shared-mime-info',
description: 'Freedesktop common MIME database',
version: meson.project_version(),
+ install_dir: get_option('datadir') / 'pkgconfig'
)
--
2.26.2

View File

@ -1,22 +1,20 @@
Summary: Shared MIME information database Summary: Shared MIME information database
Name: shared-mime-info Name: shared-mime-info
Version: 2.0 Version: 2.1
Release: 5%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://freedesktop.org/Software/shared-mime-info URL: http://freedesktop.org/Software/shared-mime-info
Source0: https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0440063a2e6823a4b1a6fb2f2af8350f/shared-mime-info-2.0.tar.xz Source0: https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0ee50652091363ab0d17e335e5e74fbe/shared-mime-info-2.1.tar.xz
Source1: mimeapps.list Source1: mimeapps.list
# Tarball for https://gitlab.freedesktop.org/xdg/xdgmime/-/tree/6663a2288d11b37bc07f5a01b4b85dcd377787e1 %global xdgmime_commit de283fc430460b9b3a7e61432a6d273cd64cb102
Source6: https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/6663a2288d11b37bc07f5a01b4b85dcd377787e1/xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1.tar.bz2 # Tarball for https://gitlab.freedesktop.org/xdg/xdgmime/-/tree/%%{xdgmime_commit}
Source6: https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/%{xdgmime_commit}/xdgmime-%{xdgmime_commit}.tar.bz2
# Work-around for https://bugs.freedesktop.org/show_bug.cgi?id=40354 # Work-around for https://bugs.freedesktop.org/show_bug.cgi?id=40354
Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch
# https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/80
Patch1: 0001-data-Fix-pkg-config-installation-path.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: xmlto BuildRequires: xmlto
@ -41,7 +39,7 @@ and looking up the correct MIME type in a database.
%prep %prep
%autosetup -S git_am %autosetup -S git_am
tar xjf %SOURCE6 tar xjf %SOURCE6
mv xdgmime-*/ xdgmime/ mv xdgmime-%{xdgmime_commit}/ xdgmime/
%build %build
%make_build -C xdgmime %make_build -C xdgmime
@ -95,6 +93,10 @@ update-mime-database -n %{_datadir}/mime &> /dev/null ||:
%{_datadir}/gettext/its/shared-mime-info.loc %{_datadir}/gettext/its/shared-mime-info.loc
%changelog %changelog
* Mon Jan 04 2021 Miro Hrončok <mhroncok@redhat.com> - 2.1-1
- Update to 2.1
- Fixes: rhbz#1911850
* Sun Nov 8 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0-5 * Sun Nov 8 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0-5
- Own the generated files (as %%ghosts) - Own the generated files (as %%ghosts)
- Fixes: rhbz#1486468 - Fixes: rhbz#1486468

View File

@ -1,2 +1,2 @@
SHA512 (xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1.tar.bz2) = 3dba3960edc4881df7ac0120c97ed2f69127365eac25b678df127c2febfaa9518e2e39b4e7713f44b131f8ce20b3100dc3676636bc705018e6ced3e9f7289875 SHA512 (xdgmime-de283fc430460b9b3a7e61432a6d273cd64cb102.tar.bz2) = 516d460cfb05f3dc240f22c4571d4f052aeb78a8f3bf69f23b487b1278025e1296efc38f87234a5504a9d1262930ae8c553d190c1a1d950ab6bb675c080acc1c
SHA512 (shared-mime-info-2.0.tar.xz) = f4a1ea9a408ffcff325e57585dec5862405e9fd6c79e444048039f3061676501c40168cecf8935d002644a702a21f08f0f7c680ef6a65fdf188e0d892f3cc085 SHA512 (shared-mime-info-2.1.tar.xz) = 87e308281e83c4cf889594f7c2e8dcb4d0d0d3910124c3816fdb886ba7d6113b2581711adcb17032b47f9b8d8b7001fab58daa52b7da7c0ef87915e341d6f1b0