Blame akonadi-mime.spec

Bernhard M. Wiedemann f98c64
#
Bernhard M. Wiedemann f98c64
# spec file for package akonadi-mime
Bernhard M. Wiedemann f98c64
#
Bernhard M. Wiedemann d0e6e9
# Copyright (c) 2020 SUSE LLC
Bernhard M. Wiedemann f98c64
#
Bernhard M. Wiedemann f98c64
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann f98c64
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann f98c64
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann f98c64
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann f98c64
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann f98c64
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann f98c64
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann f98c64
# published by the Open Source Initiative.
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann f98c64
#
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%define sonum   5
Bernhard M. Wiedemann 033ad4
%define kf5_version 5.60.0
Bernhard M. Wiedemann f98c64
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
Bernhard M. Wiedemann f98c64
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Bernhard M. Wiedemann f98c64
%bcond_without lang
Bernhard M. Wiedemann f98c64
Name:           akonadi-mime
Bernhard M. Wiedemann 26ff18
Version:        19.12.3
Bernhard M. Wiedemann f98c64
Release:        0
Bernhard M. Wiedemann f98c64
Summary:        MIME email parser for KDE PIM
Bernhard M. Wiedemann f98c64
License:        LGPL-2.1-or-later
Bernhard M. Wiedemann f98c64
Group:          System/GUI/KDE
Bernhard M. Wiedemann f98c64
URL:            https://www.kde.org
Bernhard M. Wiedemann 033ad4
Source:         https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Bernhard M. Wiedemann f98c64
%if %{with lang}
Bernhard M. Wiedemann 033ad4
Source1:        https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Bernhard M. Wiedemann f98c64
Source2:        applications.keyring
Bernhard M. Wiedemann f98c64
%endif
Bernhard M. Wiedemann f98c64
BuildRequires:  extra-cmake-modules >= %{kf5_version}
Bernhard M. Wiedemann f98c64
BuildRequires:  kf5-filesystem
Bernhard M. Wiedemann f98c64
BuildRequires:  libxslt-devel
Bernhard M. Wiedemann f98c64
BuildRequires:  shared-mime-info
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5Akonadi)
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5Config) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5DBusAddons) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5I18n) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5ItemModels) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5KIO) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5Mime)
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(KF5XmlGui) >= %{kf5_version}
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(Qt5Test) >= 5.6.0
Bernhard M. Wiedemann 033ad4
BuildRequires:  cmake(Qt5Widgets) >= 5.6.0
Bernhard M. Wiedemann f98c64
Recommends:     %{name}-lang
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%description
Bernhard M. Wiedemann f98c64
This package provides libraries needed for the correct parsing of email messages.
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%package -n libKF5AkonadiMime5
Bernhard M. Wiedemann f98c64
Summary:        MIME email parser for KDE PIM - core library
Bernhard M. Wiedemann f98c64
Group:          System/Libraries
Bernhard M. Wiedemann f98c64
Requires:       %{name} >= %{version}
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%description  -n libKF5AkonadiMime5
Bernhard M. Wiedemann f98c64
This package contains the core libraries needed for the correct parsing of email messages.
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%package -n akonadi-plugin-mime
Bernhard M. Wiedemann f98c64
Summary:        MIME email parser for KDE PIM - runtime plugins
Bernhard M. Wiedemann f98c64
Group:          System/Libraries
Bernhard M. Wiedemann f98c64
Requires:       libKF5AkonadiMime5 >= %{version}
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%description -n akonadi-plugin-mime
Bernhard M. Wiedemann f98c64
This package provides plugins required by PIM applications read and write parsed email data.
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%package devel
Bernhard M. Wiedemann f98c64
Summary:        MIME email parser for KDE PIM - development files
Bernhard M. Wiedemann f98c64
Group:          Development/Libraries/KDE
Bernhard M. Wiedemann f98c64
Requires:       libKF5AkonadiMime5 = %{version}
Bernhard M. Wiedemann 033ad4
Requires:       cmake(KF5Akonadi)
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%description devel
Bernhard M. Wiedemann f98c64
This package contains development headers needed to use MIME message parsing
Bernhard M. Wiedemann f98c64
in KDE PIM applications.
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%lang_package
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%prep
Bernhard M. Wiedemann f98c64
%setup -q -n akonadi-mime-%{version}
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%build
Bernhard M. Wiedemann f98c64
%cmake_kf5 -d build -- -DKF5_INCLUDE_INSTALL_DIR=%{_kf5_includedir}
Bernhard M. Wiedemann fbb607
%cmake_build
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%install
Bernhard M. Wiedemann f98c64
  %kf5_makeinstall -C build
Bernhard M. Wiedemann f98c64
  %if %{with lang}
Bernhard M. Wiedemann f98c64
    %find_lang %{name} --with-man --all-name
Bernhard M. Wiedemann f98c64
  %endif
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%post -n libKF5AkonadiMime5 -p /sbin/ldconfig
Bernhard M. Wiedemann f98c64
%postun -n libKF5AkonadiMime5 -p /sbin/ldconfig
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%files -n libKF5AkonadiMime5
Bernhard M. Wiedemann f98c64
%license COPYING*
Bernhard M. Wiedemann f98c64
%{_kf5_libdir}/libKF5AkonadiMime.so.*
Bernhard M. Wiedemann f98c64
%{_kf5_debugdir}/*.categories
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%files
Bernhard M. Wiedemann f98c64
%license COPYING*
Bernhard M. Wiedemann f98c64
%dir %{_kf5_configkcfgdir}
Bernhard M. Wiedemann f98c64
%{_kf5_configkcfgdir}/specialmailcollections.kcfg
Bernhard M. Wiedemann f98c64
%{_kf5_mkspecsdir}/qt_AkonadiMime.pri
Bernhard M. Wiedemann f98c64
%{_kf5_sharedir}/mime/packages/x-vnd.kde.contactgroup.xml
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%files -n akonadi-plugin-mime
Bernhard M. Wiedemann f98c64
%{_kf5_plugindir}/akonadi_serializer_mail.so
Bernhard M. Wiedemann f98c64
%dir %{_kf5_sharedir}/akonadi
Bernhard M. Wiedemann f98c64
%dir %{_kf5_sharedir}/akonadi/plugins
Bernhard M. Wiedemann f98c64
%dir %{_kf5_sharedir}/akonadi/plugins/serializer
Bernhard M. Wiedemann f98c64
%{_kf5_sharedir}/akonadi/plugins/serializer/akonadi_serializer_mail.desktop
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%files devel
Bernhard M. Wiedemann f98c64
%license COPYING*
Bernhard M. Wiedemann f98c64
%dir %{_kf5_includedir}/Akonadi
Bernhard M. Wiedemann f98c64
%dir %{_kf5_includedir}/akonadi
Bernhard M. Wiedemann f98c64
%{_kf5_includedir}/Akonadi/KMime/
Bernhard M. Wiedemann f98c64
%{_kf5_includedir}/akonadi-mime_version.h
Bernhard M. Wiedemann f98c64
%{_kf5_includedir}/akonadi/kmime/
Bernhard M. Wiedemann f98c64
%{_kf5_cmakedir}/KF5AkonadiMime/
Bernhard M. Wiedemann f98c64
%{_kf5_libdir}/libKF5AkonadiMime.so
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%if %{with lang}
Bernhard M. Wiedemann f98c64
%files lang -f %{name}.lang
Bernhard M. Wiedemann f98c64
%license COPYING*
Bernhard M. Wiedemann f98c64
%endif
Bernhard M. Wiedemann f98c64
Bernhard M. Wiedemann f98c64
%changelog