File kwallet.spec of Package kwallet
#
# spec file for package kwallet
#
# Copyright (c) 2017 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/
#
%bcond_without lang
%define lname libKF5Wallet5
%define _tar_path 5.32
Name: kwallet
Version: 5.32.0
Release: 0
%define kf5_version %{version}
BuildRequires: cmake >= 3.0
BuildRequires: extra-cmake-modules >= %{_tar_path}
BuildRequires: fdupes
%if 0%{?is_opensuse} || 0%{?sle_version} >= 130000
BuildRequires: libqgpgme-devel
%endif
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: kconfig-devel >= %{_tar_path}
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
BuildRequires: kcoreaddons-devel >= %{_tar_path}
BuildRequires: kdbusaddons-devel >= %{_tar_path}
BuildRequires: kdoctools-devel >= %{_tar_path}
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel >= %{_tar_path}
BuildRequires: kiconthemes-devel >= %{_tar_path}
BuildRequires: knotifications-devel >= %{_tar_path}
BuildRequires: kservice-devel >= %{_tar_path}
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
BuildRequires: kwindowsystem-devel >= %{_tar_path}
BuildRequires: libgcrypt-devel >= 1.5.0
BuildRequires: cmake(Qt5DBus) >= 5.6.0
BuildRequires: cmake(Qt5Test) >= 5.6.0
BuildRequires: cmake(Qt5Widgets) >= 5.6.0
Summary: Safe desktop-wide storage for passwords
License: LGPL-2.1+
Group: System/GUI/KDE
Url: http://www.kde.org
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/kwallet-%{version}.tar.xz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
%package -n %lname
Summary: Safe desktop-wide storage for passwords
Group: System/GUI/KDE
%description -n %lname
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
%package -n libkwalletbackend5-5
Summary: Safe desktop-wide storage for passwords
Group: System/GUI/KDE
%description -n libkwalletbackend5-5
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
%package -n kwalletd5
Summary: Safe desktop-wide storage for passwords
Group: System/GUI/KDE
%if %{with lang}
Recommends: kwalletd5-lang
%endif
Recommends: %{name}-tools
%description -n kwalletd5
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
%package tools
Summary: Safe desktop-wide storage for passwords
Group: System/GUI/KDE
%if %{with lang}
Recommends: kwallet-tools-lang
%endif
%description tools
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
%package tools-lang
Summary: Safe desktop-wide storage for passwords
Group: System/GUI/KDE
Requires: %{name}-tools = %{version}
%description tools-lang
Provides translations to the package %{name}-tools-lang
%package devel
Summary: Safe desktop-wide storage for passwords
Group: Development/Libraries/KDE
Requires: %lname = %{version}
Requires: extra-cmake-modules
Requires: libkwalletbackend5-5 = %{version}
Requires: cmake(Qt5Gui) >= 5.6.0
# Was shortly present in K:F5
Obsoletes: kwallet-framework-devel <= %{version}
Provides: kwallet-framework-devel = %{version}
%description devel
This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE workspaces.
* The kwalletd used to safely store the passwords on KDE work spaces.
Development files.
%lang_package -n kwalletd5
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes %{buildroot}
%if %{with lang}
%find_lang kwalletd5 kwalletd5.lang
%find_lang kwallet-query kwallet-query.lang
%endif
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post -n libkwalletbackend5-5 -p /sbin/ldconfig
%postun -n libkwalletbackend5-5 -p /sbin/ldconfig
%if %{with lang}
%files -n kwalletd5-lang -f kwalletd5.lang
%files -n kwallet-tools-lang -f kwallet-query.lang
%endif
%files -n kwalletd5
%defattr(-,root,root)
%doc COPYING*
%{_kf5_bindir}/kwalletd5
%{_kf5_servicesdir}/kwalletd5.desktop
%{_kf5_notifydir}/
%{_kf5_sharedir}/dbus-1/services/org.kde.kwalletd5.service
%{_kf5_sharedir}/dbus-1/services/org.kde.kwalletd.service
%files -n %lname
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libKF5Wallet.so.*
%files -n libkwalletbackend5-5
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkwalletbackend5.so.*
%files tools
%defattr(-,root,root)
%{_kf5_bindir}/kwallet-query
%{_kf5_mandir}/man1/kwallet-query.1*
%files devel
%defattr(-,root,root)
%{_kf5_libdir}/libKF5Wallet.so
%{_kf5_libdir}/libkwalletbackend5.so
%{_kf5_libdir}/cmake/KF5Wallet/
%{_kf5_includedir}/*.h
%dir %{_kf5_includedir}/*/
%{_kf5_includedir}/*/
%{_kf5_mkspecsdir}/qt_KWallet.pri
%{_kf5_dbusinterfacesdir}/kf5_org.kde.KWallet.xml
%changelog