]>
Commit | Line | Data |
---|---|---|
deda6d67 | 1 | # TODO: UP/SMP modules |
802e3ed3 JB |
2 | # |
3 | # Conditional build: | |
517ad89b | 4 | %bcond_without dist_kernel # without kernel from distribution |
802e3ed3 | 5 | # |
deda6d67 | 6 | %define smpstr %{?with_smp:-smp} |
7 | %define smp %{?with_smp:1}%{!?with_smp:0} | |
d8ae1018 | 8 | Summary: FTP File System |
cd3bd137 | 9 | Summary(pl.UTF-8): System plików FTP |
cfb63009 | 10 | Name: ftpfs |
14daeee8 | 11 | Version: 0.6.2 |
12 | Release: 1 | |
9fcb84cf | 13 | License: GPL |
14 | Group: Base/Kernel | |
802e3ed3 | 15 | Source0: http://dl.sourceforge.net/ftpfs/%{name}-%{version}-k2.4.tar.gz |
54ae714a | 16 | # Source0-md5: 5e160de7f7237cdb27e5bc6f234e8c14 |
cfb63009 | 17 | Patch0: %{name}-opt.patch |
deda6d67 | 18 | %{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4} |
75089598 | 19 | URL: http://ftpfs.sourceforge.net/ |
2038eb3f | 20 | BuildRequires: rpmbuild(macros) >= 1.118 |
9fcb84cf | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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 | |
27 | local files ops. | |
28 | ||
6d99c08e JR |
29 | %description -l pl.UTF-8 |
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 | |
524777ef | 33 | lokalnych. |
9fcb84cf | 34 | |
cfb63009 JB |
35 | %package -n kernel%{smpstr}-net-ftpfs |
36 | Summary: FTP File System - kernel module | |
cd3bd137 | 37 | Summary(pl.UTF-8): System plików FTP - moduł jądra |
cfb63009 JB |
38 | Release: %{release}@%{_kernel_ver_str} |
39 | Group: Base/Kernel | |
802e3ed3 | 40 | Requires(post,postun): /sbin/depmod |
cfb63009 JB |
41 | Obsoletes: ftpfs |
42 | Provides: ftpfs = %{version} | |
43 | ||
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. | |
49 | ||
6d99c08e JR |
50 | %description -n kernel%{smpstr}-net-ftpfs -l pl.UTF-8 |
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. | |
cfb63009 | 55 | |
524777ef JB |
56 | %package -n ftpmount |
57 | Summary: FTP File System mounting utility | |
cd3bd137 | 58 | Summary(pl.UTF-8): Narzędzie do montowania systemów plików FTP |
524777ef | 59 | Group: Applications/System |
cfb63009 | 60 | Requires: ftpfs = %{version} |
9fcb84cf | 61 | |
524777ef JB |
62 | %description -n ftpmount |
63 | FTP File System mounting utility. | |
64 | ||
6d99c08e JR |
65 | %description -n ftpmount -l pl.UTF-8 |
66 | Narzędzie do montowania systemów plików FTP. | |
524777ef JB |
67 | |
68 | %prep | |
eb78182e | 69 | %setup -q -n ftpfs-%{version}-k2.4 |
ef28e007 | 70 | %patch0 -p1 |
9fcb84cf | 71 | |
72 | %build | |
524777ef | 73 | %{__make} OPT="%{rpmcflags}" |
9fcb84cf | 74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
524777ef JB |
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 | |
9fcb84cf | 80 | |
524777ef JB |
81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
9fcb84cf | 83 | |
802e3ed3 | 84 | %post -n kernel%{smpstr}-net-ftpfs |
2038eb3f | 85 | %depmod %{_kernel_ver} |
cfb63009 JB |
86 | |
87 | %postun -n kernel%{smpstr}-net-ftpfs | |
2038eb3f | 88 | %depmod %{_kernel_ver} |
d8ae1018 | 89 | |
cfb63009 | 90 | %files -n kernel%{smpstr}-net-ftpfs |
9fcb84cf | 91 | %defattr(644,root,root,755) |
f3d54531 | 92 | %doc docs CHANGELOG TODO |
9fcb84cf | 93 | /lib/modules/*/*/* |
524777ef JB |
94 | |
95 | %files -n ftpmount | |
96 | %defattr(644,root,root,755) | |
f3d54531 | 97 | %doc ftpmount/README |
524777ef | 98 | %attr(755,root,root) %{_sbindir}/ftpmount |