shared-mime-info/shared-mime-info.spec
Dominique Leuenberger 6fdc4df712 Accepting request 860718 from home:dirkmueller:branches:GNOME:Factory
- update to 2.1:
  * New maintainers: David Faure and Ville Skyttä
  * Adapt to xdgmime behaviour change: in case of multiple glob matches, and the magic match is unrelated to all of them, ignore the magic and pick one of the glob matches. xdgmime was actually deviating from the spec on this. (#138)
  * Improve text/vnd.trolltech.linguist magic to reduce false positives for MPEG TS files (#10)
  * audio/mpeg: add layer 2, 2.5, and 1 protected magics (#46)
  * Add many aliases for image/x-tga
  * audio/x-mod: improve magic for 669 Composer files (#144)
  * Add mime-type image/ktx2 (Khronos image texture format version 2)
  * application/oxps: differentiate from /vnd.ms-xpsdocument
  * Make image/g3fax the canonical name for image/fax-g3
  * Make text/vnd.trolltech.linguist the canonical name for text/vnd.qt.linguist
  * Make application/vnd.smaf the canonical name for application/x-smaf
  * Make application/vnd.apple.keynote the canonical name for application/x-iwork-keynote-sffkey
  * Add mime-type image/astc (Adaptive Scalable Texture Compression files)
  * Add mime-type for SageMath script files (*.sage)
  * Add mime-type for Kaitai Struct
  * Remove application/x-dc-rom
  * Add mime-type for MAME compressed hard disk image (application/x-mame-chd)
  * Add mime-types application/nintendo-3ds-executable, application/x-nintendo-3ds-rom
  * Add mime-types application/x-dreamcast-rom, application/x-gd-rom-cue, application/x-discjuggler-cd-image
  * Add mime-type application/x-compressed-iso (*.cso)
  * Remove image/avif-sequence
  * Fix application/x-sharedlib vs application/x-executable confusion for PIE executables (#11) 
- drop smi-Fix-pkg-config-installation-path.patch (obsolete)

OBS-URL: https://build.opensuse.org/request/show/860718
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/shared-mime-info?expand=0&rev=91
2021-01-13 12:14:35 +00:00

94 lines
2.6 KiB
RPMSpec

#
# spec file for package shared-mime-info
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define commitid 0ee50652091363ab0d17e335e5e74fbe
Name: shared-mime-info
Version: 2.1
Release: 0
Summary: Shared MIME Database
License: GPL-2.0-or-later
Group: System/X11/Utilities
URL: https://gitlab.freedesktop.org/xdg/shared-mime-info
Source0: %{url}/uploads/%{commitid}/%{name}-%{version}.tar.xz
Source1: macros.shared-mime-info
BuildRequires: glib2-devel
BuildRequires: itstool
BuildRequires: libxml2-devel
# needed for xmllint
BuildRequires: libxml2-tools
BuildRequires: meson
#BuildRequires: translation-update-upstream
BuildRequires: xmlto
# libgio-2_0-0 Requires: shared-mime-info, but this can't exist yet. We explicitly ignore this dependency here.
#!BuildIgnore: shared-mime-info
# needed by update-mime-database
Provides: %{name}-devel = %{version}-%{release}
%description
This package contains:
- The freedesktop.org shared MIME database spec.
- The merged GNOME and KDE databases, in the new format.
- The update-mime-database command, used to install new MIME data.
%lang_package
%prep
%autosetup -p1
# Broken as of 1.15
#translation-update-upstream
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{name} %{?no_lang_C}
# Install rpm macros
install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.shared-mime-info
%check
%meson_test
%filetriggerin -- %{_datadir}/mime
export PKGSYSTEM_ENABLE_FSYNC=0
%{_bindir}/update-mime-database "%{_datadir}/mime"
%filetriggerpostun -- %{_datadir}/mime
export PKGSYSTEM_ENABLE_FSYNC=0
[ -x %{_bindir}/update-mime-database ] && %{_bindir}/update-mime-database "%{_datadir}/mime"
%files
%license COPYING
%doc NEWS README.md
%{_bindir}/*
%{_datadir}/mime/packages/*.xml
%{_datadir}/pkgconfig/*.pc
%{_datadir}/gettext/its/shared-mime-info.*
%ghost %{_datadir}/mime/[a-ms-vxX]*
%{_mandir}/man?/*%{ext_man}
%{_rpmmacrodir}/macros.shared-mime-info
%files lang -f %{name}.lang
%changelog