%define release 0
Version: @VERSION@
Release: %{release}
-Group: Applications/System
+Group: System Environment/Base
Source: http://www.jankratochvil.net/project/captive/@PACKAGE@-@VERSION@.tar.gz
Copyright: GPL
BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
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 install
+Summary: Instant installer for Microsoft Windows platform filesystem access.
+Group: System Environment/Base
+Requires: captive-lufs = %{PACKAGE_VERSION}
+BuildRequires: ntfsprogs-devel
+Requires: ntfsprogs
+
+%description install
+Package provides easy enough unattended installation of Microsoft Windows
+platform filesystem access. Installer finds available NTFS partitions and
+tries to acquire needed Microsoft Windows filesystem driver files.
+
#% %package devel
#% Summary: Microsoft Windows platform filesystem access development support.
#% Group: Development/System
--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
%files
%defattr(-,root,root)
-%doc README NEWS AUTHORS
+%doc README NEWS AUTHORS TODO
%{_libdir}/lib@PACKAGE@-@VERSION@.so
-%{_libdir}/liblufs-@PACKAGE@fs-@VERSION@.so
-%{_libdir}/liblufs-@PACKAGE@fs.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
%{_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@-*
+
+%post install
+%{_sbindir}/captive-install-fstab --add
+
+%preun install
+%{_sbindir}/captive-install-fstab --remove
+
+%files install
+%defattr(-,root,root)
+%{_sbindir}/captive-install-fstab
+
# %files devel
# %defattr(-,root,root)
# %doc ChangeLog