dbf602a8f5d321af015294fbbeb6fec5d3cd7ced
[gnome-vfs-httpcaptive.git] / gnome-vfs-httpcaptive.spec.in
1 %define         localstatedir /var/lib
2
3 Name:           @PACKAGE@
4 Summary:        Improved http handler for GNOME virtual file-system libraries
5 Version:        @VERSION@
6 Release:        1_cvs
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:      /var/tmp/%{name}-root
12 Requires:       glib2 >= @GLIB_REQUIRED@
13 Requires:       GConf2 >= @GCONF_REQUIRED@
14 BuildRequires:  GConf2-devel >= @GCONF_REQUIRED@
15 BuildRequires:  libxml2 >= @XML_REQUIRED@
16
17 %description
18 GNOME VFS is the GNOME virtual file system. It is the foundation of the
19 Nautilus file manager. It provides a modular architecture and ships with
20 several modules that implement support for file systems, http, ftp and others.
21 It provides a URI-based API, a backend supporting asynchronous file operations,
22 a MIME type manipulation library and other features.
23
24 This package provides "http" handler named "httpcaptive" which is capable
25 of seek() method.
26
27 %prep
28 %setup -q
29
30 %build
31 %configure --enable-more-warnings
32 make
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
38     prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
39     libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \
40     includedir=$RPM_BUILD_ROOT%{_includedir} install
41
42 rm -f $RPM_BUILD_ROOT/%{_libdir}/gnome-vfs-2.0/modules/libhttpcaptive.a
43 rm -f $RPM_BUILD_ROOT/%{_libdir}/gnome-vfs-2.0/modules/libhttpcaptive.la
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post -p /sbin/ldconfig
49
50 %postun -p /sbin/ldconfig
51
52 %files
53 %defattr(-, root, root)
54 %doc AUTHORS COPYING NEWS README
55 # ChangeLog
56 %config %{_sysconfdir}/gnome-vfs-2.0/modules/*.conf
57 %{_libdir}/gnome-vfs-2.0/modules/*.so
58
59 %changelog
60
61 * Sun Dec 15 2001 Ross Golder <ross@golder.org>
62 - fixed broken Name:
63
64 * Sun Oct 21 2001 Gregory Leblanc <gleblanc@linuxweasel.com>
65 - some messing around with Requires: and BuildRequires
66 - cleaned up %files quite a bit (still not quite as good as it could be)
67 - removed a bunch of unnecessary %defines