4 %bcond_without dist_kernel # without kernel from distribution
6 %define smpstr %{?with_smp:-smp}
7 %define smp %{?with_smp:1}%{!?with_smp:0}
8 Summary: FTP File System
9 Summary(pl): System plików FTP
15 Source0: http://dl.sourceforge.net/ftpfs/%{name}-%{version}-k2.4.tar.gz
16 # Source0-md5: 5e160de7f7237cdb27e5bc6f234e8c14
17 Patch0: %{name}-opt.patch
18 %{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4}
19 URL: http://ftpfs.sourceforge.net/
20 BuildRequires: rpmbuild(macros) >= 1.118
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 FTP File System is a Linux kernel module, enhancing the VFS with FTP
25 volume mounting capabilities. That is, you can "mount" FTP shared
26 directories in your very personal file system and take advantage of
30 System plików FTP jest modu³em j±dra rozszerzaj±cym VFS o mo¿liwo¶æ
31 montowania wolumenów FTP. Oznacza to, ¿e mo¿esz podmontowaæ katalogi
32 FTP do swojego systemu plików i korzystaæ z nich jak z plików
35 %package -n kernel%{smpstr}-net-ftpfs
36 Summary: FTP File System - kernel module
37 Summary(pl): System plików FTP - modu³ j±dra
38 Release: %{release}@%{_kernel_ver_str}
40 Requires(post,postun): /sbin/depmod
42 Provides: ftpfs = %{version}
44 %description -n kernel%{smpstr}-net-ftpfs
45 FTP File System is a Linux kernel module, enhancing the VFS with FTP
46 volume mounting capabilities. That is, you can "mount" FTP shared
47 directories in your very personal file system and take advantage of
48 local files ops. This package contains ftpfs kernel module.
50 %description -n kernel%{smpstr}-net-ftpfs -l pl
51 System plików FTP jest modu³em j±dra rozszerzaj±cym VFS o mo¿liwo¶æ
52 montowania wolumenów FTP. Oznacza to, ¿e mo¿esz podmontowaæ katalogi
53 FTP do swojego systemu plików i korzystaæ z nich jak z plików
54 lokalnych. Ten pakiet zawiera modu³ j±dra do ftpfs.
57 Summary: FTP File System mounting utility
58 Summary(pl): Narzêdzie do montowania systemów plików FTP
59 Group: Applications/System
60 Requires: ftpfs = %{version}
62 %description -n ftpmount
63 FTP File System mounting utility.
65 %description -n ftpmount -l pl
66 Narzêdzie do montowania systemów plików FTP.
69 %setup -q -n ftpfs-%{version}-k2.4
73 %{__make} OPT="%{rpmcflags}"
76 rm -rf $RPM_BUILD_ROOT
78 install -D ftpfs/ftpfs.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/ftpfs.o
79 install -D ftpmount/ftpmount $RPM_BUILD_ROOT%{_sbindir}/ftpmount
82 rm -rf $RPM_BUILD_ROOT
84 %post -n kernel%{smpstr}-net-ftpfs
85 %depmod %{_kernel_ver}
87 %postun -n kernel%{smpstr}-net-ftpfs
88 %depmod %{_kernel_ver}
90 %files -n kernel%{smpstr}-net-ftpfs
91 %defattr(644,root,root,755)
92 %doc docs CHANGELOG TODO
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_sbindir}/ftpmount