117 lines
3.0 KiB
RPMSpec
117 lines
3.0 KiB
RPMSpec
%global framework kmailtransport
|
|
|
|
# uncomment to enable bootstrap mode
|
|
# global bootstrap 1
|
|
%if !0%{?bootstrap}
|
|
%global tests 1
|
|
%endif
|
|
|
|
Name: kf5-%{framework}
|
|
Version: 23.08.4
|
|
Release: 3
|
|
Summary: The KMailTransport Library
|
|
License: LGPLv2+
|
|
URL: https://invent.kde.org/frameworks/%{framework}
|
|
Source0: http://download.kde.org/stable/release-service/%{version}/src/%{framework}-%{version}.tar.xz
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
%global kf5_ver 5.71
|
|
BuildRequires: extra-cmake-modules >= %{kf5_ver}
|
|
BuildRequires: kf5-rpm-macros
|
|
BuildRequires: cmake(KF5ConfigWidgets)
|
|
BuildRequires: cmake(KF5DocTools)
|
|
BuildRequires: cmake(KF5I18n)
|
|
BuildRequires: cmake(KF5KCMUtils)
|
|
BuildRequires: cmake(KF5KIO)
|
|
BuildRequires: cmake(KF5Wallet)
|
|
|
|
#global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
|
%global majmin_ver %{version}
|
|
BuildRequires: kf5-kmime-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-akonadi-mime-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-ksmtp-devel >= %{majmin_ver}
|
|
BuildRequires: libkgapi-devel >= %{majmin_ver}
|
|
BuildRequires: cmake(KF5Akonadi)
|
|
BuildRequires: cmake(KF5AkonadiMime)
|
|
BuildRequires: cmake(KPim5Mime)
|
|
BuildRequires: cmake(KPim5SMTP)
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: cmake(Qt5Keychain)
|
|
|
|
%if 0%{?tests}
|
|
BuildRequires: dbus-x11
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
%endif
|
|
|
|
Conflicts: kdepimlibs-akonadi < 4.14.10-4
|
|
# kio/smtp.so moved here
|
|
Conflicts: kf5-akonadi < 16.07
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: kf5-kwallet-devel
|
|
Requires: kf5-kmime-devel
|
|
Requires: kf5-akonadi-mime-devel
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{framework}-%{version} -p1
|
|
|
|
%build
|
|
%{cmake_kf5}
|
|
%{cmake_build}
|
|
|
|
|
|
%install
|
|
%{cmake_install}
|
|
|
|
%find_lang %{name} --all-name --with-html
|
|
|
|
%check
|
|
%{ctest}
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files -f %{name}.lang
|
|
%license LICENSES/*
|
|
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
|
%{_kf5_libdir}/libKPim5MailTransport.so.*
|
|
%{_kf5_datadir}/config.kcfg/mailtransport.kcfg
|
|
%dir %{_kf5_qtplugindir}/pim5
|
|
%{_kf5_qtplugindir}/pim5/mailtransport/mailtransport_smtpplugin.so
|
|
|
|
|
|
%files devel
|
|
%{_includedir}/KPim5/MailTransport/
|
|
%{_kf5_libdir}/libKPim5MailTransport.so
|
|
%{_kf5_libdir}/cmake/KF5MailTransport/
|
|
%{_kf5_libdir}/cmake/KPim5MailTransport/
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KMailTransport.pri
|
|
|
|
%changelog
|
|
* Sun Nov 17 2024 ChenYanpan <chenyanpan@xfusion.com> - 23.08.4-3
|
|
- adapt to the new CMake macros to fix build failure
|
|
|
|
* Wed Jan 17 2024 peijiankang <peijiankang@kylinos.cn> - 23.08.4-2
|
|
- fix install error of kf5-kmailtransport-devel
|
|
|
|
* Tue Jan 16 2024 misaka00251 <liuxin@iscas.ac.cn> - 23.08.4-1
|
|
- Upgrade to 23.08.4
|
|
|
|
* Mon Aug 14 2023 huayadong <huayadong@kylinos.cn> - 23.04.3-1
|
|
- update to 23.04.3-1
|
|
|
|
* Mon Apr 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 22.12.0-1
|
|
- Package init
|