代码拉取完成,页面将自动刷新
%global bootstrap 1
%if !0%{?bootstrap}
%global tests 1
%endif
%global framework sieveeditor
Name: pim-sieve-editor
Summary: Sieve Editor
Version: 23.08.5
Release: 2
License: GPLv2 and GFDL-1.2-or-later
URL: https://docs.kde.org/trunk5/en/pim/sieveeditor/
%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/%{name}-%{version}.tar.xz
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
BuildRequires: boost-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: perl-generators
BuildRequires: qt5-qtbase-devel
# kf5
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: cmake(KF5Bookmarks)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5TextAutoCorrectionCore)
BuildRequires: cmake(KF5TextAutoCorrectionWidgets)
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
BuildRequires: kf5-libksieve-devel >= %{majmin_ver}, cmake(KF5SyntaxHighlighting)
BuildRequires: kf5-kmailtransport-devel >= %{majmin_ver}
BuildRequires: kf5-messagelib-devel >= %{majmin_ver}
BuildRequires: kf5-pimcommon-devel >= %{majmin_ver}
BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver}
BuildRequires: cmake(KUserFeedback)
BuildRequires: cmake(Qt5Keychain)
%if 0%{?tests}
BuildRequires: dbus-x11
BuildRequires: xorg-x11-server-Xvfb
%endif
Conflicts: kmail < 16.12
%description
Sieve Editor is an editor for Sieve scripts used for email filtering
on a mail server.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%{cmake_kf5} \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
%cmake_build
%install
%cmake_install
%find_lang %{name} --all-name --with-html
%check
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.sieveeditor.desktop
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
dbus-launch --exit-with-session \
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif
%ldconfig_scriptlets
%files -f %{name}.lang
%license LICENSES/*
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
%{_kf5_bindir}/sieveeditor
%{_kf5_datadir}/applications/org.kde.sieveeditor.desktop
%{_kf5_metainfodir}/org.kde.sieveeditor.appdata.xml
%{_kf5_datadir}/config.kcfg/sieveeditorglobalconfig.kcfg
%{_kf5_libdir}/libsieveeditor.so.5*
%changelog
* Thu Nov 21 2024 tangjie02 <tangjie02@kylinsec.com.cn> - 23.08.5-2
- adapt to the new CMake macros to fix build failure
* Mon Mar 18 2024 peijiankang <peijiankang@kylinos.cn> - 23.08.5-1
- update verison to 23.08.5
* Fri Jan 12 2024 Tianze Li <litianze@uniontech.com> - 23.08.4-1
- Update to 23.08.4
* Mon Aug 28 2023 misaka00251 <liuxin@iscas.ac.cn> - 23.04.3-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。