Name: cpeditor Version: 6.10.3 Release: %autorelease Summary: The Missing Editor for Competitive Programmers License: GPL-3.0-only URL: https://cpeditor.org/ Source0: https://github.com/cpeditor/cpeditor/releases/download/%{version}/cpeditor-%{version}-full-source.tar.gz # Use GNUInstallDirs; install translation files Patch0: https://github.com/cpeditor/cpeditor/pull/1276.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: python3-devel BuildRequires: cmake(KF5SyntaxHighlighting) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme Provides: bundled(singleapplication) Provides: bundled(QtFindReplaceDialog) Provides: bundled(lsp-cpp) Provides: bundled(qhttp) Provides: bundled(diff_match_patch) %description CP Editor is designed for competitive programming. It helps you focus on your algorithms and automates compilation, execution and testing of your code. It can fetch test cases from different platforms and submit solutions to Codeforces. %prep %autosetup -p1 -n cpeditor-%{version}-full-source %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ %cmake_build %install %cmake_install %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.xml %files %license %doc README.md %{_bindir}/cpeditor %{_datadir}/applications/cpeditor.desktop %{_datadir}/icons/hicolor/512x512/apps/cpeditor.png %{_datadir}/metainfo/cpeditor.appdata.xml %dir %{_datadir}/cpeditor %{_datadir}/cpeditor/translations/ %changelog %autochangelog