# TODO: # - %attr(755,davfs2,davfs2) %{_var}/cache/%{name} - Shouldn't it be 700? Summary: Web-based Distributed Authoring and Versioning - caching version Summary(pl.UTF-8): WebDAV (oparty na WWW system kontroli wersji) - wersja z cache Name: davfs2 Version: 1.7.0 Release: 1 License: GPL v3+ Group: Networking/Utilities Source0: http://download.savannah.gnu.org/releases/davfs2/%{name}-%{version}.tar.gz # Source0-md5: 0f992e1ff8b0e1e8c7c414e258b3c99b URL: http://savannah.nongnu.org/projects/davfs2 BuildRequires: autoconf >= 2.69 BuildRequires: automake >= 1.11.6 BuildRequires: gettext-tools >= 0.19.8 BuildRequires: neon-devel >= 0.27 BuildRequires: openssl-devel >= 0.9.7d BuildRequires: rpmbuild(macros) >= 1.118 Requires(postun): /usr/sbin/groupdel Requires(postun): /usr/sbin/userdel Requires(pre): /bin/id Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd Requires: neon >= 0.27 Provides: group(davfs2) Provides: user(davfs2) Conflicts: davfs Conflicts: setup < 2.7.2-1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description WebDAV is an acronym for Web-based Distributed Authoring and Version- ing. Usually HTTP is a read only protocol, but if you install DAV on your web server, it becomes writable. Furthermore, if you use DAVfs, you can mount your web server onto your filesystem and can use it as a normal disk. This package contains the caching version of davfs. %description -l pl.UTF-8 WebDAV to bazujące na WWW Rozproszone Autoryzowanie i Wersjonowanie. Zazwyczaj protokół HTTP jest protokołem tylko do odczytu, lecz po zainstalowaniu DAVa staje się on również zapisywalny. Dodatkowo DAVfs umożliwia montowanie serwera WWW jako systemu plików, co pozwala na używanie go jak normalnego dysku. Ten pakiet zawiera wersję davfs korzystającą z cache'u. %prep %setup -q %build %{__aclocal} -I config %{__autoconf} %{__autoheader} %{__automake} %configure \ --sbindir=/sbin %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_var}/cache/%{name} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # packaged as %doc %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 242 davfs2 %useradd -u 242 -r -d /var/cache/%{name} -s /bin/false -c "DAVfs User" -g davfs2 davfs2 %postun if [ "$1" = "0" ]; then %userremove davfs2 %groupremove davfs2 fi %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS BUGS ChangeLog FAQ NEWS README THANKS TODO %attr(4750,root,davfs2) /sbin/mount.davfs %attr(4750,root,davfs2) /sbin/umount.davfs %{_datadir}/%{name} %dir %{_sysconfdir}/%{name} %config(noreplace) %attr(600,root,root) %{_sysconfdir}/%{name}/secrets %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %attr(755,davfs2,davfs2) %{_var}/cache/%{name} %{_mandir}/man5/davfs2.conf.5* %{_mandir}/man8/mount.davfs.8* %{_mandir}/man8/umount.davfs.8* %lang(de) %{_mandir}/de/man5/davfs2.conf.5* %lang(de) %{_mandir}/de/man8/mount.davfs.8* %lang(de) %{_mandir}/de/man8/umount.davfs.8* %lang(es) %{_mandir}/es/man5/davfs2.conf.5*