## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://gitlab.com/%{name}/%{name} %global tag v%{version} # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %undefine __cmake_in_source_build %global uuid org.%{name}.%{name} Name: corectrl Version: 1.3.10 %forgemeta Release: %autorelease Summary: Friendly hardware control # The entire source code is GPLv3+ except bundled libs: # * Boost: tests/3rdparty/catch # tests/3rdparty/trompeloeil # * MIT: 3rdparty/units # * Public Domain: FindBotan.cmake License: GPLv3+ and Boost and MIT and Public Domain URL: %{forgeurl} Source0: %{forgesource} Source1: README.fedora.md BuildRequires: cmake >= 3.3 BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ >= 8 BuildRequires: libappstream-glib BuildRequires: libdrm-devel BuildRequires: ninja-build BuildRequires: cmake(fmt) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(pugixml) BuildRequires: cmake(Qt5Charts) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5Core) >= 5.9 BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5Multimedia) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5Widgets) BuildRequires: pkgconfig(botan-2) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(easyloggingpp) BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(quazip1-qt5) BuildRequires: pkgconfig(x11) Requires: dbus-common Requires: hicolor-icon-theme Requires: polkit%{?_isa} Requires: qca-qt5-ossl%{?_isa} Requires: qt5-qtquickcontrols2%{?_isa} # Used to gather more information # * For glxinfo Recommends: mesa-demos%{?_isa} # * For lscpu Recommends: util-linux%{?_isa} # * For vulkaninfo Recommends: vulkan-tools%{?_isa} # https://gitlab.com/corectrl/corectrl/issues/13 Provides: bundled(units) %description CoreCtrl is a Free and Open Source GNU/Linux application that allows you to control with ease your computer hardware using application profiles. It aims to be flexible, comfortable and accessible to regular users. - For setup instructions run: $ xdg-open %{_docdir}/%{name}/README.fedora.md - or go to the project wiki: https://gitlab.com/corectrl/corectrl/wikis %prep %forgeautosetup -p1 # Unbundle 3rdparty pushd 3rdparty rm -rf \ easyloggingpp \ fmt \ pugixml \ %{nil} popd # lib soversion fix echo "set_property(TARGET corectrl_lib PROPERTY SOVERSION 0)" >> src/CMakeLists.txt %build %cmake \ -G Ninja \ -DBUILD_TESTING=ON \ %{nil} %ninja_build -C %{_vpath_builddir} %install %ninja_install -C %{_vpath_builddir} install -Dpm 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README.fedora.md find README.md -type f -perm /111 -exec chmod 644 {} \; find %{buildroot}/%{_datadir}/. -type f -executable -exec chmod -x "{}" \; # Useless symlink without headers rm %{buildroot}/%{_libdir}/libcorectrl.so %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files %license COPYING LICENSE %doc README.md README.fedora.md %{_bindir}/%{name} %{_datadir}/applications/*.desktop %{_datadir}/dbus-1/system-services/*.service %{_datadir}/dbus-1/system.d/*.conf %{_datadir}/icons/hicolor/*/*/*.svg %{_datadir}/polkit-1/actions/*.policy %{_libdir}/libcorectrl.so.0* %{_libexecdir}/%{name}/%{name}_helper %{_libexecdir}/%{name}/%{name}_helperkiller %{_metainfodir}/*.xml %changelog * Sun Feb 04 2024 Packit - 1.3.10-1 - [packit] 1.3.10 upstream release - Resolves rhbz#2262680 * Wed Jan 24 2024 Fedora Release Engineering - 1.3.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.3.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 14 2024 Artem Polishchuk - 1.3.9-2 - packit: Update config * Sun Jan 14 2024 Packit - 1.3.9-1 - [packit] 1.3.9 upstream release - Resolves rhbz#2258338 * Sun Nov 05 2023 Packit - 1.3.8-1 - [packit] 1.3.8 upstream release - Resolves rhbz#2248034 * Wed Nov 01 2023 Packit - 1.3.7-1 - [packit] 1.3.7 upstream release - Resolves rhbz#2247492 * Mon Oct 16 2023 Artem Polishchuk - 1.3.6-1 - [packit] 1.3.6 upstream release * Mon Oct 16 2023 Artem Polishchuk - 1.3.5-8 - build(packit): Fix project URL * Mon Oct 16 2023 Artem Polishchuk - 1.3.5-7 - build: Add Packit config * Mon Oct 16 2023 Artem Polishchuk - 1.3.5-6 - build: Use forge macros * Wed Jul 19 2023 Fedora Release Engineering - 1.3.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Vitaly Zaitsev - 1.3.5-4 - Rebuilt due to fmt 10 update. * Fri May 05 2023 Nicolas Chauvet - 1.3.5-3 - Rebuild for quazip 1.4 * Mon Apr 03 2023 Artem Polishchuk - 1.3.5-2 - Revert "build: Switch to commit in autosetup due weird GitLab changes" * Mon Apr 03 2023 Artem Polishchuk - 1.3.5-1 - chore: Update to 1.3.5 * Tue Mar 28 2023 Artem Polishchuk - 1.3.4-2 - build: Switch to commit in autosetup due weird GitLab changes * Tue Mar 28 2023 Artem Polishchuk - 1.3.4-1 - build: Update to 1.3.4 * Mon Feb 20 2023 Artem Polishchuk - 1.3.2-2 - fix: Drop BSD license due unbundled 3rdparty modules * Sun Feb 19 2023 Artem Polishchuk - 1.3.2-1 - build: Update to 1.3.2 * Thu Jan 19 2023 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Nov 24 2022 Artem Polishchuk - 1.3.1-2 - build: ExcludeArch: %%{ix86} * Sat Oct 08 2022 Artem Polishchuk - 1.3.1-1 - build(update): 1.3.1 * Sun Sep 18 2022 Artem Polishchuk - 1.3.0-1 - chore(update): 1.3.0 * Thu Aug 11 2022 Artem Polishchuk - 1.2.7-1 - chore(update): 1.2.7 * Sun Aug 07 2022 Artem Polishchuk - 1.2.6-1 - chore(update): 1.2.6 * Wed Aug 03 2022 Artem Polishchuk - 1.2.5-1 - chore(update): 1.2.5 * Wed Jul 20 2022 Fedora Release Engineering - 1.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Feb 23 2022 Artem Polishchuk - 1.2.3-1 - chore(update): 1.2.3 * Wed Feb 16 2022 Artem Polishchuk - 1.2.2-3 - build(rebuild): 'botan2' soname bump * Wed Jan 19 2022 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 14 2021 Artem Polishchuk - 1.2.2-1 - chore(update): 1.2.2 * Sun Sep 19 2021 Artem Polishchuk - 1.2.1-1 - build(update): 1.2.1 * Tue Sep 07 2021 Artem Polishchuk - 1.2.0-1 - build(update): 1.2.0 * Mon Aug 23 2021 Artem Polishchuk - 1.1.5-1 - build(update): 1.1.5 * Wed Jul 28 2021 Artem Polishchuk - 1.1.4-1 - build(update): 1.1.4 * Wed Jul 21 2021 Fedora Release Engineering - 1.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 09 2021 Artem Polishchuk - 1.1.3-1 - build(update): 1.1.3 * Mon May 03 2021 Artem Polishchuk - 1.1.2-2 - fix: Tests compilation with newer glibc * Sun May 02 2021 Artem Polishchuk - 1.1.2-1 - build(update): 1.1.2 * Tue Apr 27 2021 Artem Polishchuk - 1.1.1-5 - build(rebuild): 'botan2' soname bump * Tue Jan 26 2021 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 23 2020 Artem Polishchuk - 1.1.1-3 - build(rebuild): 'botan2' soname bump | rh#1892850 * Fri Oct 30 2020 Artem Polishchuk - 1.1.1-2 - build(rebuild): 'botan2' soname bump | rh#1892850 * Wed Aug 19 2020 Artem Polishchuk - 1.1.1-1 - Update to 1.1.1 * Tue Jul 28 2020 Artem Polishchuk - 1.1.0-3 - Rebuild with out-of-source builds new CMake macros * Mon Jul 27 2020 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 31 2020 Artem Polishchuk - 1.1.0-1 - Update to 1.1.0 - Disable LTO * Mon Apr 20 2020 Artem Polishchuk - 1.0.9-1 - Update to 1.0.9 (basically the same as previous build but now patch upstreamed) * Mon Mar 16 2020 Artem Polishchuk - 1.0.8-1 - Update to 1.0.8 * Tue Jan 28 2020 Fedora Release Engineering - 1.0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Nov 23 2019 Artem Polishchuk - 1.0.7-2 - Add new missed BR dep: libdrm-devel * Sat Nov 23 2019 Artem Polishchuk - 1.0.7-1 - Update to 1.0.7 * Wed Sep 04 2019 Artem Polishchuk - 1.0.6-2 - Remove '$(nproc)' from '-flto' for reproducible builds - Tiny cosmetic spec file fixes * Sat Aug 10 2019 Artem Polishchuk - 1.0.6-1 - Update to 1.0.6 * Wed Jul 24 2019 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 23 2019 Artem Polishchuk - 1.0.5-1 - Update to 1.0.5 - App summary more descriptive now (upstream suggestion) * Wed Jul 17 2019 Artem Polishchuk - 1.0.4-4 - Update to 1.0.4 * Mon Jul 15 2019 Artem Polishchuk - 1.0.3-15 - Initial package - Thanks to Dead_Mozay for initial spec file - Thanks to Vitaly Zaitsev for significant help with packaging and review