]> git.pld-linux.org Git - packages/davfs2.git/blob - davfs2.spec
5ac285e0c1350cdde52967c251cf86e99a8e684a
[packages/davfs2.git] / davfs2.spec
1 # TODO:
2 # - %attr(755,davfs2,davfs2) %{_var}/cache/%{name} - Shouldn't it be 700?
3 Summary:        Web-based Distributed Authoring and Versioning - caching version
4 Summary(pl.UTF-8):      Bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie - wersja z cache
5 Name:           davfs2
6 Version:        1.4.6
7 Release:        0.1
8 License:        GPL v3+
9 Group:          Networking/Utilities
10 Source0:        http://download.savannah.gnu.org/releases-noredirect/davfs2/%{name}-%{version}.tar.gz
11 # Source0-md5:  c9e8aeb15daeba4b6283b40bb640e908
12 URL:            http://savannah.nongnu.org/projects/davfs2
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  neon-devel >= 0.24
16 BuildRequires:  openssl-devel >= 0.9.7d
17 BuildRequires:  rpmbuild(macros) >= 1.118
18 Requires(postun):       /usr/sbin/groupdel
19 Requires(postun):       /usr/sbin/userdel
20 Requires(pre):  /bin/id
21 Requires(pre):  /usr/sbin/groupadd
22 Requires(pre):  /usr/sbin/useradd
23 Requires:       neon >= 0.24
24 Provides:       group(davfs2)
25 Provides:       user(davfs2)
26 Conflicts:      davfs
27 Conflicts:      setup < 2.7.2-1
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 WebDAV is an acronym for Web-based Distributed Authoring and Version-
32 ing. Usually HTTP is a read only protocol, but if you install DAV on
33 your web server, it becomes writable. Furthermore, if you use DAVfs,
34 you can mount your web server onto your filesystem and can use it as a
35 normal disk.
36
37 This package contains the caching version of davfs.
38
39 %description -l pl.UTF-8
40 WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie.
41 Zazwyczaj protokół HTTP jest protokołem tylko do odczytu, lecz po
42 zainstalowaniu DAVa staje się on również zapisywalny. Dodatkowo DAVfs
43 umożliwia montowanie serwera WWW jako systemu plików, co pozwala na
44 używanie go jak normalnego dysku.
45
46 Ten pakiet zawiera wersję davfs korzystającą z cache'u.
47
48 %prep
49 %setup -q
50
51 %build
52 %{__aclocal} -I config
53 %{__autoconf}
54 %{__autoheader}
55 %{__automake}
56 %configure \
57         --sbindir="/sbin"
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_var}/cache/%{name}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %find_lang %{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %pre
74 %groupadd -g 242 davfs2
75 %useradd -u 242 -r -d /var/cache/%{name} -s /bin/false -c "DAVfs User" -g davfs2 davfs2
76
77 %postun
78 if [ "$1" = "0" ]; then
79         %userremove davfs2
80         %groupremove davfs2
81 fi
82
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc %{_docdir}/*
86 %{_mandir}/man5/*.5*
87 %{_mandir}/man8/*.8*
88 %{_datadir}/%{name}
89 %dir %{_sysconfdir}/%{name}
90 %config(noreplace) %attr(600,root,root) %{_sysconfdir}/%{name}/secrets
91 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
92 %attr(4750,root,davfs2) /sbin/mount.davfs
93 %attr(4750,root,davfs2) /sbin/umount.davfs
94 %attr(755,davfs2,davfs2) %{_var}/cache/%{name}
95 %lang(de) %{_mandir}/de/man5/*.5*
96 %lang(de) %{_mandir}/de/man8/*.8*
97 %lang(es) %{_mandir}/es/man5/*.5*
This page took 0.503214 seconds and 2 git commands to generate.