1 | %define localstatedir /var/lib |
---|
2 | |
---|
3 | Name: gnome-mime-data |
---|
4 | Summary: The GNOME virtual file-system libraries |
---|
5 | Version: 2.4.2 |
---|
6 | Release: 1 |
---|
7 | License: LGPL |
---|
8 | Group: System Environment/Libraries |
---|
9 | Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%{version}.tar.gz |
---|
10 | URL: http://www.gnome.org/ |
---|
11 | BuildRoot: %{_tmppath}/%{name}-root |
---|
12 | BuildArch: noarch |
---|
13 | |
---|
14 | %description |
---|
15 | The GNOME MIME database contains a basic set of applications and MIME |
---|
16 | types for a GNOME system. |
---|
17 | |
---|
18 | %prep |
---|
19 | %setup -q |
---|
20 | |
---|
21 | %build |
---|
22 | |
---|
23 | %ifarch alpha |
---|
24 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
25 | %endif |
---|
26 | |
---|
27 | # Needed for snapshot releases. |
---|
28 | MYCFLAGS="$RPM_OPT_FLAGS" |
---|
29 | |
---|
30 | if [ ! -f configure ]; then |
---|
31 | CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \ |
---|
32 | --enable-more-warnings --prefix=%{_prefix} \ |
---|
33 | --localstatedir=%{localstatedir} --sysconfdir=%{_sysconfdir} \ |
---|
34 | --mandir=%{_mandir} --libdir=%{_libdir} \ |
---|
35 | --includedir=%{_includedir} --bindir=%{_bindir} --help |
---|
36 | fi |
---|
37 | |
---|
38 | CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --enable-more-warnings \ |
---|
39 | --prefix=%{_prefix} --localstatedir=%{localstatedir} \ |
---|
40 | --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \ |
---|
41 | --libdir=%{_libdir} --includedir=%{_includedir} \ |
---|
42 | --bindir=%{_bindir} |
---|
43 | |
---|
44 | make |
---|
45 | |
---|
46 | %install |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ |
---|
49 | prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \ |
---|
50 | libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \ |
---|
51 | includedir=$RPM_BUILD_ROOT%{_includedir} install |
---|
52 | |
---|
53 | %find_lang %name |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %files -f %{name}.lang |
---|
59 | %defattr(-, root, root) |
---|
60 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
61 | %config %{_sysconfdir}/gnome-vfs-mime-magic |
---|
62 | %dir %{_datadir}/application-registry |
---|
63 | %{_datadir}/application-registry/gnome-vfs.applications |
---|
64 | %{_datadir}/mime-info/*.keys |
---|
65 | %{_datadir}/mime-info/*.mime |
---|
66 | %{_libdir}/pkgconfig/*.pc |
---|
67 | %{_datadir}/man/man5/gnome-vfs-mime.5.gz |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Sat Mar 29 2003 Christian Schaller <Uraeus@gnome.org> |
---|
71 | - Add man page |
---|
72 | - Add noarch flag |
---|
73 | |
---|
74 | * Mon Feb 11 2002 Gregory Leblanc <gleblanc@linuxweasel.com> |
---|
75 | - fixed name |
---|
76 | - disabled double-run of configure (hackish solution) |
---|
77 | - fixed buildroot |
---|
78 | |
---|
79 | * Sun Oct 21 2001 Gregory Leblanc <gleblanc@linuxweasel.com> |
---|
80 | - some messing around with Requires: and BuildRequires |
---|
81 | - cleaned up %files quite a bit (still not quite as good as it could be) |
---|
82 | - removed a bunch of unnecessary %defines |
---|