captive_shared_cache_map_object_FileSizes_changed(): Improved performance.
[captive.git] / captive.spec.in
index 0a7f0c4..efaaf7a 100644 (file)
@@ -26,7 +26,7 @@ Version: @VERSION@
 Release: %{release}
 Group: System Environment/Base
 Packager: Jan Kratochvil <project-captive@jankratochvil.net>
-Source: http://www.jankratochvil.net/project/captive/@PACKAGE@-@VERSION@.tar.gz
+Source: http://www.jankratochvil.net/project/captive/dist/@PACKAGE@-@VERSION@.tar.gz
 Copyright: GPL
 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
 BuildRequires: ORBit2-devel
@@ -67,17 +67,18 @@ Requires: lufs >= 0.9.6-1captive
 LUFS is a hybrid userspace filesystem framework.
 
 Package provides LUFS filesystem module to access Microsoft Windows platform
-filesystems such as NTFS.
+filesystems such as NTFS. Use filesystem type 'captive-ntfs' for NTFS disks.
 
 %package install
 Summary: Instant installer for Microsoft Windows platform filesystem access.
 Group: System Environment/Base
 Requires: captive-lufs = %{PACKAGE_VERSION}
-BuildRequires: ntfsprogs-devel
+# Versions before 1.8.0 were too buggy
+BuildRequires: ntfsprogs-devel >= 1.8.0
 # 'PreReq' needed for Mandrake-9.1 otherwise '%preun install' fails
 # during 'rpm -e ntfsprogs captive-install':
-PreReq: ntfsprogs
-Requires: ntfsprogs
+PreReq: ntfsprogs >= 1.8.0
+Requires: ntfsprogs >= 1.8.0
 Requires: ntfsprogs-gnomevfs
 Requires: gnome-vfs-httpcaptive
 BuildRequires: gnome-vfs2-devel
@@ -86,6 +87,8 @@ BuildRequires: libgnomeui-devel
 Requires: libgnomeui
 BuildRequires: readline-devel
 Requires: readline
+BuildRequires: libxml2-devel >= 2.4.29
+Requires: libxml2 >= 2.4.29
 
 %description install
 Package provides easy enough unattended installation of Microsoft Windows
@@ -113,10 +116,6 @@ NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME
 %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 --disable-static \
                --with-readline \
@@ -144,6 +143,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun
 /sbin/ldconfig
+# Remove stale sandbox chroot directories owned by 'captive.captive':
+rm -rf %{_var}/lib/@PACKAGE@/sandbox-server-*
 
 %files
 %defattr(-,root,root)
@@ -159,6 +160,7 @@ rm -rf $RPM_BUILD_ROOT
 %config %{_sysconfdir}/gnome-vfs-2.0/modules/@PACKAGE@.conf
 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
 %attr(755,root,root) %{_var}/lib/@PACKAGE@
+%attr(1777,root,root) %{_var}/lib/@PACKAGE@/tmp
 %attr(644,root,root) %{_var}/lib/@PACKAGE@/*.sys
 
 %files lufs