blob: de0d241fb24073f39a87b412ef869ffb846e3ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
Name: shared-mime-info
Version: 1.0
Release: 0
License: GPL-2.0+
Summary: Shared MIME Database
Url: http://freedesktop.org/wiki/Software/shared-mime-info
Group: System/X11/Utilities
Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
Source1: mime-info-to-mime
Source2: macros.shared-mime-info
BuildRequires: intltool
# needed for xmllint
BuildRequires: libxml2-tools
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Requires: /usr/bin/fgrep
# needed by mime-info-to-mime:
Requires: /usr/bin/mkdir
Requires: /usr/bin/rm
# 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}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -q
%build
%configure
make
%install
%make_install
install %{SOURCE1} %{buildroot}%{_bindir}/
%find_lang %{name} %{?no_lang_C}
# Install rpm macros
install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-info
%post
%{_bindir}/update-mime-database %{_datadir}/mime || true
%lang_package
%docs_package
%files
%defattr (-, root, root)
%doc COPYING
%{_bindir}/*
%{_datadir}/mime/packages/*.xml
%{_datadir}/pkgconfig/*.pc
%ghost %{_datadir}/mime/[a-ms-vxX]*
%{_sysconfdir}/rpm/macros.shared-mime-info
%changelog
|