2007-01-08 16:52:47 +00:00
|
|
|
#
|
2011-09-19 08:50:04 +00:00
|
|
|
# spec file for package shared-mime-info
|
2007-01-08 16:52:47 +00:00
|
|
|
#
|
2020-04-14 10:17:51 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-08 16:52:47 +00:00
|
|
|
#
|
2008-08-22 19:37:55 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-10-24 12:57:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-08 16:52:47 +00:00
|
|
|
#
|
|
|
|
|
2008-08-22 19:37:55 +00:00
|
|
|
|
2020-05-06 17:46:33 +00:00
|
|
|
%define commitid 0440063a2e6823a4b1a6fb2f2af8350f
|
2020-04-14 10:17:51 +00:00
|
|
|
|
2007-01-08 16:52:47 +00:00
|
|
|
Name: shared-mime-info
|
2020-05-06 17:46:33 +00:00
|
|
|
Version: 2.0
|
2012-01-17 18:47:13 +00:00
|
|
|
Release: 0
|
2007-01-08 16:52:47 +00:00
|
|
|
Summary: Shared MIME Database
|
2018-03-09 10:09:18 +00:00
|
|
|
License: GPL-2.0-or-later
|
2012-01-17 18:47:13 +00:00
|
|
|
Group: System/X11/Utilities
|
2020-04-14 10:17:51 +00:00
|
|
|
URL: https://gitlab.freedesktop.org/xdg/shared-mime-info
|
|
|
|
Source0: %{url}/uploads/%{commitid}/%{name}-%{version}.tar.xz
|
2017-10-12 14:53:47 +00:00
|
|
|
Source1: macros.shared-mime-info
|
2020-05-11 13:16:05 +00:00
|
|
|
# PATCH-FIX-UPSTREAM smi-Fix-pkg-config-installation-path.patch -- Fix pkg-config installation path
|
|
|
|
Patch0: smi-Fix-pkg-config-installation-path.patch
|
2020-04-14 10:17:51 +00:00
|
|
|
|
2011-09-19 08:50:04 +00:00
|
|
|
BuildRequires: glib2-devel
|
2020-04-14 10:17:51 +00:00
|
|
|
BuildRequires: itstool
|
2011-09-19 08:50:04 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2012-02-26 15:05:56 +00:00
|
|
|
# needed for xmllint
|
|
|
|
BuildRequires: libxml2-tools
|
2020-05-06 17:46:33 +00:00
|
|
|
BuildRequires: meson
|
2020-04-14 10:17:51 +00:00
|
|
|
#BuildRequires: translation-update-upstream
|
2020-05-06 17:46:33 +00:00
|
|
|
BuildRequires: xmlto
|
2011-10-02 19:40:31 +00:00
|
|
|
# libgio-2_0-0 Requires: shared-mime-info, but this can't exist yet. We explicitly ignore this dependency here.
|
|
|
|
#!BuildIgnore: shared-mime-info
|
2007-01-08 16:52:47 +00:00
|
|
|
# needed by update-mime-database
|
2018-03-09 10:09:18 +00:00
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
2007-01-08 16:52:47 +00:00
|
|
|
|
|
|
|
%description
|
2010-08-09 15:37:57 +00:00
|
|
|
This package contains:
|
|
|
|
|
|
|
|
- The freedesktop.org shared MIME database spec.
|
2007-01-08 16:52:47 +00:00
|
|
|
|
|
|
|
- The merged GNOME and KDE databases, in the new format.
|
|
|
|
|
|
|
|
- The update-mime-database command, used to install new MIME data.
|
|
|
|
|
2012-07-23 20:46:25 +00:00
|
|
|
%lang_package
|
2018-03-09 10:09:18 +00:00
|
|
|
|
2007-01-08 16:52:47 +00:00
|
|
|
%prep
|
2019-03-25 20:58:23 +00:00
|
|
|
%autosetup -p1
|
2020-04-14 10:17:51 +00:00
|
|
|
# Broken as of 1.15
|
|
|
|
#translation-update-upstream
|
2007-01-08 16:52:47 +00:00
|
|
|
|
|
|
|
%build
|
2020-05-06 17:46:33 +00:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2007-01-08 16:52:47 +00:00
|
|
|
|
|
|
|
%install
|
2020-05-06 17:46:33 +00:00
|
|
|
%meson_install
|
2020-05-11 13:16:05 +00:00
|
|
|
# we also deliver %{_datadir}/mime/application directory - many other packages install files in there
|
|
|
|
if [ ! -d %{buildroot}%{_datadir}/mime/application ]; then mkdir -p %{buildroot}%{_datadir}/mime/application; fi
|
2012-07-23 20:46:25 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-10-15 11:57:36 +00:00
|
|
|
# Install rpm macros
|
2019-05-09 20:25:49 +00:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.shared-mime-info
|
2007-01-08 16:52:47 +00:00
|
|
|
|
2013-02-19 20:16:29 +00:00
|
|
|
%check
|
2020-05-06 17:50:45 +00:00
|
|
|
%meson_test
|
2013-02-19 20:16:29 +00:00
|
|
|
|
2017-07-08 11:22:44 +00:00
|
|
|
%filetriggerin -- %{_datadir}/mime
|
|
|
|
export PKGSYSTEM_ENABLE_FSYNC=0
|
|
|
|
%{_bindir}/update-mime-database "%{_datadir}/mime"
|
2007-01-08 16:52:47 +00:00
|
|
|
|
2017-07-08 11:22:44 +00:00
|
|
|
%filetriggerpostun -- %{_datadir}/mime
|
2016-03-02 10:41:09 +00:00
|
|
|
export PKGSYSTEM_ENABLE_FSYNC=0
|
2017-07-08 11:22:44 +00:00
|
|
|
[ -x %{_bindir}/update-mime-database ] && %{_bindir}/update-mime-database "%{_datadir}/mime"
|
2007-01-08 16:52:47 +00:00
|
|
|
|
2012-07-23 20:46:25 +00:00
|
|
|
%files
|
2018-03-09 10:09:18 +00:00
|
|
|
%license COPYING
|
2020-05-06 17:46:33 +00:00
|
|
|
%doc NEWS README.md
|
2007-01-08 16:52:47 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/mime/packages/*.xml
|
2020-05-11 13:16:05 +00:00
|
|
|
%{_datadir}/pkgconfig/*.pc
|
2020-05-06 17:46:33 +00:00
|
|
|
%{_datadir}/gettext/its/shared-mime-info.*
|
2008-08-22 19:37:55 +00:00
|
|
|
%ghost %{_datadir}/mime/[a-ms-vxX]*
|
2018-03-09 10:09:18 +00:00
|
|
|
%{_mandir}/man?/*%{ext_man}
|
2019-05-09 20:25:49 +00:00
|
|
|
%{_rpmmacrodir}/macros.shared-mime-info
|
2007-01-08 16:52:47 +00:00
|
|
|
|
2012-07-23 20:46:25 +00:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-02-19 22:57:16 +00:00
|
|
|
%changelog
|