X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=blobdiff_plain;f=captive.spec.in;h=0fa48003f0dcca082cfb84ff91df64c986801cf5;hp=6b53248c18bcfdaa0ec4770841c77b7c5699a367;hb=5084971a04d678fa8e58ac5b2a2914a9fca6fd55;hpb=8568853afcf071283a35382bf20898542947bdc1 diff --git a/captive.spec.in b/captive.spec.in index 6b53248..0fa4800 100644 --- a/captive.spec.in +++ b/captive.spec.in @@ -17,7 +17,7 @@ # Build fully statically. -# /usr/local/devel-static is required to contain static libraries. +# /usr/local/staticbuild is required to contain static libraries. %define static 1 @@ -34,14 +34,15 @@ Name: @PACKAGE@ Version: @VERSION@ Release: %{release} Group: System Environment/Base -Packager: Jan Kratochvil +Packager: Jan Kratochvil Source: http://www.jankratochvil.net/project/captive/dist/@PACKAGE@-@VERSION@.tar.gz License: GPL BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root BuildRequires: ORBit2-devel -# Due to --with-orbit-line=link +# >= 2.7.0 due to --with-orbit-line=link +# >= 2.8.3 due to Mandrake-9.2 bugreport. %if ! %{static} -Requires: ORBit2 >= 2.7.0 +Requires: ORBit2 >= 2.8.3 %endif BuildRequires: openssl-devel %if ! %{static} @@ -68,7 +69,6 @@ BuildRequires: readline-devel Requires: readline %endif BuildRequires: gcc >= 3.0 -Obsoletes: gnome-vfs-httpcaptive %if %{static} BuildRequires: fuse-devel BuildRequires: ntfsprogs-devel >= 1.8.0 @@ -91,6 +91,8 @@ were analyzed and successfuly emulated in the GNU/Linux operating system. 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. + +http://www.jankratochvil.net/project/captive/ %if %{static} This packaging is a standalone static version, no other packages are needed. @@ -120,7 +122,7 @@ BuildRequires: ntfsprogs-devel >= 1.8.0 PreReq: ntfsprogs >= 1.8.0 Requires: ntfsprogs >= 1.8.0 Requires: ntfsprogs-gnomevfs -Requires: gnome-vfs-httpcaptive +Obsoletes: gnome-vfs-httpcaptive BuildRequires: gnome-vfs2-devel Requires: gnome-vfs2 BuildRequires: libgnomeui-devel @@ -164,6 +166,7 @@ NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME %endif # 'define' of rpm(1) does not accept line-continuation backslashes ('\'). %if %{static} +export CPPFLAGS="-I/usr/local/staticbuild/include/gnome-vfs-module-2.0" %configure \ --disable-shared --enable-static \ --enable-standalone \ @@ -174,6 +177,7 @@ NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME --disable-standalone \ --disable-standalone-fonts \ %endif + --disable-standalone-yum \ --with-readline \ --disable-bug-replay \ --disable-lufs \ @@ -189,6 +193,8 @@ NTFS disks will become mount(8)able at directories: /mnt/captive-VOLUME_NAME --disable-gtk-doc \ --with-orbit-line=link +# --enable-standalone-yum=%{_sysconfdir}/yum.repos.d + make %if %{static} ./build-static link @@ -238,21 +244,30 @@ touch %{_var}/lock/subsys/@PACKAGE@ %if ! %{static} %preun fuse %endif -/usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \ - /sbin/chkconfig --del @PACKAGE@ -%{_initrddir}/@PACKAGE@ stop -rm -f %{_var}/lock/subsys/@PACKAGE@ +# Only on real erase, not on upgrade: +if [ $1 = 0 ];then + /usr/lib/lsb/remove_initd @PACKAGE@ 2>/dev/null || \ + /sbin/chkconfig --del @PACKAGE@ + %{_initrddir}/@PACKAGE@ stop + rm -f %{_var}/lock/subsys/@PACKAGE@ +fi %if ! %{static} %preun install %endif -%{_sbindir}/captive-install-fstab --remove +# Only on real erase, not on upgrade: +if [ $1 = 0 ];then + %{_sbindir}/captive-install-fstab --remove +fi %postun /sbin/ldconfig -# Remove stale sandbox chroot directories owned by 'captive.captive': -rm -rf %{_var}/lib/@PACKAGE@/s-* -rm -rf %{_var}/lib/@PACKAGE@/tmp/* +# Only on real erase, not on upgrade: +if [ $1 = 0 ];then + # Remove stale sandbox chroot directories owned by 'captive.captive': + rm -rf %{_var}/lib/@PACKAGE@/s-* + rm -rf %{_var}/lib/@PACKAGE@/tmp/* +fi %files %defattr(-,root,root) @@ -267,7 +282,11 @@ rm -rf %{_var}/lib/@PACKAGE@/tmp/* %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-cmdline.* %attr(4755,root,root) %{_libexecdir}/@PACKAGE@-sandbox-server %attr(644,root,root) %{_mandir}/man?/@PACKAGE@-sandbox-server.* +%config %{_sysconfdir}/w32-mod-id.captivemodid.xml +%if ! %{static} %config %{_sysconfdir}/gnome-vfs-2.0/modules/@PACKAGE@.conf +%endif +# %config %{_sysconfdir}/yum.repos.d/* %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo %{_var}/lib/@PACKAGE@ @@ -287,7 +306,6 @@ rm -rf %{_var}/lib/@PACKAGE@/tmp/* %files install %endif %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