%undefine __cmake_in_source_build %global uuid org.%{name}.%{name} Name: corectrl Version: 1.2.3 Release: 1%{?dist} Summary: Friendly hardware control # The entire source code is GPLv3+ except bundled libs: # * Boost: tests/3rdparty/catch # tests/3rdparty/trompeloeil # * BSD: 3rdparty/fmt # * MIT: 3rdparty/easyloggingpp # 3rdparty/pugixml # 3rdparty/units # * Public Domain FindBotan.cmake License: GPLv3+ and Boost and BSD and MIT and Public Domain URL: https://gitlab.com/corectrl/corectrl Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz Source1: README.fedora.md BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: libdrm-devel BuildRequires: ninja-build BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5Auth) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(Qt5Charts) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5Multimedia) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5Widgets) BuildRequires: pkgconfig(botan-2) 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(easyloggingpp) = 9.96.7 Provides: bundled(fmt) = 5.2.1 Provides: bundled(pugixml) = 1.9 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 %autosetup -n %{name}-v%{version} -p1 # 'lib64' path fix sed -e 's@DESTINATION lib@DESTINATION %{_lib}@g' -i src/CMakeLists.txt # lib soversion fix echo "set_property(TARGET corectrl_lib PROPERTY SOVERSION 0)" >> src/CMakeLists.txt %build %cmake \ -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_TESTING=ON \ %{nil} %ninja_build -C %{_vpath_builddir} %install %ninja_install -C %{_vpath_builddir} install -m0644 -Dp %{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}/kf5/kauth/* %{_metainfodir}/*.xml %changelog * 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