mailimporter/mailimporter.spec

155 lines
4.8 KiB
RPMSpec

#
# spec file for package mailimporter
#
# 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/
#
%define kf5_version 5.26.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: mailimporter
Version: 19.08.2
Release: 0
Summary: Mail import functionality for KDE PIM
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.kde.org
Source: https://download.kde.org/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
%if %{with lang}
Source1: https://download.kde.org/stable/applications/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
BuildRequires: akonadi-contact-devel
BuildRequires: akonadi-mime-devel
BuildRequires: akonadi-server-devel
BuildRequires: extra-cmake-modules
BuildRequires: karchive-devel
BuildRequires: kcalcore-devel
BuildRequires: kconfig-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kmime-devel
BuildRequires: libkdepim-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
BuildRequires: pkgconfig(Qt5UiTools) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires: pkgconfig(Qt5Xml) >= 5.4.0
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mips mips64
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%if %{with lang}
Recommends: %{name}-lang
%endif
%description
The mailimporter library is a KDE PIM project to provide a framework
for importing mail from different formats into Mail User Agents such as
KMail or Kontact.
%package devel
Summary: Development package for mailimporter
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Requires: libKF5MailImporter5 = %{version}
Requires: libKF5MailImporterAkonadi5 = %{version}
%description devel
This package provides the development headers of the mailimporter library.
%package -n libKF5MailImporter5
Summary: MailImporter library for kdepim
License: LGPL-2.1-or-later
Group: System/Libraries
Requires: %{name} >= %{version}
%description -n libKF5MailImporter5
This package provides the mailimporter library, used by KDE PIM applications
to import data from other mail formats (such as mbox, Maildir...).
%package -n libKF5MailImporterAkonadi5
Summary: MailImporter Akonadi based library for kdepim
License: LGPL-2.1-or-later
Group: System/Libraries
Requires: %{name} >= %{version}
%description -n libKF5MailImporterAkonadi5
This package provides the mailimporter library for Akonadi based functions,
used by KDE PIM applications to import data from other mail formats
(such as mbox, Maildir...).
%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
%post -n libKF5MailImporter5 -p /sbin/ldconfig
%postun -n libKF5MailImporter5 -p /sbin/ldconfig
%post -n libKF5MailImporterAkonadi5 -p /sbin/ldconfig
%postun -n libKF5MailImporterAkonadi5 -p /sbin/ldconfig
%files devel
%license COPYING*
%{_kf5_cmakedir}/KF5MailImporter/
%{_kf5_cmakedir}/KF5MailImporterAkonadi/
%{_kf5_includedir}/MailImporter/
%{_kf5_includedir}/MailImporterAkonadi/
%{_kf5_includedir}/mailimporter/
%{_kf5_includedir}/mailimporter_version.h
%{_kf5_includedir}/mailimporterakonadi/
%{_kf5_includedir}/mailimporterakonadi_version.h
%{_kf5_libdir}/libKF5MailImporter.so
%{_kf5_libdir}/libKF5MailImporterAkonadi.so
%{_kf5_mkspecsdir}/qt_MailImporter.pri
%{_kf5_mkspecsdir}/qt_MailImporterAkonadi.pri
%files -n libKF5MailImporter5
%license COPYING*
%{_kf5_libdir}/libKF5MailImporter.so.*
%files -n libKF5MailImporterAkonadi5
%license COPYING*
%{_kf5_libdir}/libKF5MailImporterAkonadi.so.*
%files
%license COPYING*
%{_kf5_debugdir}/mailimporter.categories
%{_kf5_debugdir}/mailimporter.renamecategories
%if %{with lang}
%files lang -f %{name}.lang
%license COPYING*
%endif
%changelog