]> git.pld-linux.org Git - packages/ftpfs.git/blob - ftpfs.spec
- tabs in preamble
[packages/ftpfs.git] / ftpfs.spec
1 # TODO: UP/SMP modules
2 #
3 # Conditional build:
4 %bcond_without  dist_kernel     # without kernel from distribution
5 #
6 %define         smpstr          %{?with_smp:-smp}
7 %define         smp             %{?with_smp:1}%{!?with_smp:0}
8 Summary:        FTP File System
9 Summary(pl.UTF-8):      System plików FTP
10 Name:           ftpfs
11 Version:        0.6.2
12 Release:        1
13 License:        GPL
14 Group:          Base/Kernel
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)
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
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
33 lokalnych.
34
35 %package -n kernel%{smpstr}-net-ftpfs
36 Summary:        FTP File System - kernel module
37 Summary(pl.UTF-8):      System plików FTP - moduł jądra
38 Release:        %{release}@%{_kernel_ver_str}
39 Group:          Base/Kernel
40 Requires(post,postun):  /sbin/depmod
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
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.
55
56 %package -n ftpmount
57 Summary:        FTP File System mounting utility
58 Summary(pl.UTF-8):      Narzędzie do montowania systemów plików FTP
59 Group:          Applications/System
60 Requires:       ftpfs = %{version}
61
62 %description -n ftpmount
63 FTP File System mounting utility.
64
65 %description -n ftpmount -l pl.UTF-8
66 Narzędzie do montowania systemów plików FTP.
67
68 %prep
69 %setup -q -n ftpfs-%{version}-k2.4
70 %patch0 -p1
71
72 %build
73 %{__make} OPT="%{rpmcflags}"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
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
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -n kernel%{smpstr}-net-ftpfs
85 %depmod %{_kernel_ver}
86
87 %postun -n kernel%{smpstr}-net-ftpfs
88 %depmod %{_kernel_ver}
89
90 %files -n kernel%{smpstr}-net-ftpfs
91 %defattr(644,root,root,755)
92 %doc docs CHANGELOG TODO
93 /lib/modules/*/*/*
94
95 %files -n ftpmount
96 %defattr(644,root,root,755)
97 %doc ftpmount/README
98 %attr(755,root,root) %{_sbindir}/ftpmount
This page took 0.06758 seconds and 3 git commands to generate.