]>
Commit | Line | Data |
---|---|---|
ad8e7008 JB |
1 | # |
2 | # Conditional build: | |
8d9dfd7c | 3 | %bcond_without dist_kernel # without kernel from distribution |
ad8e7008 | 4 | # |
fdb6f95c AM |
5 | %define _rel 1 |
6 | ||
7 | Summary: Web-based Distributed Authoring and Versioning | |
96d989b0 | 8 | Summary(pl.UTF-8): Bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie |
fdb6f95c AM |
9 | Name: davfs |
10 | Version: 0.2.4 | |
11 | Release: %{_rel} | |
12 | License: GPL | |
13 | Group: Base/Kernel | |
6f8ab9db | 14 | Source0: http://dl.sourceforge.net/dav/%{name}-%{version}.tar.gz |
a96a461d | 15 | # Source0-md5: 705a99583a118ef3325551d700e49caa |
fdb6f95c | 16 | Patch0: %{name}-path.patch |
99a6be24 | 17 | Patch1: %{name}-is_socket_ready.patch |
fdb6f95c | 18 | URL: http://dav.sourceforge.net/ |
8d9dfd7c | 19 | %{?with_dist_kernel:BuildRequires: kernel-headers} |
fdb6f95c AM |
20 | BuildRequires: autoconf |
21 | BuildRequires: %{kgcc_package} | |
192c7de0 | 22 | BuildRequires: openssl-devel >= 0.9.7d |
75622ae4 | 23 | BuildRequires: rpmbuild(macros) >= 1.118 |
fdb6f95c AM |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
fdb6f95c AM |
26 | %description |
27 | WebDAV is an acronym for Web-based Distributed Authoring and Version- | |
ef247584 | 28 | ing. Usually HTTP is a read only protocol, but if you install DAV on |
fdb6f95c AM |
29 | your web server, it becomes writable. Furthermore, if you use DAVfs, |
30 | you can mount your web server onto your filesystem and can use it as a | |
31 | normal disk. | |
32 | ||
96d989b0 JR |
33 | %description -l pl.UTF-8 |
34 | WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie. | |
35 | Zazwyczaj protokół HTTP jest protokołem tylko do odczytu ale po | |
36 | zainstalowaniu DAVa staje się on również zapisywalnym. Co więcej jeśli | |
37 | używasz DAVfs to możesz montować swój serwer WWW jako system plików i | |
38 | używać tak jak normalnego dysku. | |
fdb6f95c AM |
39 | |
40 | %package -n kernel-fs-davfs | |
41 | Summary: DAVfs - Drivers | |
96d989b0 | 42 | Summary(pl.UTF-8): DAVfs - Sterowniki |
fdb6f95c AM |
43 | Release: %{_rel}@%{_kernel_ver_str} |
44 | Group: Base/Kernel | |
8d9dfd7c | 45 | %{?with_dist_kernel:%requires_releq_kernel_up} |
6f8ab9db | 46 | Requires(post,postun): /sbin/depmod |
fdb6f95c | 47 | |
fdb6f95c AM |
48 | %description -n kernel-fs-davfs |
49 | WebDAV is an acronym for Web-based Distributed Authoring and Version- | |
ef247584 | 50 | ing. Usually HTTP is a read only protocol, but if you install DAV on |
fdb6f95c AM |
51 | your web server, it becomes writable. Furthermore, if you use DAVfs, |
52 | you can mount your web server onto your filesystem and can use it as a | |
53 | normal disk. | |
54 | ||
96d989b0 JR |
55 | %description -n kernel-fs-davfs -l pl.UTF-8 |
56 | WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie. | |
57 | Zazwyczaj protokół HTTP jest protokołem tylko do odczytu ale po | |
58 | zainstalowaniu DAVa staje się on również zapisywalnym. Co więcej jeśli | |
59 | używasz DAVfs to możesz montować swój serwer WWW jako system plików i | |
60 | używać tak jak normalnego dysku. | |
fdb6f95c AM |
61 | |
62 | %package -n kernel-smp-fs-davfs | |
63 | Summary: DAVfs - SMP Drivers | |
96d989b0 | 64 | Summary(pl.UTF-8): DAVfs - Sterowniki SMP |
fdb6f95c AM |
65 | Release: %{_rel}@%{_kernel_ver_str} |
66 | Group: Base/Kernel | |
8d9dfd7c | 67 | %{?with_dist_kernel:%requires_releq_kernel_smp} |
6f8ab9db | 68 | Requires(post,postun): /sbin/depmod |
fdb6f95c AM |
69 | |
70 | %description -n kernel-smp-fs-davfs | |
71 | WebDAV is an acronym for Web-based Distributed Authoring and Version- | |
ef247584 | 72 | ing. Usually HTTP is a read only protocol, but if you install DAV on |
fdb6f95c AM |
73 | your web server, it becomes writable. Furthermore, if you use DAVfs, |
74 | you can mount your web server onto your filesystem and can use it as a | |
75 | normal disk. | |
76 | ||
96d989b0 JR |
77 | %description -n kernel-smp-fs-davfs -l pl.UTF-8 |
78 | WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie. | |
79 | Zazwyczaj protokół HTTP jest protokołem tylko do odczytu ale po | |
80 | zainstalowaniu DAVa staje się on również zapisywalnym. Co więcej jeśli | |
81 | używasz DAVfs to możesz montować swój serwer WWW jako system plików i | |
82 | używać tak jak normalnego dysku. | |
fdb6f95c AM |
83 | |
84 | %prep | |
85 | %setup -q | |
86 | %patch0 -p1 | |
99a6be24 | 87 | %patch1 -p1 |
fdb6f95c AM |
88 | |
89 | %build | |
90 | %configure2_13 \ | |
91 | --with-ssl \ | |
92 | --with-kernel=%{_kernelsrcdir} | |
93 | %{__make} | |
94 | ||
95 | %{__make} -C davfs clean all \ | |
96 | CC=%{kgcc} \ | |
97 | CFLAGS="-O2 -D__KERNEL__ -DMODULE -D__SMP__ -DCONFIG_X86_LOCAL_APIC \ | |
98 | -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \ | |
99 | -fno-strict-aliasing -pipe -fno-strength-reduce" | |
2c823072 | 100 | mv -f davfs/davfs.o davfs-smp.o |
fdb6f95c AM |
101 | |
102 | %{__make} -C davfs clean all \ | |
103 | CC=%{kgcc} \ | |
104 | CFLAGS="-O2 -D__KERNEL__ -DMODULE \ | |
105 | -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \ | |
106 | -fno-strict-aliasing -pipe -fno-strength-reduce" | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
41b4b48f | 110 | install -d $RPM_BUILD_ROOT{/sbin,/etc/rc.d/init.d} |
fdb6f95c AM |
111 | install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc |
112 | ||
113 | echo "all install:" > davfs/Makefile | |
114 | ||
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | install davfs/davfs.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/davfs.o | |
119 | install davfs-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/davfs.o | |
2c823072 | 120 | ln -sf %{_sbindir}/mount.davfs $RPM_BUILD_ROOT/sbin/mount.davfs |
fdb6f95c | 121 | |
2c823072 JB |
122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
916c9531 | 125 | %post -n kernel-fs-davfs |
75622ae4 | 126 | %depmod %{_kernel_ver} |
fdb6f95c AM |
127 | |
128 | %postun -n kernel-fs-davfs | |
75622ae4 | 129 | %depmod %{_kernel_ver} |
fdb6f95c | 130 | |
916c9531 | 131 | %post -n kernel-smp-fs-davfs |
75622ae4 | 132 | %depmod %{_kernel_ver}smp |
fdb6f95c AM |
133 | |
134 | %postun -n kernel-smp-fs-davfs | |
75622ae4 | 135 | %depmod %{_kernel_ver}smp |
fdb6f95c | 136 | |
fdb6f95c AM |
137 | %files |
138 | %defattr(644,root,root,755) | |
5b969d58 | 139 | %doc ChangeLog doc/*.html |
fdb6f95c AM |
140 | %attr(755,root,root) /sbin/* |
141 | %attr(755,root,root) %{_sbindir}/* | |
fdb6f95c AM |
142 | |
143 | %files -n kernel-fs-davfs | |
144 | %defattr(644,root,root,755) | |
d402be81 | 145 | /lib/modules/%{_kernel_ver}/misc/*.o* |
fdb6f95c AM |
146 | |
147 | %files -n kernel-smp-fs-davfs | |
148 | %defattr(644,root,root,755) | |
d402be81 | 149 | /lib/modules/%{_kernel_ver}smp/misc/*.o* |