2 # rpm package description file for building
3 # Copyright (C) 2002-2005 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 # Build fully statically.
20 # /usr/local/devel-static is required to contain static libraries.
24 # Temporary cludge before full 'devel' package gets deployed
25 %define _unpackaged_files_terminate_build 0
27 Summary: Microsoft Windows platform filesystem access.
29 Name: @PACKAGE@-static
36 Group: System Environment/Base
37 Packager: Jan Kratochvil <project-captive@jankratochvil.net>
38 Source: http://www.jankratochvil.net/project/captive/dist/@PACKAGE@-@VERSION@.tar.gz
40 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
41 BuildRequires: ORBit2-devel
42 # Due to --with-orbit-line=link
44 Requires: ORBit2 >= 2.7.0
46 BuildRequires: openssl-devel
50 BuildRequires: gnome-vfs2-devel
54 BuildRequires: libxml2-devel
62 BuildRequires: glib2-devel
66 BuildRequires: readline-devel
70 BuildRequires: gcc >= 3.0
71 Obsoletes: gnome-vfs-httpcaptive
73 BuildRequires: fuse-devel
74 BuildRequires: ntfsprogs-devel >= 1.8.0
75 BuildRequires: libgnomeui-devel
77 Obsoletes: @PACKAGE@-lufs
78 Obsoletes: @PACKAGE@-install
79 # FIXME: ?: ntfsprogs-gnomevfs < 1.1
81 Conflicts: @PACKAGE@-static
85 Existing binary Microsoft Windows file system drivers were exploited
86 for accessing drives with possibly proprietary file system data structures.
87 Open file system API is provided to access these file system drivers.
88 Microsoft Windows system components required by these drivers
89 were analyzed and successfuly emulated in the GNU/Linux operating system.
91 The implementation allows applications running under the GNU/Linux operating
92 system to access NTFS drives. File system driver compatibility with VFAT,
93 ISO9660 and EXT2 is also provided.
95 This packaging is a standalone static version, no other packages are needed.
100 Summary: FUSE module for Microsoft Windows platform filesystem access.
101 Group: System Environment/Base
102 Requires: captive = %{PACKAGE_VERSION}
103 BuildRequires: fuse-devel
104 Requires: fuse fuse-libs
107 FUSE is a userspace filesystem framework.
109 Package provides FUSE filesystem module to access Microsoft Windows platform
110 filesystems such as NTFS. Use filesystem type 'captive-ntfs' for NTFS disks.
113 Summary: Instant installer for Microsoft Windows platform filesystem access.
114 Group: System Environment/Base
115 Requires: captive-fuse = %{PACKAGE_VERSION}
116 # Versions before 1.8.0 were too buggy
117 BuildRequires: ntfsprogs-devel >= 1.8.0
118 # 'PreReq' needed for Mandrake-9.1 otherwise '%preun install' fails
119 # during 'rpm -e ntfsprogs captive-install':
120 PreReq: ntfsprogs >= 1.8.0
121 Requires: ntfsprogs >= 1.8.0
122 Requires: ntfsprogs-gnomevfs
123 Requires: gnome-vfs-httpcaptive
124 BuildRequires: gnome-vfs2-devel
126 BuildRequires: libgnomeui-devel
128 BuildRequires: readline-devel
130 BuildRequires: libxml2-devel >= 2.4.29
131 Requires: libxml2 >= 2.4.29
134 Package provides easy enough unattended installation of Microsoft Windows
135 platform filesystem access. Installer finds available NTFS partitions and
136 tries to acquire needed Microsoft Windows filesystem driver files.
138 You may need to run 'captive-install-acquire' to answer several questions.
139 NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME
144 #% Summary: Microsoft Windows platform filesystem access development support.
145 #% Group: Development/System
146 #% Requires: surprise = %{PACKAGE_VERSION}
148 #% %description devel
149 #% Development package containing libraries for static linking together with
150 #% header files needed for any linking.
152 #% Microsoft Windows platform filesystem access.
156 %setup -n @PACKAGE@-%{version}
159 # Never disable debug for captive, see FAQ
160 # "How to check valid input arguments? Invalid processing state assumptions?"
165 # 'define' of rpm(1) does not accept line-continuation backslashes ('\').
168 --disable-shared --enable-static \
169 --enable-standalone \
170 --enable-standalone-fonts=%{_datadir}/@PACKAGE@/fonts \
173 --enable-shared --disable-static \
174 --disable-standalone \
175 --disable-standalone-fonts \
178 --disable-bug-replay \
181 --enable-install-pkg \
182 --enable-sandbox-setuid=@PACKAGE@ \
183 --enable-sandbox-setgid=@PACKAGE@ \
184 --enable-sandbox-chroot=%{_var}/lib/@PACKAGE@ \
186 --enable-sbin-mountdir=/sbin \
187 --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
188 --with-initddir=%{_initrddir} \
190 --with-orbit-line=link
198 make DESTDIR=$RPM_BUILD_ROOT install-strip
201 rm -rf $RPM_BUILD_ROOT
205 /usr/sbin/groupadd -r captive 2>/dev/null || \
206 /usr/sbin/groupadd captive 2>/dev/null || \
208 /usr/sbin/useradd -r -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \
209 /usr/sbin/useradd -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \
215 /usr/lib/lsb/install_initd @PACKAGE@ 2>/dev/null || \
216 /sbin/chkconfig --add @PACKAGE@
217 touch %{_var}/lock/subsys/@PACKAGE@
222 %{_sbindir}/captive-install-fstab --add
223 %{_sbindir}/captive-install-acquire --text --scan-disks-quick
230 /usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \
231 /sbin/chkconfig --del @PACKAGE@
232 %{_initrddir}/@PACKAGE@ stop
233 rm -f %{_var}/lock/subsys/@PACKAGE@
238 %{_sbindir}/captive-install-fstab --remove
242 # Remove stale sandbox chroot directories owned by 'captive.captive':
243 rm -rf %{_var}/lib/@PACKAGE@/s-*
244 rm -rf %{_var}/lib/@PACKAGE@/tmp/*
247 %defattr(-,root,root)
248 %doc README NEWS AUTHORS THANKS TODO
250 %{_libdir}/lib@PACKAGE@-@VERSION@.so
251 %{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs-@VERSION@.so
252 %{_libdir}/gnome-vfs-2.0/modules/lib@PACKAGE@-gnomevfs.so
254 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@.*
255 %{_bindir}/@PACKAGE@-cmdline
256 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-cmdline.*
257 %attr(4755,root,root) %{_libexecdir}/@PACKAGE@-sandbox-server
258 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-sandbox-server.*
259 %config %{_sysconfdir}/gnome-vfs-2.0/modules/@PACKAGE@.conf
260 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
261 %{_var}/lib/@PACKAGE@
266 %defattr(-,root,root)
267 %{_initrddir}/@PACKAGE@
268 /sbin/mount.@PACKAGE@
269 /sbin/mount.@PACKAGE@-*
270 %attr(644,root,root) %{_mandir}/man?/mount.@PACKAGE@.*
275 %defattr(-,root,root)
276 %config %{_sysconfdir}/w32-mod-id.captivemodid.xml
277 %{_sbindir}/captive-install-fstab
278 %attr(644,root,root) %{_mandir}/man?/captive-install-fstab.*
279 %{_sbindir}/captive-install-acquire
280 %attr(644,root,root) %{_mandir}/man?/captive-install-acquire.*
282 %{_datadir}/@PACKAGE@
286 # %defattr(-,root,root)
288 # /usr/include/@PACKAGE@
289 # /usr/share/aclocal/*
290 # %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
293 # ###for --disable-shared/(--enable-static-link disable):