From 38028b81f1993c5746064028089e46a7b4f9d9ae05c01b60edad9964b7647bf8 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 24 Oct 2024 13:12:48 +0000 Subject: [PATCH] - Enable building with libsecret as backend additionally to kde support - Run spec-cleaner OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-wallet?expand=0&rev=8 --- lxqt-wallet.changes | 7 +++++++ lxqt-wallet.spec | 33 +++++++++++++++------------------ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/lxqt-wallet.changes b/lxqt-wallet.changes index 70e9361..cf094ad 100644 --- a/lxqt-wallet.changes +++ b/lxqt-wallet.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 24 13:11:41 UTC 2024 - Michael Vetter + +- Enable building with libsecret as backend additionally to kde + support +- Run spec-cleaner + ------------------------------------------------------------------- Thu Oct 24 10:25:19 UTC 2024 - Michael Vetter diff --git a/lxqt-wallet.spec b/lxqt-wallet.spec index 2287121..64ce574 100644 --- a/lxqt-wallet.spec +++ b/lxqt-wallet.spec @@ -1,7 +1,7 @@ # # spec file for package lxqt-wallet # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,9 +12,10 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %define c_lib lib%{name}6_0_0 %define srcname lxqt_wallet Name: lxqt-wallet @@ -23,22 +24,23 @@ Release: 0 Summary: Secure storage of information for LXQt License: BSD-2-Clause Group: System/GUI/LXQt -Url: https://github.com/mhogomchungu/lxqt_wallet +URL: https://github.com/mhogomchungu/lxqt_wallet Source0: https://github.com/mhogomchungu/lxqt_wallet/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz BuildRequires: cmake >= 3.18 BuildRequires: gcc-c++ -BuildRequires: qt6-linguist-devel -BuildRequires: pkgconfig # Uses internal storage system BuildRequires: libgcrypt-devel +BuildRequires: pkgconfig +BuildRequires: qt6-linguist-devel +BuildRequires: cmake(KF5Notifications) # Uses kwallet as backend BuildRequires: cmake(KF5Wallet) -BuildRequires: cmake(KF5Notifications) -# Could also use gnome secret service -#BuildRequires: libsecret-devel BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Gui) BuildRequires: pkgconfig(Qt6Widgets) +# Use libsecret as backend +BuildRequires: pkgconfig(libsecret-1) +BuildRequires: pkgconfig(libsecret-unstable) Recommends: %{name}-lang %description @@ -68,11 +70,10 @@ use %{name}. %build %cmake \ - -DQT5=ON \ - -DNOKDESUPPORT=OFF \ - -DNOSECRETSUPPORT=ON + -DNOKDESUPPORT=false \ + -DNOSECRETSUPPORT=false -make %{?_smp_mflags} +%make_build %install %cmake_install @@ -81,23 +82,19 @@ make %{?_smp_mflags} %postun -n %{c_lib} -p /sbin/ldconfig %files -%defattr(-,root,root) -%doc LICENSE README* changelog +%license LICENSE +%doc README* changelog %{_bindir}/lxqt_wallet-cli %files devel -%defattr(-,root,root) %{_includedir}/lxqt/ %{_libdir}/pkgconfig/lxqt-wallet.pc %{_libdir}/liblxqt-wallet.so %files -n %{c_lib} -%defattr(-,root,root) %{_libdir}/liblxqt-wallet.so.* - %files lang -%defattr(-,root,root) %dir %{_datadir}/lxqt %dir %{_datadir}/lxqt/translations/ %dir %{_datadir}/lxqt/translations/lxqt-wallet/