2014-11-25 23:12:48 +01:00
|
|
|
#
|
|
|
|
# spec file for package davfs2
|
|
|
|
#
|
2020-05-15 09:06:38 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-11-25 23:12:48 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-15 09:06:38 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-25 23:12:48 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-09-17 00:00:09 +02:00
|
|
|
Name: davfs2
|
|
|
|
Version: 1.6.0
|
|
|
|
Release: 0
|
2010-11-29 23:21:41 +01:00
|
|
|
Summary: FUSE-Filesystem to access WebDAV servers
|
2020-05-15 09:06:38 +02:00
|
|
|
License: GPL-3.0-only
|
2010-11-29 23:21:41 +01:00
|
|
|
Group: System/Filesystems
|
2020-05-15 09:06:38 +02:00
|
|
|
URL: http://savannah.nongnu.org/projects/%{name}
|
2017-12-05 16:25:00 +01:00
|
|
|
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}-rpmlintrc
|
|
|
|
Source3: memberlist-gpgkeys.gpg
|
2020-06-23 14:05:55 +02:00
|
|
|
BuildRequires: automake >= 1.16
|
2014-11-25 23:12:48 +01:00
|
|
|
BuildRequires: fuse-devel >= 2.2
|
|
|
|
BuildRequires: neon-devel
|
2010-11-29 23:21:41 +01:00
|
|
|
BuildRequires: pwdutils
|
|
|
|
Requires: fuse >= 2.2
|
2020-09-17 00:00:09 +02:00
|
|
|
Requires(pre): %{_sbindir}/groupadd
|
|
|
|
Requires(pre): %{_sbindir}/useradd
|
2017-12-05 16:25:00 +01:00
|
|
|
Obsoletes: fuse-%{name} < %{version}
|
|
|
|
Provides: fuse-%{name} = %{version}
|
2009-05-29 01:41:55 +02:00
|
|
|
|
|
|
|
%description
|
2018-02-27 13:59:28 +01:00
|
|
|
davfs2 is a FUSE file system driver that allows mounting a WebDAV server
|
|
|
|
as a local file system, like a disk drive. This way, applications can access
|
2009-05-29 01:41:55 +02:00
|
|
|
resources on a Web server without knowing anything about HTTP or WebDAV.
|
|
|
|
|
2018-02-27 13:59:28 +01:00
|
|
|
davfs2 runs as a daemon in userspace. It uses the kernel file system "coda", or
|
|
|
|
FUSE. To connect to the WebDAV server, it makes use of the neon library,
|
|
|
|
supporting TLS/SSL and access via proxy servers.
|
2009-05-29 01:41:55 +02:00
|
|
|
|
|
|
|
%prep
|
2020-09-17 00:00:09 +02:00
|
|
|
%setup -q
|
2013-04-02 11:17:12 +02:00
|
|
|
cd src
|
2009-05-29 01:41:55 +02:00
|
|
|
|
|
|
|
%build
|
2017-12-05 16:25:00 +01:00
|
|
|
dav_user="%{name}" \
|
|
|
|
dav_group="%{name}" \
|
2010-11-29 23:21:41 +01:00
|
|
|
%configure \
|
2020-11-26 11:09:40 +01:00
|
|
|
%if 0%{?usrmerged}
|
|
|
|
ssbindir="%{_sbindir}" \
|
|
|
|
%endif
|
2010-11-29 23:21:41 +01:00
|
|
|
--disable-static
|
2013-04-02 11:17:12 +02:00
|
|
|
%if 0%{?suse_version} >= 1000
|
|
|
|
PIE="-fPIE"
|
|
|
|
pie="-pie"
|
|
|
|
%endif
|
2020-09-17 00:00:09 +02:00
|
|
|
%make_build AM_CFLAGS="-Wall %{optflags} $PIE" AM_LDFLAGS="$pie"
|
2009-05-29 01:41:55 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-27 13:59:28 +01:00
|
|
|
%make_install
|
|
|
|
rm -rf "%{buildroot}%{_datadir}/doc"
|
2020-09-17 00:00:09 +02:00
|
|
|
install -d "%{buildroot}%{_localstatedir}/cache/%{name}"
|
2017-12-05 16:25:00 +01:00
|
|
|
%find_lang %{name}
|
2018-02-27 13:59:28 +01:00
|
|
|
rm -rf "%{buildroot}/%{_docdir}"
|
2013-04-02 11:17:12 +02:00
|
|
|
|
2009-05-29 23:15:58 +02:00
|
|
|
%pre
|
2020-09-17 00:00:09 +02:00
|
|
|
%{_bindir}/getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name}
|
|
|
|
%{_bindir}/getent passwd %{name} >/dev/null || %{_sbindir}/useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} %{name}
|
2009-05-29 02:00:19 +02:00
|
|
|
|
2009-05-29 23:15:58 +02:00
|
|
|
%post
|
2013-04-02 11:17:12 +02:00
|
|
|
%if 0%{?set_permissions:1} > 0
|
|
|
|
%set_permissions "%{_sbindir}/mount.davfs"
|
|
|
|
%else
|
|
|
|
%if 0%{?run_permissions:1} > 0
|
|
|
|
%run_permissions
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{_sbindir}/mount.davfs
|
|
|
|
%endif
|
2009-05-29 23:15:58 +02:00
|
|
|
|
2017-12-05 16:25:00 +01:00
|
|
|
%files -f %{name}.lang
|
2009-05-29 01:41:55 +02:00
|
|
|
%defattr(-, root, root, 0755)
|
2020-09-17 00:00:09 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS BUGS FAQ NEWS README* THANKS TODO etc/%{name}.conf etc/secrets
|
|
|
|
%{_mandir}/man5/%{name}.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/mount.davfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/umount.davfs.8%{?ext_man}
|
|
|
|
%{_mandir}/*/man5/%{name}.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/*/man8/mount.davfs.8%{?ext_man}
|
|
|
|
%{_mandir}/*/man8/umount.davfs.8%{?ext_man}
|
2017-12-05 16:25:00 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
|
%config %{_sysconfdir}/%{name}/secrets
|
|
|
|
%config %{_sysconfdir}/%{name}/certs/
|
2017-08-14 15:36:55 +02:00
|
|
|
%verify(not user group mode) %attr(0755,root,root) %{_sbindir}/mount.davfs
|
2009-05-29 01:41:55 +02:00
|
|
|
%{_sbindir}/umount.davfs
|
2017-12-05 16:25:00 +01:00
|
|
|
%{_datadir}/%{name}
|
2020-09-17 00:00:09 +02:00
|
|
|
%attr(0750, %{name}, %{name}) %{_localstatedir}/cache/%{name}
|
2020-11-26 11:09:40 +01:00
|
|
|
%if !0%{?usrmerged}
|
2010-11-29 23:21:41 +01:00
|
|
|
/sbin/mount.davfs
|
|
|
|
/sbin/umount.davfs
|
2020-11-26 11:09:40 +01:00
|
|
|
%endif
|
2014-11-25 23:12:48 +01:00
|
|
|
|
|
|
|
%changelog
|