From 7286a07970d4e08bfa47e2b792cf2dd0f227cfe440193b8548db64e82be3e4d9 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 25 Dec 2019 13:57:22 +0000 Subject: [PATCH] Accepting request 759191 from home:Vogtinator:KE yay OBS-URL: https://build.opensuse.org/request/show/759191 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kio-fuse?expand=0&rev=1 --- .gitattributes | 23 +++++ ...libraries-instead-of-target_link_opt.patch | 28 +++++++ kio-fuse-4.90.0.tar.xz | 3 + kio-fuse-4.90.0.tar.xz.sig | 16 ++++ kio-fuse.changes | 4 + kio-fuse.keyring | Bin 0 -> 9241 bytes kio-fuse.spec | 79 ++++++++++++++++++ 7 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 0001-Use-target_link_libraries-instead-of-target_link_opt.patch create mode 100644 kio-fuse-4.90.0.tar.xz create mode 100644 kio-fuse-4.90.0.tar.xz.sig create mode 100644 kio-fuse.changes create mode 100644 kio-fuse.keyring create mode 100644 kio-fuse.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/0001-Use-target_link_libraries-instead-of-target_link_opt.patch b/0001-Use-target_link_libraries-instead-of-target_link_opt.patch new file mode 100644 index 0000000..a564485 --- /dev/null +++ b/0001-Use-target_link_libraries-instead-of-target_link_opt.patch @@ -0,0 +1,28 @@ +From 14d16524ae0233518111ae7631f540178bc25dcf Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Wed, 25 Dec 2019 14:15:51 +0100 +Subject: [PATCH] Use target_link_libraries instead of target_link_options for + FUSE3_LDFLAGS + +target_link_options got added in CMake 3.13, which is not always available. +--- + CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8fe1df9..94c3323 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,8 +55,7 @@ ecm_qt_declare_logging_category(KIOFUSE_SOURCES + add_executable(kio-fuse ${KIOFUSE_SOURCES}) + target_include_directories(kio-fuse PRIVATE ${FUSE3_INCLUDE_DIRS}) + target_compile_definitions(kio-fuse PRIVATE FUSE_USE_VERSION=31 ${FUSE3_CFLAGS_OTHER}) +-target_link_options(kio-fuse PRIVATE ${FUSE3_LDFLAGS}) +-target_link_libraries(kio-fuse PRIVATE Qt5::Core KF5::KIOCore ${FUSE3_LIBRARIES}) ++target_link_libraries(kio-fuse PRIVATE Qt5::Core KF5::KIOCore ${FUSE3_LIBRARIES} ${FUSE3_LDFLAGS}) + install(TARGETS kio-fuse DESTINATION ${KDE_INSTALL_FULL_LIBEXECDIR}) + install(FILES kio-fuse-tmpfiles.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/tmpfiles.d) + kdbusaddons_generate_dbus_service_file(kio-fuse org.kde.KIOFuse ${KDE_INSTALL_FULL_LIBEXECDIR}) +-- +2.23.0 + diff --git a/kio-fuse-4.90.0.tar.xz b/kio-fuse-4.90.0.tar.xz new file mode 100644 index 0000000..8b92647 --- /dev/null +++ b/kio-fuse-4.90.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7ec3a56b10bfc0d2d5631623b8434e8bc4b24990525eafef41cea588144d71e +size 39064 diff --git a/kio-fuse-4.90.0.tar.xz.sig b/kio-fuse-4.90.0.tar.xz.sig new file mode 100644 index 0000000..8b0e467 --- /dev/null +++ b/kio-fuse-4.90.0.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEIew/110ms56CC+b70nwsGvIdi60FAl3+OD0ACgkQ0nwsGvId +i61dRQ//YUWZ8+CF5+dId1/NGbCW82X8Fq4vhte1vOB6UkLe8rJ0tymrBm/qLZsN ++EZXO3d5BE/XhtOJg76OQ9gPDgui9+kLufX1W8064uA5J36V3v5Hsb6dIjtbPG5p +eL/qtI59mQ8BGAidl/DUrWmpTvuNCq2/6knzmiqQ7CC/But47y9tc408zQZHVDog +/LWDgFY/eb/b6b68IYVYl8HCLznAt6We9eBCXgw/j+VnNx7mLka4Zfye7SrkOhI/ +vOvTU5hCHFgu/wDcUQR/B43jUKj7mxyI3iM7BMhMA81lL3XG58ssDrdgmAEQbZ5k +an/Hrs3ZGWUeAr9MGe0r0Kezb/u9It0ZXR8l6xEEMJN7fdZKd0MHwBIKjIoCKvwM +QFSNcpwkEeeSU3FPw0z+6SvVwQijA+T3tTZTMfr/pfZdx8fAeUpMmwlCYgDUy1Fu +CGvDxpeBu0K/1ydIegQNaPLpdaBtJ9wJq/VbjzkiyFhLmpth2oZS7W8Jj01i8IJT +2yZTjyd0pzIKKqOQkqoUCztf5sRMSEPoJUfgWP9uatksvyuTiR++cIhkJeHdEtmP +dDvHjXvVedxY/chhP8a2SoUcHyY4zyvuGmwUotdvmg6liWNwmyZDxJViJb/hE1hq +ZmW9CrOBoclSYrPbL0/Xuapa8Z3VLLFxEIMKYU6PbvIWQpSjs9I= +=WJMQ +-----END PGP SIGNATURE----- diff --git a/kio-fuse.changes b/kio-fuse.changes new file mode 100644 index 0000000..819a63c --- /dev/null +++ b/kio-fuse.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 29 13:04:21 UTC 2019 - Fabian Vogt + +- Initial commit diff --git a/kio-fuse.keyring b/kio-fuse.keyring new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..7b996dfc4026d7dd09cf97b5a0efdcba5db06e0ef7106d8a941a77b82c116103 GIT binary patch literal 9241 zcmb7}Wl&w&oAoajcXxMphv4oW+%>p6!R_L%!3ho*2?Td{3mV)51Pd8Y-ney9F# zb$>cl>%-nv`>cI_=UFQYhzzA|TyqA21{l8jcy+iv(q*Xtd5lU-bi|;3|Abpc{>$cb z$nG6vH&PcO%__s;=sZK$it=m`tu;?PP3L44+SwEFgVekfuKr_~56%cTSww5feX9cu z#R^c$ZK|c_fhV899FlY#Cq-urp5|OPb5aAS0TzgZ)m? zu?E`n(cOE;@qQp?H*w%{uxA?*c_PRkGj4i`qxNaTXgbo%XaZ4`u?hVnABMdr}+;Sk#zEaytRm80_IyQ)#VK%O*m0<1_77=>tme59C) z?9#$)$sL95Dy@00-^72rSX;vf@+i(0GZo_97aP9k<3?||FdU3R&=>c2=dU@rj6t1> zF#%lMVd;`F+qkAm7xBdG!DIQFEnt}j4r%jIjGdErZM11CBB`P`OCfCEmk#QOxW?9o z5*lfSO3lutLw&(hx>mVIy(tNJP+zn{{4Q6F!5+nBGZ)Htjj-#9yMY}{EhJUao$3-` z+WpLD?dDWjdr3&*R)Z9D=z9}2?Ft_Py+E#N!sHLkk!`A4(qwc1@oRlXkP91QI)7dBna{7LSIuiW`w66f}~gc zwm*t7ikS&?2X|n`s;C9Ad`y5J5*~KRW%`M4) zOAP@;6(+)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pWjHXQ639O~d<*CG>Ky znr-=4Rf)$0E_392Ew!AdCEptUz6qv1dj~&8P(CV~8!b&ff|GuXzI})G*KQb4Y(AT* zxsWg{_O?#d_L7arEaCtq`4iR5w>s*&M!oX4Du7K~Ml<&p^LqAU)r5Q{?R>N8&=OmwL$m^~k#h28g=H9=+kq)nG<7|l@9bXC4J<+%-7x!O99 z+jKMOD=oZUPUpnK5aCIC!Q)b`(^Ii5VLhO^joT8qN}p!d0)?8Fs>S*f1HKS5V0nqy zrU01buD2K;_|A>V3IbtmP@c2Y5HHLNY_ng&pR1Y>KW~L;bdUv!DD)W_51bYd4jvT? zQu=t6w{@XPZj}5N(4%RzRn5Czr@;VVw7{iq6zW@nhwW|OC literal 0 HcmV?d00001 diff --git a/kio-fuse.spec b/kio-fuse.spec new file mode 100644 index 0000000..6f38bda --- /dev/null +++ b/kio-fuse.spec @@ -0,0 +1,79 @@ +# +# 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 :-( + +# 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