Patch 'configure' to keep executability of config.status-substed files.
authorshort <>
Wed, 20 Aug 2003 17:28:22 +0000 (17:28 +0000)
committershort <>
Wed, 20 Aug 2003 17:28:22 +0000 (17:28 +0000)
Fixed packaged files attributes.

lufs.spec.in

index 538fec8..e9bb9e2 100644 (file)
@@ -40,6 +40,22 @@ localfs, locasefs, gvfs, cardfs, cefs, etc.
 %{__autoheader}
 %{__automake} --add-missing
 %{__autoconf}
+patch configure <<CONFIGURE_SUBST_X_EOF
+--- configure-orig     Wed Aug 20 12:10:37 2003
++++ configure  Wed Aug 20 13:22:51 2003
+@@ -21590,6 +21590,11 @@
+   rm -f \$tmp/stdin
+   if test x"\$ac_file" != x-; then
+     mv \$tmp/out \$ac_file
++    for f in \$ac_file_inputs; do
++      if test -x \$f; then
++        chmod +x \$ac_file
++      fi
++    done
+   else
+     cat \$tmp/out
+     rm -f \$tmp/out
+CONFIGURE_SUBST_X_EOF
 %configure
 %{__make}
 
@@ -58,6 +74,7 @@ depmod -aq
 
 %preun
 rmmod 2>/dev/null lufs
+rm -f %{_localstatedir}/lib/lufs/lufs.o
 
 %postun
 depmod -aq
@@ -66,9 +83,10 @@ rm -f /etc/auto.ftpfs
 rm -f /sbin/mount.lufs
 
 %files
+%defattr(-,root,root)
+%{_datadir}/lufs
 %defattr(644,root,root)
 /etc/lufsd.conf
-%{_datadir}/lufs
 %defattr(755,root,root)
 %{_bindir}/lufsd
 %{_bindir}/lussh
@@ -78,14 +96,16 @@ rm -f /sbin/mount.lufs
 %{_bindir}/auto.ftpfs
 %{_libdir}/lib*.so*
 %{_mandir}/man*/lufs*
+%{_localstatedir}/lib/lufs
 # These are SUID root...
 %defattr(4755,root,root)
 %{_bindir}/lufsmnt-bin
 %{_bindir}/lufsumount
 
 %files devel
-%defattr(644,root,root)
+%defattr(-,root,root)
 %{_includedir}/lufs
+%defattr(644,root,root)
 %{_libdir}/lib*.la
 
 %changelog