代码拉取完成,页面将自动刷新
Name: kronometer
Summary: A stopwatch application by KDE
Version: 2.3.0
Release: 2
License: GPL-2.0-or-later AND CC0-1.0
URL: https://userbase.kde.org/Kronometer
Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires: desktop-file-utils
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: gnupg2
BuildRequires: libappstream-glib
BuildRequires: qt5-qtbase-devel
# kf5
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5XmlGui)
Requires: kde-filesystem
Requires: hicolor-icon-theme
%description
Kronometer is a stopwatch application.
%prep
%autosetup -p1
%build
%{cmake_kf5} \
-DBUILD_TESTING:BOOL=ON
%cmake_build
%install
%cmake_install
%find_lang %{name} --all-name --with-html --with-man
zcat %{buildroot}%{_kf5_datadir}/icons/hicolor/scalable/apps/kronometer.svgz > %{buildroot}%{_kf5_datadir}/icons/hicolor/scalable/apps/kronometer.svg
rm %{buildroot}%{_kf5_datadir}/icons/hicolor/scalable/apps/kronometer.svgz
%check
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml
export QT_QPA_PLATFORM=offscreen
ctest --extra-verbose
%files -f %{name}.lang
%license LICENSES/GPL-2.0-or-later.txt LICENSES/CC0-1.0.txt
%{_kf5_datadir}/applications/org.kde.kronometer.desktop
%{_kf5_bindir}/kronometer
%{_kf5_datadir}/config.kcfg/kronometer.kcfg
%{_kf5_metainfodir}/org.kde.kronometer.appdata.xml
%{_kf5_datadir}/icons/hicolor/*/apps/kronometer.*
%{_mandir}/man1/kronometer.1*
%changelog
* Thu Nov 21 2024 tangjie02 <tangjie02@kylinsec.com.cn> - 2.3.0-2
- adapt to the new CMake macros to fix build failure
* Thu Jan 04 2024 misaka00251 <liuxin@iscas.ac.cn> - 2.3.0-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。