# $Id$
# rpm package description file for building
-# Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+# Copyright (C) 2002-2003 Jan Kratochvil <project-captive@jankratochvil.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
%define release 0
Version: @VERSION@
Release: %{release}
-Group: Applications/System
-Source: http://www.jankratochvil.net/sw/@PACKAGE@-@VERSION@.tar.gz
+Group: System Environment/Base
+Source: http://www.jankratochvil.net/project/captive/@PACKAGE@-@VERSION@.tar.gz
Copyright: GPL
BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
+BuildRequires: ORBit2-devel
+Requires: ORBit2
+BuildRequires: openssl-devel
+Requires: openssl
+BuildRequires: gnome-vfs2-devel
+Requires: gnome-vfs2
+BuildRequires: libxml2-devel
+Requires: libxml2
+BuildRequires: popt
+Requires: popt
+BuildRequires: glib2-devel
+Requires: glib2
+BuildRequires: readline-devel
+Requires: readline
+BuildRequires: gcc >= 3.0
%description
Existing binary Microsoft Windows file system drivers were exploited
Open file system API is provided to access these file system drivers.
Microsoft Windows system components required by these drivers
were analyzed and successfuly emulated in the GNU/Linux operating system.
-Currently the implementation allows applications running under the GNU/Linux
-operating system to access VFAT, ISO9660 and EXT2 drives. NTFS file system
-capability target is the final goal being currently developed on the base
-of this project assets.
+
+The implementation allows applications running under the GNU/Linux operating
+system to access NTFS drives. File system driver compatibility with VFAT,
+ISO9660 and EXT2 is also provided.
+
+%package lufs
+Summary: LUFS module for Microsoft Windows platform filesystem access.
+Group: System Environment/Base
+Requires: captive = %{PACKAGE_VERSION}
+Requires: lufs >= 0.9.6-1captive
+
+%description lufs
+LUFS is a hybrid userspace filesystem framework.
+
+Package provides LUFS filesystem module to access Microsoft Windows platform
+filesystems such as NTFS.
#% %package devel
#% Summary: Microsoft Windows platform filesystem access development support.
CFLAGS="-O2"
%configure \
--enable-shared --disable-static \
- --with-readline
+ --with-readline \
+ --with-sandbox-setuid=@PACKAGE@ \
+ --with-sandbox-setgid=@PACKAGE@ \
+ --with-sandbox-chroot=%{_var}/lib/@PACKAGE@ \
+ --with-sbin-mountdir=/sbin \
+ --with-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
+ --disable-gtk-doc
make
%install
%files
%defattr(-,root,root)
-%doc README NEWS AUTHORS
-%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs-@VERSION@.so
-%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.so
-%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
-%{_libdir}/libcaptive-@VERSION@.so
-%{_bindir}/captive-cmdline
-%{_sysconfdir}/gnome-vfs-2.0/modules/captive.conf
+%doc README NEWS AUTHORS TODO
+%{_libdir}/lib@PACKAGE@-@VERSION@.so
+%{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs-@VERSION@.so
+%{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs.so
+%{_bindir}/@PACKAGE@-cmdline
+%attr(4755,root,root) %{_sbindir}/@PACKAGE@-sandbox-server
+%{_sysconfdir}/gnome-vfs-2.0/modules/@PACKAGE@.conf
%{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
+%attr(755,root,root) %{_var}/lib/@PACKAGE@
+
+%files lufs
+%defattr(-,root,root)
+%{_libdir}/liblufs-@PACKAGE@fs-@VERSION@.so
+%{_libdir}/liblufs-@PACKAGE@fs.so
+/sbin/mount.@PACKAGE@
+/sbin/mount.@PACKAGE@-*
# %files devel
# %defattr(-,root,root)
# %doc ChangeLog
# /usr/include/@PACKAGE@
# /usr/share/aclocal/*
+# %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
# /usr/lib/*.a
# /usr/lib/*.la
# ###for --disable-shared/(--enable-static-link disable):