%bcond_without tests # disable shared libraries to avoid building libneovim-qt-gui.so # it's only needed for devel package which we're not providing %undefine _cmake_shared_libs Name: neovim-qt Version: 0.2.18 Release: 4%{?dist} Summary: Qt GUI for Neovim License: ISC URL: https://github.com/equalsraf/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(msgpack) BuildRequires: neovim %if %{with tests} BuildRequires: font(dejavusansmono) BuildRequires: xorg-x11-server-Xvfb %endif Requires: hicolor-icon-theme Requires: neovim %description %{summary}. %prep %autosetup -p1 %build %cmake \ -DUSE_SYSTEM_MSGPACK:BOOL=ON \ -DENABLE_TESTS:BOOL=%{?with_tests:ON}%{!?with_tests:OFF} %cmake_build %install %cmake_install %check desktop-file-validate %{buildroot}/%{_datadir}/applications/nvim-qt.desktop %if %{with tests} # UI component tests require running X server %global __ctest xvfb-run -a %{__ctest} %ctest %endif %files %license LICENSE %doc README.md %{_bindir}/nvim-qt %{_datadir}/applications/nvim-qt.desktop %{_datadir}/icons/hicolor/192x192/apps/nvim-qt.png %{_datadir}/icons/hicolor/scalable/apps/nvim-qt.svg %{_datadir}/nvim-qt/ %changelog * Thu Jul 18 2024 Fedora Release Engineering - 0.2.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.2.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.2.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Oct 22 2023 Aleksei Bavshin - 0.2.18-1 - Update to 0.2.18 * Thu Jul 20 2023 Fedora Release Engineering - 0.2.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.2.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 03 2022 Aleksei Bavshin - 0.2.17-1 - Update to 0.2.17 * Thu Jan 20 2022 Fedora Release Engineering - 0.2.16.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Aleksei Bavshin - 0.2.16.1-3 - Skip tests if neovim is build without luajit - Display ctest failure logs in %%check * Thu Jul 22 2021 Fedora Release Engineering - 0.2.16.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.2.16.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 07 2020 Aleksei Bavshin - 0.2.16.1-1 - Initial import (#1891160)