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 _name lxqt_wallet
%define lname liblxqt-wallet
%define sover 3_2_2
Name: lxqt-wallet
Version: @SERVICE@
Release: 0
Summary: Secure storage of information for lxqt
License: BSD-2-Clause
Group: System/GUI/LXQt
Url: https://github.com/mhogomchungu/lxqt_wallet
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 2.6
BuildRequires: gcc-c++
BuildRequires: libgcrypt-devel
BuildRequires: pkgconfig
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(libsecret-1)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Secure storage of information in kwallet that can be presented in
key-values pair like user names-passwords pairs.
%package -n %{lname}-devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{lname}%{sover} = %{version}
%description -n %{lname}-devel
This package contains the header files needed to develop application that
use %{name}.
%package -n %{lname}%{sover}
Summary: A shared library
Group: System/Libraries
%description -n %{lname}%{sover}
%{lname} main system library
%lang_package
%prep
%setup -q
%build
%cmake \
-DQT5=ON \
-DLIB_SUFFIX=%{_lib} \
-DNOKDESUPPORT=OFF \
-DNOSECRETSUPPORT=OFF \
-DBUILD_SHARED=ON
make %{?_smp_mflags}
%install
%cmake_install %{?_smp_mflags}
%post -n %{lname}%{sover} -p /sbin/ldconfig
%postun -n %{lname}%{sover} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE README* changelog
%{_bindir}/%{_name}-cli
%files -n %{lname}-devel
%defattr(-,root,root)
%dir %{_includedir}/lxqt/
%{_includedir}/lxqt/lxqt*wallet.h
%{_libdir}/%{lname}.so
%{_libdir}/pkgconfig/%{name}.pc
%files -n %{lname}%{sover}
%defattr(-,root,root)
%{_libdir}/%{lname}.so.*
%files lang
%defattr(-,root,root)
%dir %{_datadir}/lxqt/
%dir %{_datadir}/lxqt/translations/
%{_datadir}/lxqt/translations/%{name}/
%changelog