2 # rpm package description file for building
3 # Copyright (C) 2002-2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # Temporary cludge before full 'devel' package gets deployed
20 %define _unpackaged_files_terminate_build 0
22 Summary: Microsoft Windows platform filesystem access.
27 Group: System Environment/Base
28 Packager: Jan Kratochvil <project-captive@jankratochvil.net>
29 Source: http://www.jankratochvil.net/project/captive/@PACKAGE@-@VERSION@.tar.gz
31 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
32 BuildRequires: ORBit2-devel
34 BuildRequires: openssl-devel
36 BuildRequires: gnome-vfs2-devel
38 BuildRequires: libxml2-devel
42 BuildRequires: glib2-devel
44 BuildRequires: readline-devel
46 BuildRequires: gcc >= 3.0
49 Existing binary Microsoft Windows file system drivers were exploited
50 for accessing drives with possibly proprietary file system data structures.
51 Open file system API is provided to access these file system drivers.
52 Microsoft Windows system components required by these drivers
53 were analyzed and successfuly emulated in the GNU/Linux operating system.
55 The implementation allows applications running under the GNU/Linux operating
56 system to access NTFS drives. File system driver compatibility with VFAT,
57 ISO9660 and EXT2 is also provided.
60 Summary: LUFS module for Microsoft Windows platform filesystem access.
61 Group: System Environment/Base
62 Requires: captive = %{PACKAGE_VERSION}
63 BuildRequires: lufs >= 0.9.6-1captive
64 Requires: lufs >= 0.9.6-1captive
67 LUFS is a hybrid userspace filesystem framework.
69 Package provides LUFS filesystem module to access Microsoft Windows platform
70 filesystems such as NTFS. Use filesystem type 'captive-ntfs' for NTFS disks.
73 Summary: Instant installer for Microsoft Windows platform filesystem access.
74 Group: System Environment/Base
75 Requires: captive-lufs = %{PACKAGE_VERSION}
76 BuildRequires: ntfsprogs-devel
77 # 'PreReq' needed for Mandrake-9.1 otherwise '%preun install' fails
78 # during 'rpm -e ntfsprogs captive-install':
81 Requires: ntfsprogs-gnomevfs
82 Requires: gnome-vfs-httpcaptive
83 BuildRequires: gnome-vfs2-devel
85 BuildRequires: libgnomeui-devel
87 BuildRequires: readline-devel
89 BuildRequires: libxml2-devel >= 2.4.29
90 Requires: libxml2 >= 2.4.29
93 Package provides easy enough unattended installation of Microsoft Windows
94 platform filesystem access. Installer finds available NTFS partitions and
95 tries to acquire needed Microsoft Windows filesystem driver files.
97 You may need to run 'captive-install-acquire' to answer several questions.
98 NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME
101 #% Summary: Microsoft Windows platform filesystem access development support.
102 #% Group: Development/System
103 #% Requires: surprise = %{PACKAGE_VERSION}
105 #% %description devel
106 #% Development package containing libraries for static linking together with
107 #% header files needed for any linking.
109 #% Microsoft Windows platform filesystem access.
116 # Never disable debug for captive, see FAQ
117 # "How to check valid input arguments? Invalid processing state assumptions?"
119 --enable-shared --disable-static \
121 --disable-bug-replay \
123 --enable-install-pkg \
124 --enable-sandbox-setuid=@PACKAGE@ \
125 --enable-sandbox-setgid=@PACKAGE@ \
126 --enable-sandbox-chroot=%{_var}/lib/@PACKAGE@ \
128 --enable-sbin-mountdir=/sbin \
129 --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
134 make DESTDIR=$RPM_BUILD_ROOT install-strip
137 rm -rf $RPM_BUILD_ROOT
141 /usr/sbin/useradd -c "Captive Sandbox" -s /sbin/nologin -r -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || true
145 # Remove stale sandbox chroot directories owned by 'captive.captive':
146 rm -rf %{_var}/lib/@PACKAGE@/sandbox-server-*
149 %defattr(-,root,root)
150 %doc README NEWS AUTHORS TODO
151 %{_libdir}/lib@PACKAGE@-@VERSION@.so
152 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@.*
153 %{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs-@VERSION@.so
154 %{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs.so
155 %{_bindir}/@PACKAGE@-cmdline
156 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-cmdline.*
157 %attr(4755,root,root) %{_sbindir}/@PACKAGE@-sandbox-server
158 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-sandbox-server.*
159 %config %{_sysconfdir}/gnome-vfs-2.0/modules/@PACKAGE@.conf
160 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
161 %attr(755,root,root) %{_var}/lib/@PACKAGE@
162 %attr(644,root,root) %{_var}/lib/@PACKAGE@/*.sys
165 %defattr(-,root,root)
166 %{_libdir}/liblufs-@PACKAGE@fs-@VERSION@.so
167 %{_libdir}/liblufs-@PACKAGE@fs.so
168 %attr(644,root,root) %{_mandir}/man?/lufs-@PACKAGE@fs.*
169 /sbin/mount.@PACKAGE@
170 /sbin/mount.@PACKAGE@-*
171 %attr(644,root,root) %{_mandir}/man?/mount.@PACKAGE@.*
174 %{_sbindir}/captive-install-fstab --add
175 %{_sbindir}/captive-install-acquire --text --scan-disks-quick
178 %{_sbindir}/captive-install-fstab --remove
181 %defattr(-,root,root)
182 %config %{_sysconfdir}/w32-mod-id.captivemodid.xml
183 %{_sbindir}/captive-install-fstab
184 %attr(644,root,root) %{_mandir}/man?/captive-install-fstab.*
185 %{_sbindir}/captive-install-acquire
186 %attr(644,root,root) %{_mandir}/man?/captive-install-acquire.*
189 # %defattr(-,root,root)
191 # /usr/include/@PACKAGE@
192 # /usr/share/aclocal/*
193 # %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
196 # ###for --disable-shared/(--enable-static-link disable):