X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=captive.spec.in;h=efaaf7a7349b1ef2eb02385740b35a2a8af9a78e;hb=000196808efeead1b2aee0c3aaa0ef64c11ef335;hp=b31918ece47f904d50315c8154bd9fc2c1821383;hpb=952ad78616a59b0a5d04265ea5b9e5012838ecb5;p=captive.git diff --git a/captive.spec.in b/captive.spec.in index b31918e..efaaf7a 100644 --- a/captive.spec.in +++ b/captive.spec.in @@ -26,7 +26,7 @@ Version: @VERSION@ Release: %{release} Group: System Environment/Base Packager: Jan Kratochvil -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 @@ -60,20 +60,25 @@ ISO9660 and EXT2 is also provided. Summary: LUFS module for Microsoft Windows platform filesystem access. Group: System Environment/Base Requires: captive = %{PACKAGE_VERSION} +BuildRequires: lufs >= 0.9.6-1captive 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. +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 -Requires: ntfsprogs +# 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 >= 1.8.0 +Requires: ntfsprogs >= 1.8.0 Requires: ntfsprogs-gnomevfs Requires: gnome-vfs-httpcaptive BuildRequires: gnome-vfs2-devel @@ -82,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 @@ -109,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 \ @@ -122,6 +125,7 @@ CFLAGS="-O2" --enable-sandbox-setuid=@PACKAGE@ \ --enable-sandbox-setgid=@PACKAGE@ \ --enable-sandbox-chroot=%{_var}/lib/@PACKAGE@ \ + --enable-man-pages \ --enable-sbin-mountdir=/sbin \ --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \ --disable-gtk-doc @@ -139,30 +143,38 @@ 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) %doc README NEWS AUTHORS TODO %{_libdir}/lib@PACKAGE@-@VERSION@.so +%attr(644,root,root) %{_mandir}/man?/@PACKAGE@.* %{_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(644,root,root) %{_mandir}/man?/@PACKAGE@-cmdline.* %attr(4755,root,root) %{_sbindir}/@PACKAGE@-sandbox-server +%attr(644,root,root) %{_mandir}/man?/@PACKAGE@-sandbox-server.* %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 %defattr(-,root,root) %{_libdir}/liblufs-@PACKAGE@fs-@VERSION@.so %{_libdir}/liblufs-@PACKAGE@fs.so +%attr(644,root,root) %{_mandir}/man?/lufs-@PACKAGE@fs.* /sbin/mount.@PACKAGE@ /sbin/mount.@PACKAGE@-* +%attr(644,root,root) %{_mandir}/man?/mount.@PACKAGE@.* %post install %{_sbindir}/captive-install-fstab --add -%{_sbindir}/captive-install-acquire --scan-disks-quick +%{_sbindir}/captive-install-acquire --text --scan-disks-quick %preun install %{_sbindir}/captive-install-fstab --remove @@ -171,7 +183,9 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %config %{_sysconfdir}/w32-mod-id.captivemodid.xml %{_sbindir}/captive-install-fstab +%attr(644,root,root) %{_mandir}/man?/captive-install-fstab.* %{_sbindir}/captive-install-acquire +%attr(644,root,root) %{_mandir}/man?/captive-install-acquire.* # %files devel # %defattr(-,root,root)