A new user interface for you!

File lxqt-wallet.spec of Package lxqt-wallet

# 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_0_0
%define srcname lxqt_wallet
Name:           lxqt-wallet
Version:        3.0.0
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)
Requires:       %{c_lib} = %{version}
Recommends:     %{name}-lang

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:       %{name} = %{version}

%description    devel
This package contains the header files needed to develop application that
use %{name}.


%setup -q -n %{srcname}-%{version}

%cmake \
    -DQT5=ON \

make %{?_smp_mflags}


%post -n %{c_lib} -p /sbin/ldconfig
%postun -n %{c_lib} -p /sbin/ldconfig

%doc LICENSE README* changelog

%files devel

%files -n %{c_lib}

%files lang
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/translations/
%dir %{_datadir}/lxqt/translations/lxqt-wallet/