# $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
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Temporary cludge before full 'devel' package gets deployed
+%define _unpackaged_files_terminate_build 0
+
Summary: Microsoft Windows platform filesystem access.
Name: @PACKAGE@
%define release 0
Version: @VERSION@
Release: %{release}
Group: Applications/System
-Source: http://short.vellum.cz/sw/@PACKAGE@-@VERSION@.tar.gz
+Source: http://www.jankratochvil.net/project/captive/@PACKAGE@-@VERSION@.tar.gz
Copyright: GPL
BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
%description
-Microsoft Windows platform filesystem access.
-TODO
-
-%package devel
-Summary: Microsoft Windows platform filesystem access development support.
-Group: Development/System
-Requires: surprise = %{PACKAGE_VERSION}
+Existing binary Microsoft Windows file system drivers were exploited
+for accessing drives with possibly proprietary file system data structures.
+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.
-%description devel
-Development package containing libraries for static linking together with
-header files needed for any linking.
+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.
-Microsoft Windows platform filesystem access.
-TODO
+#% %package devel
+#% Summary: Microsoft Windows platform filesystem access development support.
+#% Group: Development/System
+#% Requires: surprise = %{PACKAGE_VERSION}
+#%
+#% %description devel
+#% Development package containing libraries for static linking together with
+#% header files needed for any linking.
+#%
+#% Microsoft Windows platform filesystem access.
+#% TODO
%prep
%setup
%build
# Never disable debug for captive, see FAQ
# "How to check valid input arguments? Invalid processing state assumptions?"
+# FIXME: Use our own CFLAGS to prevent '-mcpu=i686' which up to gcc-20030214 gcc
+# will ignore stack freeing of attribute((stdcall)) callees in caller functions code.
+# Check at the final call of src/libcaptive/reactos/ntoskrnl/io/irp.c/IofCallDriver().
+CFLAGS="-O2"
%configure \
- --enable-shared --enable-static
+ --enable-shared --disable-static \
+ --with-readline \
+ --with-sandbox-setuid=@PACKAGE@ \
+ --with-sandbox-setgid=@PACKAGE@ \
+ --with-sandbox-chroot=%{_var}/lib/@PACKAGE@ \
+ --disable-gtk-doc
make
%install
%files
%defattr(-,root,root)
-%doc INSTALL
-/sbin/@PACKAGE@cmdline
-/usr/bin/@PACKAGE@server
-/usr/share/@PACKAGE@
-/usr/share/locale/*/LC_MESSAGES/@PACKAGE@.mo
-#for version-info use: /lib/*.so.*
-###for --disable-shared/(--enable-static-link disable):
-/usr/lib/*-*.so
+%doc README NEWS AUTHORS
+%{_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
+%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 devel
-%defattr(-,root,root)
-%doc ChangeLog
-/usr/include/@PACKAGE@
-/usr/share/aclocal/*
-/usr/lib/*.a
-/usr/lib/*.la
-###for --disable-shared/(--enable-static-link disable):
-/usr/lib/*[a-z].so
+# %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):
+# /usr/lib/*[a-z].so