1 Star 0 Fork 4

zhangxianjun/kate

forked from src-openEuler/kate 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kate.spec 5.99 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxianjun 提交于 2024-11-14 15:06 . update to 24.08.3
# trim changelog included in binary rpms
%global _changelog_trimtime %(date +%s -d "1 year ago")
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
# no tests for now
#global tests 1
%endif
Name: kate
Summary: Advanced Text Editor
Version: 24.08.3
Release: 1
License: LGPLv2 and LGPLv2+ and GPLv2+
URL: https://apps.kde.org/kate/
Source0: http://download.kde.org/stable/release-service/%{version}/src/kate-%{version}.tar.xz
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: pkgconfig(x11)
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5GuiAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5JobWidgets)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Parts)
BuildRequires: cmake(KF5SyntaxHighlighting)
BuildRequires: cmake(KF5TextEditor)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtscript-devel
BuildRequires: qt5-qtx11extras-devel
%if ! 0%{?bootstrap}
BuildRequires: cmake(KF5Activities)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5Plasma)
BuildRequires: cmake(KF5Service)
BuildRequires: cmake(KF5ItemModels)
BuildRequires: cmake(KF5ThreadWeaver)
BuildRequires: cmake(KF5NewStuff)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KUserFeedback)
%endif
%if 0%{?tests}
BuildRequires: make
BuildRequires: libappstream-glib
BuildRequires: xorg-x11-server-Xvfb
%endif
Requires: %{name}-libs = %{version}-%{release}
Recommends: %{name}-plugins%{?_isa} = %{version}-%{release}
Conflicts: kde-l10n < 17.03
%description
%{summary}.
# Split packages
%package libs
Summary: Private runtime libraries for %{name}
%description libs
%{summary}.
%package plugins
Summary: Kate plugins
License: LGPLv2
Obsoletes: kate < 14.12.1
Requires: %{name} = %{version}-%{release}
Recommends: konsole5
%description plugins
%{summary}.
%package -n kwrite
Summary: Text Editor
License: LGPLv2+
Conflicts: kde-l10n < 17.03
Requires: %{name}-libs = %{version}-%{release}
%description -n kwrite
%{summary}.
%prep
%autosetup -n kate-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-Wno-dev \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang all --all-name --with-html --with-man
grep plugin all.lang > plugins.lang
grep kwrite all.lang > kwrite.lang
cat all.lang plugins.lang kwrite.lang | sort | uniq -u > kate.lang
%check
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.kate.appdata.xml ||:
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.kate.desktop
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.kwrite.desktop
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif
%files -f kate.lang
%doc README.md
%license LICENSES/*
%{_kf5_bindir}/kate
%{_kf5_datadir}/applications/org.kde.kate.desktop
%{_kf5_datadir}/icons/hicolor/*/apps/kate.*
%{_kf5_datadir}/kconf_update/katesession_migration.upd
%{_kf5_datadir}/kconf_update/migrate_kate_sessions_applet_to_kdeplasma-addons.sh
%{_kf5_metainfodir}/org.kde.kate.appdata.xml
%{_kf5_qtplugindir}/ktexteditor/cmaketoolsplugin.so
%{_kf5_qtplugindir}/ktexteditor/eslintplugin.so
%{_kf5_qtplugindir}/ktexteditor/formatplugin.so
%{_mandir}/man1/kate.1*
%files libs
# Split packages
%{_kf5_libdir}/libkateprivate.so.%{version}
%files plugins -f plugins.lang
%{_kf5_datadir}/kateproject/
%{_kf5_datadir}/katexmltools/
%{_kf5_qtplugindir}/ktexteditor/compilerexplorer.so
%{_kf5_qtplugindir}/ktexteditor/externaltoolsplugin.so
%{_kf5_qtplugindir}/ktexteditor/katebacktracebrowserplugin.so
%{_kf5_qtplugindir}/ktexteditor/katebuildplugin.so
%{_kf5_qtplugindir}/ktexteditor/katecloseexceptplugin.so
%{_kf5_qtplugindir}/ktexteditor/katecolorpickerplugin.so
%{_kf5_qtplugindir}/ktexteditor/katectagsplugin.so
%{_kf5_qtplugindir}/ktexteditor/katefilebrowserplugin.so
%{_kf5_qtplugindir}/ktexteditor/katefiletreeplugin.so
%{_kf5_qtplugindir}/ktexteditor/kategdbplugin.so
%{_kf5_qtplugindir}/ktexteditor/kategitblameplugin.so
%{_kf5_qtplugindir}/ktexteditor/katekonsoleplugin.so
%{_kf5_qtplugindir}/ktexteditor/kateprojectplugin.so
%{_kf5_qtplugindir}/ktexteditor/katereplicodeplugin.so
%{_kf5_qtplugindir}/ktexteditor/katesearchplugin.so
%{_kf5_qtplugindir}/ktexteditor/katesnippetsplugin.so
%{_kf5_qtplugindir}/ktexteditor/katesqlplugin.so
%{_kf5_qtplugindir}/ktexteditor/katesymbolviewerplugin.so
%{_kf5_qtplugindir}/ktexteditor/katexmlcheckplugin.so
%{_kf5_qtplugindir}/ktexteditor/katexmltoolsplugin.so
%{_kf5_qtplugindir}/ktexteditor/keyboardmacrosplugin.so
%{_kf5_qtplugindir}/ktexteditor/ktexteditorpreviewplugin.so
%{_kf5_qtplugindir}/ktexteditor/latexcompletionplugin.so
%{_kf5_qtplugindir}/ktexteditor/lspclientplugin.so
%{_kf5_qtplugindir}/ktexteditor/rainbowparens.so
%{_kf5_qtplugindir}/ktexteditor/tabswitcherplugin.so
%{_kf5_qtplugindir}/ktexteditor/textfilterplugin.so
%{_kf5_qtplugindir}/ktexteditor/openlinkplugin.so
%files -n kwrite -f kwrite.lang
%{_kf5_bindir}/kwrite
%{_kf5_datadir}/applications/org.kde.kwrite.desktop
%{_kf5_datadir}/icons/hicolor/*/apps/kwrite.*
%{_kf5_metainfodir}/org.kde.kwrite.appdata.xml
%changelog
* Thu Nov 14 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 24.08.3-1
- update to version 24.08.3
* Mon Mar 18 2024 peijiankang <peijiankang@kylinos.cn> - 23.08.5-1
- update verison to 23.08.5
* Thu Feb 01 2024 misaka00251 <liuxin@iscas.ac.cn> - 23.08.4-1
- Upgrade to 23.08.4
* Mon Oct 16 2023 misaka00251 <liuxin@iscas.ac.cn> - 23.04.3-1
- Upgrade to 23.04.3 & Split libs
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 22.08.0-1
- Init package
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxianjun87/kate.git
git@gitee.com:zhangxianjun87/kate.git
zhangxianjun87
kate
kate
master

搜索帮助