File grantleetheme.spec of Package grantleetheme

# spec file for package grantleetheme
# Copyright (c) 2020 SUSE LLC
# 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

%define kf5_version 5.60.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name:           grantleetheme
Version:        20.04.2
Release:        0
Summary:        Grantlee theme support
License:        GPL-2.0-only
Group:          System/Libraries
BuildRequires:  extra-cmake-modules >= 5.19.0
BuildRequires:  kf5-filesystem
BuildRequires:  cmake(Grantlee5)
BuildRequires:  cmake(KF5GuiAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5NewStuff)
BuildRequires:  cmake(Qt5Network) >= 5.4.0
BuildRequires:  cmake(Qt5Test) >= 5.4.0
BuildRequires:  cmake(Qt5Widgets) >= 5.4.0
%if %{with lang}
Source2:        applications.keyring
%if %{with lang}
%requires_eq    grantlee5
Recommends:     %{name}-lang

the grantleetheme library adds Grantlee theme support for PIM applications.

%if %{with lang}

%setup -q

%cmake_kf5 -d build


%kf5_makeinstall -C build
%if %{with lang}
  %find_lang %{name} --with-man --all-name

%package -n libKF5GrantleeTheme5
Summary:        GrantleeTheme library for kdepim
License:        LGPL-2.1-or-later
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-or-later
Group:          Development/Libraries/KDE
Requires:       libKF5GrantleeTheme5 = %{version}

%description devel
The development package for the grantleetheme library

%files devel
%license COPYING*

%license COPYING*

%files -n libKF5GrantleeTheme5

%if %{with lang}
%files lang -f %{name}.lang
%license COPYING

openSUSE Build Service is sponsored by