]> git.pld-linux.org Git - packages/ftpfs.git/blob - ftpfs.spec
- added using depmod macro
[packages/ftpfs.git] / ftpfs.spec
1 #
2 # Conditional build:
3 # _without_dist_kernel  - without kernel from distribution
4 #
5 # TODO: UP/SMP modules
6 %define         smpstr          %{?_with_smp:-smp}
7 %define         smp             %{?_with_smp:1}%{!?_with_smp:0}
8
9 Summary:        FTP File System
10 Summary(pl):    System plików FTP
11 Name:           ftpfs
12 Version:        0.6.2
13 Release:        1
14 License:        GPL
15 Group:          Base/Kernel
16 Source0:        http://dl.sourceforge.net/ftpfs/%{name}-%{version}-k2.4.tar.gz
17 # Source0-md5:  5e160de7f7237cdb27e5bc6f234e8c14
18 Patch0:         %{name}-opt.patch
19 %{!?_without_dist_kernel:BuildRequires: kernel-headers >= 2.4}
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
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):    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
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):    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
66 Narzêdzie do montowania systemów plików FTP.
67
68 %prep
69 %setup -q -n ftpfs-%{version}-k2.4
70 %patch -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.070277 seconds and 3 git commands to generate.