%bcond_without kernel # don't build kernel modules
%bcond_with verbose # verbose build (V=1)
%bcond_without userspace # don't build userspace tools
-%bcond_with grsec_kernel # build for kernel-grsecurity
-#
-%if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel}
-%define alt_kernel grsecurity
-%endif
-#
+
%ifarch sparc
%undefine with_smp
%endif
-#
-%define _rel 20
+
+%if %{without kernel}
+%undefine with_dist_kernel
+%endif
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine with_userspace
+%endif
+
+%define rel 20
Summary: (Secure) SHell FileSystem utilities
Summary(pl.UTF-8): Narzędzia obsługujące system plików przez ssh
Name: shfs
Version: 0.35
-Release: %{_rel}
+Release: %{rel}
License: GPL v2
Group: Applications/System
Source0: http://dl.sourceforge.net/shfs/%{name}-%{version}.tar.gz
Patch6: %{name}-d_entry.patch
Patch7: %{name}-shfs_get_sb.patch
Patch8: %{name}-2.6.19.patch
+Patch9: %{name}-kmem_cache.patch
URL: http://shfs.sourceforge.net/
%if %{with kernel}
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
%package -n kernel%{_alt_kernel}-fs-shfs
Summary: SHell File System Linux kernel module
Summary(pl.UTF-8): Moduł jądra Linuksa obsługujący powłokowy system plików
-Release: %{_rel}@%{_kernel_ver_str}
+Release: %{rel}@%{_kernel_ver_str}
Group: Base/Kernel
Requires(post,postun): /sbin/depmod
%if %{with dist_kernel}
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
cat > shfs/Linux-2.6/Makefile <<'EOF'
obj-m := shfs.o