Fixed -I for prevention of -I/usr/include during Linux kernel mod compilation.
[lufs.git] / lufs.spec.in
index e9bb9e2..9b5a0d2 100644 (file)
@@ -1,13 +1,13 @@
 Summary:       lufs - Linux Userland File System
 Name:          @PACKAGE@
-Version:       @VERSION@
-Release:       1captive
+Version:       @VERSION_BASE@
+Release:       1@VERSION_EXT@
 License:       GPL
 Group:         Base
-Source0:       @PACKAGE@-@VERSION@.tar.gz
-Patch1:                @PACKAGE@-@VERSION@-captive.patch
+Source0:       @PACKAGE@-@VERSION_BASE@.tar.gz
+Patch1:                @PACKAGE@-@VERSION_BASE@-@VERSION_EXT@.patch
 BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: automake >= 1.6
 BuildRequires: libtool
 BuildRequires: perl
 Requires:      perl
@@ -19,20 +19,12 @@ sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc.  Lots of other
 "exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
 and others.
 
-%package devel
-Summary:       lufs - Linux Userland File System files for filesystems development
-Group:         Development/Base
-Requires:      lufs = %{PACKAGE_VERSION}
-
-%description devel
-Support for development of 3rd party filesystem modules for LUFS - a hybrid
-userspace filesystem framework supporting many filesystems: sshfs, ftpfs,
-localfs, locasefs, gvfs, cardfs, cefs, etc.
-
 %prep
 %setup -q
 
 %patch1 -p1
+# Permissions are not restored by patch(1):
+chmod +x kernel/Linux/prepmod.in
 
 %build
 %{__aclocal}
@@ -74,7 +66,7 @@ depmod -aq
 
 %preun
 rmmod 2>/dev/null lufs
-rm -f %{_localstatedir}/lib/lufs/lufs.o
+rm -f %{_localstatedir}/lib/lufs/*.o
 
 %postun
 depmod -aq
@@ -82,11 +74,15 @@ rm -f /etc/auto.sshfs
 rm -f /etc/auto.ftpfs
 rm -f /sbin/mount.lufs
 
+# We need 'devel' files for kernel module compilation of the standard package.
 %files
 %defattr(-,root,root)
+%doc NEWS NEWS.captive README TODO AUTHORS Contributors THANKS
 %{_datadir}/lufs
+%{_includedir}/lufs
 %defattr(644,root,root)
 /etc/lufsd.conf
+%{_libdir}/lib*.la
 %defattr(755,root,root)
 %{_bindir}/lufsd
 %{_bindir}/lussh
@@ -102,12 +98,6 @@ rm -f /sbin/mount.lufs
 %{_bindir}/lufsmnt-bin
 %{_bindir}/lufsumount
 
-%files devel
-%defattr(-,root,root)
-%{_includedir}/lufs
-%defattr(644,root,root)
-%{_libdir}/lib*.la
-
 %changelog
 * Wed Aug 20 2003 Jan Kratochvil <project-captive@jankratochvil.net>
 - rewritten for AutoGen as a support subsystem of Captive project