2015-08-07 08:32:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package kimap
|
|
|
|
#
|
2021-01-06 14:51:43 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-08-07 08:32:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-12 08:45:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-07 08:32:27 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-04-19 13:30:59 +00:00
|
|
|
%define kf5_version 5.79.0
|
2017-08-11 22:56:39 +00:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 13:35:01 +00:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2018-11-24 23:44:48 +00:00
|
|
|
%bcond_without lang
|
|
|
|
Name: kimap
|
2021-05-13 08:56:12 +00:00
|
|
|
Version: 21.04.1
|
2018-11-24 23:44:48 +00:00
|
|
|
Release: 0
|
2015-08-07 08:32:27 +00:00
|
|
|
Summary: KDE PIM Libraries: IMAP library
|
2018-03-10 12:10:58 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2015-08-07 08:32:27 +00:00
|
|
|
Group: System/GUI/KDE
|
2019-08-15 14:00:43 +00:00
|
|
|
URL: https://www.kde.org
|
2021-04-19 13:30:59 +00:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
%if %{with lang}
|
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2015-08-07 08:32:27 +00:00
|
|
|
BuildRequires: cyrus-sasl-devel
|
2016-07-20 12:35:15 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= 5.19.0
|
2015-08-07 08:32:27 +00:00
|
|
|
BuildRequires: kf5-filesystem
|
2019-11-29 11:39:43 +00:00
|
|
|
BuildRequires: cmake(KF5CoreAddons) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5I18n) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5KIO) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Mime)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%description
|
2018-04-10 13:20:22 +00:00
|
|
|
KIMAP provides libraries to interface and communicate with
|
|
|
|
IMAP mail servers.
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%package -n libKF5IMAP5
|
|
|
|
Summary: KDE PIM Libraries: IMAP APIs
|
|
|
|
Group: Development/Libraries/KDE
|
2017-08-22 15:51:37 +00:00
|
|
|
Recommends: %{name}-lang
|
2017-08-22 15:40:02 +00:00
|
|
|
Provides: %{name} = %{version}
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%description -n libKF5IMAP5
|
2018-04-10 13:20:22 +00:00
|
|
|
This package provides the core library to interface and communicate with
|
|
|
|
IMAP mail servers.
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: KDE PIM Libraries: Build Environment
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: cyrus-sasl-devel
|
2016-02-13 12:12:21 +00:00
|
|
|
Requires: libKF5IMAP5 = %{version}
|
2019-11-29 11:39:43 +00:00
|
|
|
Requires: cmake(KF5CoreAddons) >= %{kf5_version}
|
|
|
|
Requires: cmake(KF5Mime)
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%description devel
|
2018-04-10 13:20:22 +00:00
|
|
|
This package contains development headers to add IMAP support to PIM
|
|
|
|
applications.
|
2015-08-07 08:32:27 +00:00
|
|
|
|
2017-08-22 15:51:37 +00:00
|
|
|
%lang_package
|
2017-04-15 13:28:23 +00:00
|
|
|
|
2015-08-07 08:32:27 +00:00
|
|
|
%prep
|
2021-04-19 13:30:59 +00:00
|
|
|
%autosetup -p1 -n kimap-%{version}
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%build
|
2019-05-30 10:15:35 +00:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2016-12-03 15:10:10 +00:00
|
|
|
%cmake_kf5 -d build -- -DBUILD_TESTING=ON -DKF5_INCLUDE_INSTALL_DIR=%{_kf5_includedir}
|
2020-02-07 08:43:43 +00:00
|
|
|
%cmake_build
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 13:28:23 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%endif
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%post -n libKF5IMAP5 -p /sbin/ldconfig
|
|
|
|
%postun -n libKF5IMAP5 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libKF5IMAP5
|
2020-07-22 19:32:14 +00:00
|
|
|
%license LICENSES/*
|
2018-04-10 13:20:22 +00:00
|
|
|
%{_kf5_debugdir}/*.categories
|
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2021-04-19 13:30:59 +00:00
|
|
|
%{_kf5_libdir}/libKF5IMAP.so.*
|
2015-08-07 08:32:27 +00:00
|
|
|
|
|
|
|
%files devel
|
2020-07-22 19:32:14 +00:00
|
|
|
%license LICENSES/*
|
2017-08-11 22:56:39 +00:00
|
|
|
%{_kf5_cmakedir}/KF5IMAP/
|
2015-08-07 08:32:27 +00:00
|
|
|
%{_kf5_includedir}/KIMAP/
|
2017-08-11 22:56:39 +00:00
|
|
|
%{_kf5_includedir}/kimap_version.h
|
2015-08-07 08:32:27 +00:00
|
|
|
%{_kf5_includedir}/kimaptest/
|
2017-08-11 22:56:39 +00:00
|
|
|
%{_kf5_libdir}/libKF5IMAP.so
|
2015-08-07 08:32:27 +00:00
|
|
|
%{_kf5_libdir}/libkimaptest.a
|
|
|
|
%{_kf5_mkspecsdir}/qt_KIMAP.pri
|
|
|
|
|
2017-04-15 13:28:23 +00:00
|
|
|
%if %{with lang}
|
2017-08-22 15:51:37 +00:00
|
|
|
%files lang -f %{name}.lang
|
2020-07-22 19:32:14 +00:00
|
|
|
%license LICENSES/*
|
2017-04-15 13:28:23 +00:00
|
|
|
%endif
|
|
|
|
|
2015-08-07 08:32:27 +00:00
|
|
|
%changelog
|