# Note that this is NOT a relocatable package %define name gnome-vfs %define ver 1.0.3 %define RELEASE 1 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} %define prefix %{_prefix} %define sysconfdir %{_prefix}/etc Summary: The GNOME virtual file-system libraries Name: %name Version: %ver Release: %rel Vendor: CVS Distribution: GNOME Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%{ver}.tar.gz URL: http://www.gnome.org/ BuildRoot: /var/tmp/%{name}-root Requires: glib >= 1.2.6 Requires: GConf >= 0.9 Requires: oaf >= 0.3.0 Docdir: %{prefix}/doc Summary: GNOME VFS is the GNOME virtual file system. It is used extensively by Nautilus. Patch0: gnome-vfs-%{ver}-aix.patch %define DEFCC xlc %description GNOME VFS is the GNOME virtual file system. It is the foundation of the Nautilus file manager. It provides a modular architecture and ships with several modules that implement support for file systems, http, ftp and others. It provides a URI-based API, a backend supporting asynchronous file operations, a MIME type manipulation library and other features. %package devel Summary: Libraries and include files for developing GNOME VFS applications. Group: Development/Libraries Requires: %name = %{PACKAGE_VERSION} Requires: GConf-devel Requires: oaf-devel %description devel This package provides the necessary development libraries for writing GNOME VFS modules and applications that use the GNOME VFS APIs. %changelog * Tue Feb 22 2000 Ross Golder - Integrate into source tree %prep %setup -q %patch0 -p1 -b .aix # a couple of the message files seem to contain errors that # are causing problems... Remove them for now. mv ./po/zh_TW.po ./po/zh_TW.po.orig touch ./po/zh_TW.po %build %ifarch alpha MYARCH_FLAGS="--host=alpha-redhat-linux" %endif # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ma" fi #libtoolize --force # Needed for snapshot releases. MYCFLAGS="$RPM_OPT_FLAGS" if [ ! -f configure ]; then CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./autogen.sh $MYARCH_FLAGS --enable-more-warnings --prefix=%prefix --localstatedir=%{prefix}/var/lib --sysconfdir=%{sysconfdir} else CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./configure $MYARCH_FLAGS --enable-more-warnings --prefix=%prefix --localstatedir=%{prefix}/var/lib --sysconfdir=%{sysconfdir} fi make %install rm -rf $RPM_BUILD_ROOT make -k sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} prefix=$RPM_BUILD_ROOT%{prefix} install (cd $RPM_BUILD_ROOT for dir in bin include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done ) %clean rm -rf $RPM_BUILD_ROOT %post %postun %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %config %{sysconfdir}/gnome-vfs-mime-magic %config %{sysconfdir}/vfs/modules/*.conf %dir %{prefix}/share/application-registry %{prefix}/lib/*.0 %{prefix}/lib/*.sh %{prefix}/lib/*.so %{prefix}/lib/vfs/extfs/* %{prefix}/lib/vfs/modules/*.0 %{prefix}/lib/vfs/modules/*.so %{prefix}/man/man5/*.5* %{prefix}/share/application-registry/gnome-vfs.applications #%{prefix}/share/gnome/html/*.txt %{prefix}/share/locale/*/LC_MESSAGES/*.mo %{prefix}/share/mime-info/*.keys %{prefix}/share/mime-info/*.mime /usr/lib/*.so /usr/lib/*.la %files devel %defattr(-, root, root) %{prefix}/include/gnome-vfs-1.0/libgnomevfs/*.h #%{prefix}/lib/vfs/include/*.h #%{prefix}/lib/*.a %{prefix}/lib/*.la #%{prefix}/lib/vfs/modules/*.a %{prefix}/lib/vfs/modules/*.la %{prefix}/bin/gnome-vfs-config /usr/lib/*.la /usr/bin/gnome-vfs-config