source: trunk/third/gnome-mime-data/gnome-mime-data.spec @ 21388

Revision 21388, 2.3 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21387, which included commits to RCS files with non-trunk default branches.
Line 
1%define         localstatedir /var/lib
2
3Name:           gnome-mime-data
4Summary:        The GNOME virtual file-system libraries
5Version:        2.4.2
6Release:        1
7License:        LGPL
8Group:          System Environment/Libraries
9Source:         ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%{version}.tar.gz
10URL:            http://www.gnome.org/
11BuildRoot:      %{_tmppath}/%{name}-root
12BuildArch: noarch
13
14%description
15The GNOME MIME database contains a basic set of applications and MIME
16types 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.
28MYCFLAGS="$RPM_OPT_FLAGS"
29
30if [ ! -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
36fi
37
38CFLAGS="$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
44make
45
46%install
47rm -rf $RPM_BUILD_ROOT
48make -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
56rm -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
Note: See TracBrowser for help on using the repository browser.