2014-11-25 23:12:48 +01:00
|
|
|
#
|
|
|
|
# spec file for package davfs2
|
|
|
|
#
|
2024-02-07 09:43:49 +01:00
|
|
|
# Copyright (c) 2024 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
|
2022-11-02 12:27:25 +01:00
|
|
|
Version: 1.7.0
|
2020-09-17 00:00:09 +02:00
|
|
|
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
|
2021-12-20 22:07:35 +01:00
|
|
|
URL: https://savannah.nongnu.org/projects/%{name}
|
|
|
|
Source0: https://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
|
2017-12-05 16:25:00 +01:00
|
|
|
Source2: %{name}-rpmlintrc
|
2022-05-24 21:39:27 +02:00
|
|
|
# Taken from https://savannah.nongnu.org/project/release-gpgkeys.php?group=davfs2&download=1
|
|
|
|
Source3: davfs2.keyring
|
2024-02-07 09:43:49 +01:00
|
|
|
Source4: davfs2.sysusers
|
2024-05-22 09:24:16 +02:00
|
|
|
Patch0: davfs2-1.7.0-neon-33.patch
|
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
|
2024-02-07 09:43:49 +01:00
|
|
|
BuildRequires: sysuser-tools
|
2010-11-29 23:21:41 +01:00
|
|
|
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}
|
2024-02-07 09:43:49 +01:00
|
|
|
%sysusers_requires
|
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
|
2024-05-22 09:24:16 +02:00
|
|
|
%autosetup -p1
|
2009-05-29 01:41:55 +02:00
|
|
|
|
|
|
|
%build
|
2024-05-22 09:24:16 +02:00
|
|
|
# for davfs2-1.7.0-neon-33.patch
|
|
|
|
autoreconf -fiv
|
2017-12-05 16:25:00 +01:00
|
|
|
dav_user="%{name}" \
|
|
|
|
dav_group="%{name}" \
|
2010-11-29 23:21:41 +01:00
|
|
|
%configure \
|
2023-01-05 09:41:28 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2020-11-26 11:09:40 +01:00
|
|
|
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
|
|
|
|
2024-02-07 09:43:49 +01:00
|
|
|
install -p -D -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf
|
|
|
|
|
|
|
|
%sysusers_generate_pre %{buildroot}%{_sysusersdir}/%{name}.conf %{name} %{name}.conf
|
|
|
|
|
|
|
|
%pre -f %{name}.pre
|
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}
|
2024-02-07 09:43:49 +01:00
|
|
|
%{_sysusersdir}/%{name}.conf
|
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}
|
2023-01-05 09:41:28 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
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
|