File kpkpass.spec of Package kpkpass
#
# spec file for package kpkpass
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: kpkpass
Version: 18.12.3
Release: 0
Summary: Library to parse Passbook files
License: LGPL-2.1-or-later
Group: System/GUI/KDE
URL: http://www.kde.org
Source0: http://download.kde.org/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= 1.0.0
BuildRequires: karchive-devel
BuildRequires: kf5-filesystem
BuildRequires: shared-mime-info
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Test)
%description
kpkpass is a library to read and parse Apple Passbook files, such as the ones
commonly used for hotel and flight reservations.
%package -n libKPimPkPass5
Summary: Library to parse Passbook files
Group: System/GUI/KDE
Requires: %{name}
%description -n libKPimPkPass5
kpkpass is a library to read and parse Apple Passbook files, such as the ones
commonly used for hotel and flight reservations. This package contains the
library itself.
%package devel
Summary: Development files for kpkpass
Group: Development/Libraries/KDE
Requires: karchive-devel
Requires: libKPimPkPass5 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to build programs that use the kpkpass library.
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -n libKPimPkPass5 -p /sbin/ldconfig
%postun -n libKPimPkPass5 -p /sbin/ldconfig
%files -n libKPimPkPass5
%license COPYING.LIB
%{_kf5_libdir}/libKPimPkPass.so.*
%files
%{_datadir}/mime/packages/application-vnd-apple-pkpass.xml
%files devel
%dir %{_includedir}/KPim/
%{_includedir}/KPim/KPkPass/
%{_kf5_cmakedir}/KPimPkPass/
%{_kf5_libdir}/libKPimPkPass.so
%{_kf5_debugdir}/*.categories
%changelog