lxqt-wallet/lxqt-wallet.spec
Michael Vetter 9fe8ff285e - Update to 3.2.2:
* Use kwallet through dbus if the functionality was not compiled in.
  * Make library version the same as package version again.

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-wallet?expand=0&rev=5
2021-04-07 07:07:53 +00:00

107 lines
2.9 KiB
RPMSpec

#
# spec file for package lxqt-wallet
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
%define c_lib lib%{name}3_2_2
%define srcname lxqt_wallet
Name: lxqt-wallet
Version: 3.2.2
Release: 0
Summary: Secure storage of information for LXQt
License: BSD-2-Clause
Group: System/GUI/LXQt
Url: https://github.com/mhogomchungu/lxqt_wallet
Source0: https://github.com/mhogomchungu/lxqt_wallet/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libqt5-linguist-devel
BuildRequires: pkgconfig
# Uses internal storage system
BuildRequires: libgcrypt-devel
# Uses kwallet as backend
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5Notifications)
# Could also use gnome secret service
#BuildRequires: libsecret-devel
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
Recommends: %{name}-lang
%description
Secure storage of information in kwallet that can be presented in
key-values pair like user names-passwords pairs.
%package -n %{c_lib}
Summary: Library for %{name}
Group: Development/Libraries/C and C++
%description -n %{c_lib}
This package contains the library files for %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{c_lib} = %{version}
%description devel
This package contains the header files needed to develop application that
use %{name}.
%lang_package
%prep
%setup -q -n %{srcname}-%{version}
%build
%cmake \
-DQT5=ON \
-DNOKDESUPPORT=OFF \
-DNOSECRETSUPPORT=ON
make %{?_smp_mflags}
%install
%cmake_install
%post -n %{c_lib} -p /sbin/ldconfig
%postun -n %{c_lib} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE 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/
%{_datadir}/lxqt/translations/lxqt-wallet/*.qm
%changelog