]>
Commit | Line | Data |
---|---|---|
506b66d5 | 1 | Summary: Web-based Distributed Authoring and Versioning - caching version |
2 | Summary(pl.UTF-8): Bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie - wersja z cache | |
3 | Name: davfs2 | |
4 | Version: 1.4.1 | |
5 | Release: 0.1 | |
6 | License: GPL | |
7 | Group: Networking/Utilities | |
8 | Source0: http://download.savannah.gnu.org/releases-noredirect/%{name}/%{name}-%{version}.tar.gz | |
9 | URL: http://savannah.nongnu.org/projects/davfs2 | |
10 | BuildRequires: autoconf | |
11 | BuildRequires: neon-devel >= 0.24 | |
12 | BuildRequires: openssl-devel >= 0.9.7d | |
13 | BuildRequires: rpmbuild(macros) >= 1.118 | |
14 | Requires(post): fileutils | |
15 | Requires(post,preun): /sbin/chkconfig | |
16 | Requires(postun): /usr/sbin/groupdel | |
17 | Requires(postun): /usr/sbin/userdel | |
18 | Requires(pre): /bin/id | |
19 | Requires(pre): /usr/bin/getgid | |
20 | Requires(pre): /usr/sbin/groupadd | |
21 | Requires(pre): /usr/sbin/useradd | |
22 | Requires: neon >= 0.24 | |
23 | Provides: group(davfs2) | |
24 | Provides: user(davfs2) | |
25 | Conflicts: davfs | |
26 | ||
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | WebDAV is an acronym for Web-based Distributed Authoring and Version- | |
31 | ing. Usually HTTP is a read only protocol, but if you install DAV on | |
32 | your web server, it becomes writable. Furthermore, if you use DAVfs, | |
33 | you can mount your web server onto your filesystem and can use it as a | |
34 | normal disk. | |
35 | ||
36 | This package contains the caching version of davfs. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie. | |
40 | Zazwyczaj protokół HTTP jest protokołem tylko do odczytu ale po | |
41 | zainstalowaniu DAVa staje się on również zapisywalnym. Co więcej jeśli | |
42 | używasz DAVfs to możesz montować swój serwer WWW jako system plików i | |
43 | używać tak jak normalnego dysku. | |
44 | ||
45 | Ten pakiet zawiera wersję davfs korzystającą z cache'u. | |
46 | ||
47 | %prep | |
48 | %setup -q | |
49 | ||
50 | %build | |
51 | %configure | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | install -d $RPM_BUILD_ROOT/sbin | |
59 | install -d $RPM_BUILD_ROOT%{_mandir}/{man5,man8} | |
60 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
61 | install -d $RPM_BUILD_ROOT%{_var}/cache/%{name} | |
62 | ||
63 | install src/{,u}mount.davfs $RPM_BUILD_ROOT/sbin | |
64 | install etc/{davfs2.conf,secrets} $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
65 | install man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/ | |
66 | install man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/ | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %pre | |
72 | %groupadd -g 322 davfs2 | |
73 | %useradd -u 322 -r -d /var/cache/%{name} -s /bin/false -c "DAVfs User" -g davfs2 davfs2 | |
74 | ||
75 | %postun | |
76 | if [ "$1" = "0" ]; then | |
77 | %userremove davfs2 | |
78 | %groupremove davfs2 | |
79 | fi | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | ||
84 | %doc ABOUT-NLS COPYING INSTALL README.translators aclocal.m4 AUTHORS ChangeLog NEWS THANKS BUGS FAQ README TODO | |
85 | %{_mandir}/man5/* | |
86 | %{_mandir}/man8/* | |
87 | %dir %{_sysconfdir}/%{name} | |
88 | %config(noreplace) %attr(600,root,root) %{_sysconfdir}/%{name}/secrets | |
89 | %config %{_sysconfdir}/%{name}/davfs2.conf | |
90 | ||
91 | %attr(755,root,root) /sbin/* | |
92 | %attr(755,davfs2,davfs2) %{_var}/cache/%{name} |