!2 Init Package for openEuler

From: @peijiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2023-04-25 08:26:45 +00:00 committed by Gitee
commit 3912a9ac51
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 87 additions and 0 deletions

87
kf5-ksmtp.spec Normal file
View File

@ -0,0 +1,87 @@
%global framework ksmtp
Name: kf5-%{framework}
Version: 22.12.0
Release: 1
Summary: KDE SMTP libraries
License: LGPLv2+
URL: https://invent.kde.org/frameworks/%{framework}/
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{framework}-%{version}.tar.xz
## upstream patches
## upstreamable patches
%global kf5_ver 5.29
BuildRequires: extra-cmake-modules >= %{kf5_ver}
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: qt5-qtbase-devel
BuildRequires: kf5-kmime-devel >= %{version}
BuildRequires: cmake(KF5Mime)
BuildRequires: pkgconfig(libsasl2)
# runtime sasl plugins
Suggests: cyrus-sasl-gssapi%{?_isa}
Recommends: cyrus-sasl-md5%{?_isa}
Requires: cyrus-sasl-plain%{?_isa}
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake(KF5CoreAddons)
Requires: cmake(KF5Mime)
Requires: kf5-kmime-devel >= %{version}
%description devel
%{summary}.
%prep
%autosetup -n %{framework}-%{version} -p1
%build
%cmake_kf5
%make_build
%install
%make_install
%find_lang %{name} --all-name --with-html
%ldconfig_scriptlets
%files -f %{name}.lang
%license LICENSES/*
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
%{_kf5_libdir}/libKPimSMTP.so.*
%files devel
%{_kf5_libdir}/libKPimSMTP.so
%{_kf5_libdir}/cmake/KPimSMTP/
%{_includedir}/KPim/
%{_kf5_archdatadir}/mkspecs/modules/qt_KSMTP.pri
%changelog
* Tue Apr 25 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1
- Init Package for openEuler

BIN
ksmtp-22.12.0.tar.xz Normal file

Binary file not shown.