blob: 2b83b93aaa3b81accb3898309bc219bc7b5b9a19 (
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
68
69
70
71
72
73
74
|
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: Base/Configuration
Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
Source1: mime-info-to-mime
Source2: macros.shared-mime-info
BuildRequires: intltool
BuildRequires: libxml2-tools
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Requires: /usr/bin/fgrep
Requires: /usr/bin/mkdir
Requires: /usr/bin/rm
#!BuildIgnore: shared-mime-info
# needed by update-mime-database
Provides: %{name}-devel = %{version}
%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.
%package tools
Summary: Tools supporting shared-mime-info
Requires: shared-mime-info
%description tools
Tools to support packages %{name}
%prep
%setup -q
%build
export CFLAGS=`echo $RPM_OPT_FLAGS |sed -e 's/atom/i686/g'`
%configure
make V=1
%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)
%license COPYING
%{_bindir}/update-mime-database
%{_datadir}/mime/packages/*.xml
%{_datadir}/pkgconfig/*.pc
%ghost %{_datadir}/mime/[a-ms-vxX]*
%{_sysconfdir}/rpm/macros.shared-mime-info
%files tools
%{_bindir}/mime-info-to-mime
%changelog
|