7 Star 0 Fork 2

src-openEuler/kronometer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kronometer.spec 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kronometer.git
git@gitee.com:src-openeuler/kronometer.git
src-openeuler
kronometer
kronometer
master

搜索帮助