5 Summary: Shared MIME Database
6 Url: http://freedesktop.org/wiki/Software/shared-mime-info
7 Group: Base/Configuration
8 Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
9 Source1: mime-info-to-mime
10 Source2: macros.shared-mime-info
11 Source1001: shared-mime-info.manifest
12 BuildRequires: intltool
13 BuildRequires: libxml2-tools
14 BuildRequires: pkgconfig(glib-2.0)
15 BuildRequires: pkgconfig(libxml-2.0)
16 Requires: /usr/bin/fgrep
17 Requires: /usr/bin/mkdir
19 #!BuildIgnore: shared-mime-info
20 # needed by update-mime-database
21 Provides: %{name}-devel = %{version}
24 This package contains:
26 - The freedesktop.org shared MIME database spec.
28 - The merged GNOME and KDE databases, in the new format.
30 - The update-mime-database command, used to install new MIME data.
33 Summary: Tools supporting shared-mime-info
34 Requires: shared-mime-info
37 Tools to support packages %{name}
44 export CFLAGS=`echo $RPM_OPT_FLAGS |sed -e 's/atom/i686/g'`
50 install %{SOURCE1} %{buildroot}%{_bindir}/
51 %find_lang %{name} %{?no_lang_C}
53 install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-info
57 %{_bindir}/update-mime-database %{_datadir}/mime || true
64 %manifest %{name}.manifest
65 %defattr (-, root, root)
67 %{_bindir}/update-mime-database
68 %{_datadir}/mime/packages/*.xml
69 %{_datadir}/pkgconfig/*.pc
70 %ghost %{_datadir}/mime/[a-ms-vxX]*
71 %{_sysconfdir}/rpm/macros.shared-mime-info
75 %manifest %{name}.manifest
76 %{_bindir}/mime-info-to-mime