2019-12-25 14:57:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package kio-fuse
|
|
|
|
#
|
2021-03-25 07:48:10 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-12-25 14:57:22 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2020-05-26 22:00:38 +02:00
|
|
|
|
2019-12-25 14:57:22 +01:00
|
|
|
%bcond_without lang
|
|
|
|
Name: kio-fuse
|
2021-03-25 07:48:10 +01:00
|
|
|
Version: 5.0.1
|
2019-12-25 14:57:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Access KIO over the regular filesystem
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
URL: https://www.kde.org
|
2020-12-30 14:41:53 +01:00
|
|
|
Source0: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
2019-12-25 14:57:22 +01:00
|
|
|
%if %{with lang}
|
2020-12-30 14:41:53 +01:00
|
|
|
Source1: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig
|
2019-12-25 14:57:22 +01:00
|
|
|
Source2: kio-fuse.keyring
|
|
|
|
%endif
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: pkgconfig
|
2020-05-26 22:00:38 +02:00
|
|
|
BuildRequires: cmake(KF5KIO) >= 5.66.0
|
|
|
|
BuildRequires: cmake(Qt5DBus) >= 5.12.0
|
2019-12-25 14:57:22 +01:00
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(fuse3)
|
|
|
|
Requires: fuse3
|
2020-08-27 11:46:49 +02:00
|
|
|
# For %%check
|
2019-12-25 14:57:22 +01:00
|
|
|
BuildRequires: kio-extras5
|
2021-03-25 07:48:10 +01:00
|
|
|
# While kio itself can make use of this, it's most likely used through dolphin
|
|
|
|
Supplements: dolphin
|
2019-12-25 14:57:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
kio-fuse is a daemon which makes KIO URLs accessible to KIO unaware
|
|
|
|
applications using FUSE.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
|
2020-08-27 11:46:49 +02:00
|
|
|
%cmake_build
|
2019-12-25 14:57:22 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%check
|
|
|
|
# The hack below only works with util-linux 3.34+.
|
|
|
|
# Without working umount, the tests can't work :-(
|
|
|
|
|
2019-12-31 19:47:52 +01:00
|
|
|
ret=0
|
|
|
|
fusermount3 || ret=$?
|
|
|
|
if [ $ret -eq 126 ] ; then
|
2020-08-27 11:46:49 +02:00
|
|
|
# No permission to run fusermount3: boo#1159963
|
|
|
|
exit 0
|
2019-12-31 19:47:52 +01:00
|
|
|
fi
|
|
|
|
|
2019-12-25 14:57:22 +01:00
|
|
|
# Hack to make "fusermount3 -u" work in the OBS context
|
|
|
|
# (https://github.com/openSUSE/obs-build/issues/535)
|
|
|
|
echo -e '#!/bin/sh\numount $2' >> fusermount3
|
|
|
|
chmod a+x fusermount3
|
|
|
|
export PATH=$PWD:$PATH
|
|
|
|
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
make %{?_smp_mflags} -C build VERBOSE=1 test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
2020-05-26 22:00:38 +02:00
|
|
|
%license LICENSES/*
|
2019-12-25 14:57:22 +01:00
|
|
|
%{_kf5_libdir}/libexec/kio-fuse
|
|
|
|
%{_kf5_sharedir}/dbus-1/services/org.kde.KIOFuse.service
|
2020-12-30 14:41:53 +01:00
|
|
|
%{_tmpfilesdir}/kio-fuse-tmpfiles.conf
|
|
|
|
%{_userunitdir}/kio-fuse.service
|
2019-12-25 14:57:22 +01:00
|
|
|
|
|
|
|
%changelog
|