File grantleetheme.spec of Package grantleetheme
#
# spec file for package grantleetheme
#
# 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
Name: grantleetheme
Version: 17.04.2
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: Base package of kdepim
License: GPL-2.0
Group: System/Libraries
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= 5.19.0
BuildRequires: grantlee5-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: knewstuff-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Network) >= 5.4.0
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the grantleetheme library.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%endif
%package -n libKF5GrantleeTheme5
Summary: GrantleeTheme library for kdepim
License: LGPL-2.1+
Group: System/Libraries
Requires: grantleetheme = %{version}
%description -n libKF5GrantleeTheme5
The GrantleeTheme library
%post -n libKF5GrantleeTheme5 -p /sbin/ldconfig
%postun -n libKF5GrantleeTheme5 -p /sbin/ldconfig
%package devel
Summary: Development package for grantleetheme
License: LGPL-2.1+
Group: Development/Libraries/KDE
Requires: libKF5GrantleeTheme5 = %{version}
%description devel
The development package for the grantleetheme libraries
%files devel
%defattr(-,root,root)
%{_includedir}/KF5/GrantleeTheme/
%{_includedir}/KF5/grantleetheme/
%{_includedir}/KF5/grantleetheme_version.h
%{_libdir}/cmake/KF5GrantleeTheme/
%{_libdir}/libKF5GrantleeTheme.so
%{_libdir}/qt5/mkspecs/modules/qt_GrantleeTheme.pri
%files
%defattr(-,root,root)
%config %{_kf5_configdir}/grantleetheme.categories
%config %{_kf5_configdir}/grantleetheme.renamecategories
%{_libdir}/grantlee/
%files -n libKF5GrantleeTheme5
%defattr(-,root,root)
%{_libdir}/libKF5GrantleeTheme.so.*
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING
%endif
%changelog