3 # _without_dist_kernel without kernel from distribution
7 Summary: Web-based Distributed Authoring and Versioning
8 Summary(pl): Bazuj±ce na WWW Rozproszone Autoryzowanie i Wersjonowanie
14 Source0: http://dl.sourceforge.net/dav/%{name}-%{version}.tar.gz
15 # Source0-md5: 705a99583a118ef3325551d700e49caa
16 Patch0: %{name}-path.patch
17 Patch1: %{name}-is_socket_ready.patch
18 URL: http://dav.sourceforge.net/
19 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
20 BuildRequires: autoconf
21 BuildRequires: %{kgcc_package}
22 BuildRequires: openssl-devel >= 0.9.7
23 BuildRequires: rpmbuild(macros) >= 1.118
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc
29 WebDAV is an acronym for Web-based Distributed Authoring and Version-
30 ing. Usually http is a read only protocol, but if you install DAV on
31 your web server, it becomes writable. Furthermore, if you use DAVfs,
32 you can mount your web server onto your filesystem and can use it as a
36 WebDAV to bazuj±ce na WWW Rozproszone Autoryzowanie i Wersjonowanie.
37 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
38 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
39 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
40 u¿ywaæ tak jak normalnego dysku.
42 %package -n kernel-fs-davfs
43 Summary: DAVfs - Drivers
44 Summary(pl): DAVfs - Sterowniki
45 Release: %{_rel}@%{_kernel_ver_str}
47 %{!?_without_dist_kernel:%requires_releq_kernel_up}
48 Requires(post,postun): /sbin/depmod
50 %description -n kernel-fs-davfs
51 WebDAV is an acronym for Web-based Distributed Authoring and Version-
52 ing. Usually http is a read only protocol, but if you install DAV on
53 your web server, it becomes writable. Furthermore, if you use DAVfs,
54 you can mount your web server onto your filesystem and can use it as a
57 %description -n kernel-fs-davfs -l pl
58 WebDAV to bazuj±ce na WWW Rozproszone Autoryzowanie i Wersjonowanie.
59 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
60 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
61 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
62 u¿ywaæ tak jak normalnego dysku.
64 %package -n kernel-smp-fs-davfs
65 Summary: DAVfs - SMP Drivers
66 Summary(pl): DAVfs - Sterowniki SMP
67 Release: %{_rel}@%{_kernel_ver_str}
69 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
70 Requires(post,postun): /sbin/depmod
72 %description -n kernel-smp-fs-davfs
73 WebDAV is an acronym for Web-based Distributed Authoring and Version-
74 ing. Usually http is a read only protocol, but if you install DAV on
75 your web server, it becomes writable. Furthermore, if you use DAVfs,
76 you can mount your web server onto your filesystem and can use it as a
79 %description -n kernel-smp-fs-davfs -l pl
80 WebDAV to bazuj±ce na WWW Rozproszone Autoryzowanie i Wersjonowanie.
81 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
82 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
83 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
84 u¿ywaæ tak jak normalnego dysku.
94 --with-kernel=%{_kernelsrcdir}
97 %{__make} -C davfs clean all \
99 CFLAGS="-O2 -D__KERNEL__ -DMODULE -D__SMP__ -DCONFIG_X86_LOCAL_APIC \
100 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
101 -fno-strict-aliasing -pipe -fno-strength-reduce"
102 mv -f davfs/davfs.o davfs-smp.o
104 %{__make} -C davfs clean all \
106 CFLAGS="-O2 -D__KERNEL__ -DMODULE \
107 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
108 -fno-strict-aliasing -pipe -fno-strength-reduce"
111 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT{/sbin,/etc/rc.d/init.d}
113 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
115 echo "all install:" > davfs/Makefile
118 DESTDIR=$RPM_BUILD_ROOT
120 install davfs/davfs.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/davfs.o
121 install davfs-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/davfs.o
122 ln -sf %{_sbindir}/mount.davfs $RPM_BUILD_ROOT/sbin/mount.davfs
125 rm -rf $RPM_BUILD_ROOT
127 %post -n kernel-fs-davfs
128 %depmod %{_kernel_ver}
130 %postun -n kernel-fs-davfs
131 %depmod %{_kernel_ver}
133 %post -n kernel-smp-fs-davfs
134 %depmod %{_kernel_ver}smp
136 %postun -n kernel-smp-fs-davfs
137 %depmod %{_kernel_ver}smp
140 %defattr(644,root,root,755)
141 %doc ChangeLog doc/*.html
142 %attr(755,root,root) /sbin/*
143 %attr(755,root,root) %{_sbindir}/*
145 %files -n kernel-fs-davfs
146 %defattr(644,root,root,755)
147 /lib/modules/%{_kernel_ver}/misc/*.o*
149 %files -n kernel-smp-fs-davfs
150 %defattr(644,root,root,755)
151 /lib/modules/%{_kernel_ver}smp/misc/*.o*