X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=captive.spec.in;h=fb40bebc5be0f40de588c5833e6923a23950ac90;hb=75b78d8bda10b9f46d7ecd034831541f43831546;hp=d317444894a32c495fc7ba0e4efdb4b6bcd77dcb;hpb=3da45d35f1a16ad5d41cf27c0755a0c3d200f842;p=captive.git diff --git a/captive.spec.in b/captive.spec.in index d317444..fb40beb 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,7 +34,7 @@ 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 @@ -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. @@ -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 \ @@ -209,19 +212,22 @@ rm -rf $RPM_BUILD_ROOT %pre fuse %endif %if %{static} -/usr/sbin/groupadd -r fuse 2>/dev/null || \ - /usr/sbin/groupadd fuse 2>/dev/null || \ - true +/usr/sbin/groupadd -r fuse 2>/dev/null || \ + /usr/sbin/groupadd fuse 2>/dev/null || \ + /usr/sbin/adduser --quiet --system --no-create-home fuse 2>/dev/null || \ + echo >&2 "WARNING: Failed to create system group: fuse" %endif %post /sbin/ldconfig -/usr/sbin/groupadd -r captive 2>/dev/null || \ - /usr/sbin/groupadd captive 2>/dev/null || \ - true +/usr/sbin/groupadd -r captive 2>/dev/null || \ + /usr/sbin/groupadd captive 2>/dev/null || \ + /usr/sbin/addgroup --system --quiet captive 2>/dev/null || \ + echo >&2 "WARNING: Failed to create system group: captive" /usr/sbin/useradd -r -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \ /usr/sbin/useradd -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \ - true + /usr/sbin/adduser --quiet --system --no-create-home --home %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \ + echo >&2 "WARNING: Failed to create system user: captive" %if ! %{static} %post fuse