Package corectrl: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | %def_with tests Name: corectrl Version: 1.4.0 Release: alt1 Summary: Core control application Group: System/Configuration/Hardware License: GPLv3 Url: https://gitlab.com/%name/%name Source: https://gitlab.com/%name/%name/-/archive/v%{version}/%name-%version.tar Patch: %name-%version-%release.patch Source1: 90-%name.rules Source2: %name.control BuildRequires(pre): cmake # Automatically added by buildreq on Sun Oct 02 2022 BuildRequires: libbotan-devel libdbus-devel libdrm-devel libpolkit-devel qt5-charts-devel qt5-svg-devel qt5-tools-devel quazip-qt5-devel BuildRequires: libfmt-devel >= 5.0, libpugixml-devel >= 1.11 ctest nholthaus-units-devel libspdlog-devel %if_with tests BuildRequires: catch-devel trompeloeil-devel %endif %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. %prep %setup %patch -p1 # stdc++fs is a part of libstdc++ on linux find . -name CMakeLists.txt -exec sed -i -e 's/stdc++fs/stdc++/g' {} \; %build %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %if_with tests -DBUILD_TESTING=TRUE \ %endif -DWITH_PCI_IDS_PATH=%_datadir/hwdatabase/pci.ids %cmake_build %check make -C "%_cmake__builddir" test %install %cmake_install install -pD -m644 %SOURCE1 %buildroot%_sysconfdir/polkit-1/rules.d/90-%name.rules install -pD -m755 %SOURCE2 %buildroot%_controldir/%name %pre /usr/sbin/groupadd -r -f %name if [ $1 -ge 2 -o -e %_bindir/%name ]; then %_sbindir/control-dump %name fi %post echo 'Do not forget to add yourself into %name group before running %name for the first time!' echo 'Or use control(8) command to tune access later.' if [ $1 -ge 2 -o -e %_bindir/%name ]; then %_sbindir/control-restore %name else %_sbindir/control %name %{name}only fi %files %doc README.md CHANGELOG.md COPYING LICENSE CONTRIBUTING.md %config %_controldir/* %config %_sysconfdir/polkit-1/rules.d/* %attr(710,root,%name) %_bindir/%name %_libdir/lib%{name}.so %_prefix/libexec/%name %_desktopdir/org.corectrl.CoreCtrl.desktop %_datadir/dbus-1/system-services/org.%name.*.service %_datadir/dbus-1/system.d/org.%name.*.conf %_iconsdir/hicolor/*/apps/*.svg %_datadir/metainfo/org.corectrl.CoreCtrl.appdata.xml %_datadir/polkit-1/actions/org.%name.*.policy %changelog * Sat Mar 23 2024 L.A. Kostis <lakostis@altlinux.ru> 1.4.0-alt1 - 1.4.0. - easyloggingpp->spdlog. - catch2->catch. * Tue Mar 12 2024 L.A. Kostis <lakostis@altlinux.ru> 1.3.11-alt1 - 1.3.11. * Tue Feb 13 2024 L.A. Kostis <lakostis@altlinux.ru> 1.3.10-alt2 - Build with system catch2. * Mon Feb 12 2024 L.A. Kostis <lakostis@altlinux.ru> 1.3.10-alt1 - 1.3.10. - Fix unresolved symbols from easyloggingpp. * Mon Jan 22 2024 L.A. Kostis <lakostis@altlinux.ru> 1.3.9-alt1 - 1.3.9. * Tue Nov 07 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.8-alt1 - 1.3.8. * Fri Nov 03 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.7-alt1 - 1.3.7. * Mon Apr 17 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.5-alt1 - 1.3.5. * Wed Mar 29 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.3-alt2 - unbundle units and easyloggingpp libraries. * Fri Mar 03 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.3-alt1 - 1.3.3. - Enable tests. - Disable debug flags for build. * Mon Feb 20 2023 L.A. Kostis <lakostis@altlinux.ru> 1.3.2-alt1 - 1.3.2. - Use system fmt, pugixml. * Fri Oct 14 2022 L.A. Kostis <lakostis@altlinux.ru> 1.3.1-alt1 - 1.3.1. * Sat Oct 08 2022 L.A. Kostis <lakostis@altlinux.ru> 1.3.0-alt4 - Apply a proper patch from upstream to fix compilation w/ linux 6.0+ headers (upstream #325). * Wed Oct 05 2022 L.A. Kostis <lakostis@altlinux.ru> 1.3.0-alt3 - Fix build w/ recent linux headers. * Mon Oct 03 2022 L.A. Kostis <lakostis@altlinux.ru> 1.3.0-alt1 - Sync with existing package from lav@. - Applied a fix from master (Fix CPU performance scaling mode not being restored from file). * Sun Oct 02 2022 L.A. Kostis <lakostis@altlinux.ru> 1.3.0-alt0.1 - Initial build for ALTLinux. |