Blame akonadi-notes.spec

Bernhard M. Wiedemann b4627f
#
Bernhard M. Wiedemann b4627f
# spec file for package akonadi-notes
Bernhard M. Wiedemann b4627f
#
bbc293
# Copyright (c) 2021 SUSE LLC
Bernhard M. Wiedemann b4627f
#
Bernhard M. Wiedemann b4627f
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann b4627f
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann b4627f
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann b4627f
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann b4627f
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann b4627f
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann b4627f
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann b4627f
# published by the Open Source Initiative.
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann b4627f
#
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
6340e8
%define kf5_version 5.79.0
Bernhard M. Wiedemann b4627f
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
Bernhard M. Wiedemann b4627f
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
87bed5
%bcond_without released
Bernhard M. Wiedemann b4627f
Name:           akonadi-notes
509c5d
Version:        22.08.3
Bernhard M. Wiedemann b4627f
Release:        0
Bernhard M. Wiedemann b4627f
Summary:        Library to implement management of notes in Akonadi
Bernhard M. Wiedemann b4627f
License:        LGPL-2.1-or-later
Bernhard M. Wiedemann b4627f
Group:          System/GUI/KDE
Bernhard M. Wiedemann b4627f
URL:            https://www.kde.org
Bernhard M. Wiedemann ae7fd4
Source:         https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
87bed5
%if %{with released}
6340e8
Source1:        https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
6340e8
Source2:        applications.keyring
6340e8
%endif
Bernhard M. Wiedemann b4627f
BuildRequires:  extra-cmake-modules >= %{kf5_version}
Bernhard M. Wiedemann b4627f
BuildRequires:  kf5-filesystem
Bernhard M. Wiedemann ae7fd4
BuildRequires:  cmake(KF5Akonadi)
Bernhard M. Wiedemann ae7fd4
BuildRequires:  cmake(KF5I18n) >= %{kf5_version}
Bernhard M. Wiedemann ae7fd4
BuildRequires:  cmake(KF5Mime)
9cd52c
BuildRequires:  cmake(Qt5Test) >= 5.15.0
9cd52c
BuildRequires:  cmake(Qt5Xml) >= 5.15.0
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%description
Bernhard M. Wiedemann b4627f
Akonadi Notes is a library that bridges the type-agnostic API of
Bernhard M. Wiedemann b4627f
the Akonadi client libraries and the domain-specific KMime library. It provides
Bernhard M. Wiedemann b4627f
a helper class for note attachments and for wrapping notes into KMime::Message
Bernhard M. Wiedemann b4627f
objects.
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%package -n libKF5AkonadiNotes5
Bernhard M. Wiedemann b4627f
Summary:        Library to implement management of notes in Akonadi
Bernhard M. Wiedemann b4627f
Group:          System/Libraries
Bernhard M. Wiedemann b4627f
Recommends:     %{name}-lang
Bernhard M. Wiedemann b4627f
Provides:       %{name} = %{version}
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%description  -n libKF5AkonadiNotes5
Bernhard M. Wiedemann b4627f
Akonadi Notes is a library that bridges the type-agnostic API of
Bernhard M. Wiedemann b4627f
the Akonadi client libraries and the domain-specific KMime library. It provides
Bernhard M. Wiedemann b4627f
a helper class for note attachments and for wrapping notes into KMime::Message
Bernhard M. Wiedemann b4627f
objects.
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%package devel
Bernhard M. Wiedemann b4627f
Summary:        Build environment for akonadi-notes
Bernhard M. Wiedemann b4627f
Group:          Development/Libraries/KDE
Bernhard M. Wiedemann b4627f
Requires:       libKF5AkonadiNotes5 = %{version}
Bernhard M. Wiedemann ae7fd4
Requires:       cmake(KF5Mime)
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%description devel
Bernhard M. Wiedemann b4627f
This package contains the development files needed to use the akonadi-notes
Bernhard M. Wiedemann b4627f
library in other applications.
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%lang_package
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%prep
6340e8
%autosetup -p1 -n akonadi-notes-%{version}
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%build
Bernhard M. Wiedemann b4627f
%cmake_kf5 -d build -- -DKF5_INCLUDE_INSTALL_DIR=%{_kf5_includedir}
Bernhard M. Wiedemann 02366c
%cmake_build
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%install
Bernhard M. Wiedemann b4627f
  %kf5_makeinstall -C build
87bed5
  %if %{with released}
Bernhard M. Wiedemann b4627f
    %find_lang %{name} --with-man --all-name
Bernhard M. Wiedemann b4627f
  %endif
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%post -n libKF5AkonadiNotes5 -p /sbin/ldconfig
Bernhard M. Wiedemann b4627f
%postun -n libKF5AkonadiNotes5 -p /sbin/ldconfig
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%files -n libKF5AkonadiNotes5
Bernhard M. Wiedemann c249ac
%license LICENSES/*
Bernhard M. Wiedemann b4627f
%{_kf5_libdir}/libKF5AkonadiNotes.so.*
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%files devel
6340e8
%{_kf5_cmakedir}/KF5AkonadiNotes/
dbe783
%{_kf5_includedir}/AkonadiNotes/
Bernhard M. Wiedemann b4627f
%{_kf5_libdir}/libKF5AkonadiNotes.so
Bernhard M. Wiedemann b4627f
%{_kf5_mkspecsdir}/qt_AkonadiNotes.pri
Bernhard M. Wiedemann b4627f
87bed5
%if %{with released}
Bernhard M. Wiedemann b4627f
%files lang -f %{name}.lang
Bernhard M. Wiedemann b4627f
%endif
Bernhard M. Wiedemann b4627f
Bernhard M. Wiedemann b4627f
%changelog