Fabian Vogt
c1b797a284
breaks it in openSUSE:Factory (boo#1159963) OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kio-fuse?expand=0&rev=2
87 lines
2.5 KiB
RPMSpec
87 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package kio-fuse
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
%bcond_without lang
|
|
Name: kio-fuse
|
|
Version: 4.90.0
|
|
Release: 0
|
|
Summary: Access KIO over the regular filesystem
|
|
License: GPL-3.0-or-later
|
|
Group: System/GUI/KDE
|
|
URL: https://www.kde.org
|
|
Source0: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz
|
|
%if %{with lang}
|
|
Source1: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig
|
|
Source2: kio-fuse.keyring
|
|
%endif
|
|
# PATCH-FIX-UPSTREAM https://invent.kde.org/kde/kio-fuse/merge_requests/16
|
|
Patch1: 0001-Use-target_link_libraries-instead-of-target_link_opt.patch
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: cmake(KF5KIO)
|
|
BuildRequires: cmake(KF5DBusAddons)
|
|
BuildRequires: cmake(Qt5DBus)
|
|
BuildRequires: cmake(Qt5Test)
|
|
BuildRequires: pkgconfig(fuse3)
|
|
Requires: fuse3
|
|
# For %check
|
|
BuildRequires: kio-extras5
|
|
|
|
%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
|
|
%make_jobs
|
|
|
|
%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 :-(
|
|
|
|
ret=0
|
|
fusermount3 || ret=$?
|
|
if [ $ret -eq 126 ] ; then
|
|
# No permission to run fusermount3: boo#1159963
|
|
exit 0
|
|
fi
|
|
|
|
# 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
|
|
%license COPYING*
|
|
%{_kf5_libdir}/libexec/kio-fuse
|
|
%{_tmpfilesdir}/kio-fuse-tmpfiles.conf
|
|
%{_kf5_sharedir}/dbus-1/services/org.kde.KIOFuse.service
|
|
|
|
%changelog
|