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