1 %define localstatedir /var/lib
4 Summary: The GNOME virtual file-system libraries
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: control-center
13 Requires: glib2 >= @GLIB_REQUIRED@
14 Requires: GConf2 >= @GCONF_REQUIRED@
15 BuildRequires: gnome-libs-devel, control-center-devel
16 BuildRequires: bonobo-activation-devel >= @BONOBO_ACTIVATION_REQUIRED@
17 BuildRequires: bonobo-devel >= @BONOBO_REQUIRED@
18 BuildRequires: GConf2-devel >= @GCONF_REQUIRED@
19 BuildRequires: gtk2-devel >= @GTK_REQUIRED@
20 BuildRequires: ORBit-devel >= @ORBIT_REQUIRED@
21 BuildRequires: libxml2 >= @XML_REQUIRED@
24 GNOME VFS is the GNOME virtual file system. It is the foundation of the
25 Nautilus file manager. It provides a modular architecture and ships with
26 several modules that implement support for file systems, http, ftp and others.
27 It provides a URI-based API, a backend supporting asynchronous file operations,
28 a MIME type manipulation library and other features.
31 Summary: Libraries and include files for developing GNOME VFS applications.
32 Group: Development/Libraries
33 Requires: %name = %{version}
35 Requires: bonobo-devel
38 This package provides the necessary development libraries for writing
39 GNOME VFS modules and applications that use the GNOME VFS APIs.
47 MYARCH_FLAGS="--host=alpha-redhat-linux"
50 # Needed for snapshot releases.
51 MYCFLAGS="$RPM_OPT_FLAGS"
53 if [ ! -f configure ]; then
54 CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
55 --enable-more-warnings --prefix=%{_prefix} \
56 --localstatedir=%{localstatedir} --sysconfdir=%{_sysconfdir} \
57 --mandir=%{_mandir} --libdir=%{_libdir} \
58 --includedir=%{_includedir} --bindir=%{_bindir}
61 CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --enable-more-warnings \
62 --prefix=%{_prefix} --localstatedir=%{localstatedir} \
63 --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \
64 --libdir=%{_libdir} --includedir=%{_includedir} \
70 rm -rf $RPM_BUILD_ROOT
72 make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
73 prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
74 libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \
75 includedir=$RPM_BUILD_ROOT%{_includedir} install
80 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
86 %files -f %{name}.lang
87 %defattr(-, root, root)
89 %doc AUTHORS COPYING ChangeLog NEWS README
90 %config %{_sysconfdir}/gnome-vfs-2.0/modules/*.conf
91 %config %{_sysconfdir}/gnome-vfs-2.0/vfolders/*.vfolder-info
94 %{_libdir}/vfs/extfs/*
95 %{_libdir}/gnome-vfs-2.0/modules/*.so
96 %{_libdir}/bonobo/monikers/*.so
97 %{_libdir}/bonobo/servers/*.server
98 %{_prefix}/share/gtk-doc/html/gnome-vfs/*.html
99 %{_prefix}/share/locale/*/LC_MESSAGES/*.mo
102 %defattr(-, root, root)
103 %{_includedir}/gnome-vfs-2.0/libgnomevfs/*.h
104 %{_includedir}/gnome-vfs-module-2.0/libgnomevfs/*.h
105 %{_libdir}/gnome-vfs-2.0/include/*.h
108 %{_libdir}/gnome-vfs-2.0/modules/*.a
109 %{_libdir}/gnome-vfs-2.0/modules/*.la
110 %{_libdir}/bonobo/monikers/*.a
111 %{_libdir}/bonobo/monikers/*.la
112 %{_libdir}/pkgconfig/*.pc
116 * Sun Dec 15 2001 Ross Golder <ross@golder.org>
119 * Sun Oct 21 2001 Gregory Leblanc <gleblanc@linuxweasel.com>
120 - some messing around with Requires: and BuildRequires
121 - cleaned up %files quite a bit (still not quite as good as it could be)
122 - removed a bunch of unnecessary %defines