%global _enable_debug_packages 0 %global debug_package %{nil} %global project coolercontrol # prevent library files from being installed %global __cargo_is_lib() 0 Name: %{project}d Version: 1.4.2 Release: 1%{?dist} Summary: Monitor and control your cooling devices. License: GPL-3.0-or-later URL: https://gitlab.com/%{project}/%{project} BuildRequires: systemd-rpm-macros BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(libdrm_amdgpu) BuildRequires: pkgconfig(libdrm) BuildRequires: nodejs BuildRequires: npm Requires: coolercontrol-liqctld VCS: git+https://gitlab.com/coolercontrol/coolercontrol.git#f9c921fad98d27f8ead45bda1a572da25a387b75: Source: coolercontrol-f9c921fa.tar.gz %description CoolerControl is a program to monitor and control your cooling devices. It offers an easy-to-use user interface with various control features and also provides live thermal performance details. %prep %setup -T -b 0 -q -n coolercontrol # non-Inet rust and npm dependencies are a WIP # (cd coolercontrold; #cargo_prep) %generate_buildrequires # (cd coolercontrold; #cargo_generate_buildrequires) %build # build web ui files: make build-ui cp -rfp %{project}-ui/dist/* %{name}/resources/app/ (cd %{name}; /usr/bin/cargo build --locked -j${RPM_BUILD_NCPUS} --profile release) %install install -Dpm 755 %{name}/target/release/%{name} -t %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} cp -p packaging/systemd/%{name}.service %{buildroot}%{_unitdir} %check (cd %{name}; /usr/bin/cargo test --locked -j${RPM_BUILD_NCPUS} --profile release --no-fail-fast) %{buildroot}%{_bindir}/%{name} --version %files %{_bindir}/%{name} %{_unitdir}/%{name}.service %license LICENSE %doc README.md CHANGELOG.md %post %systemd_post coolercontrold.service %preun %systemd_preun coolercontrold.service %postun %systemd_postun_with_restart coolercontrold.service %changelog * Fri Sep 27 2024 Guy Boldon - 1.4.2-1 - 1.4.2 Release * Sat Sep 21 2024 Guy Boldon - 1.4.1-1 - 1.4.1 Release * Sat Jul 27 2024 Guy Boldon - 1.4.0-1 - 1.4.0 Release * Fri Jun 07 2024 Guy Boldon - 1.3.0-1 - 1.3.0 Release * Sat Apr 13 2024 Guy Boldon - 1.2.2-1 - 1.2.2 Release * Tue Apr 02 2024 Guy Boldon - 1.2.1-1 - 1.2.1 Release * Mon Apr 01 2024 Guy Boldon - 1.2.0-1 - 1.2.0 Release * Fri Feb 16 2024 Guy Boldon - 1.1.1-0 - 1.1.1 Release * Wed Jan 31 2024 Guy Boldon - 1.1.0-0 - 1.1.0 Release * Mon Jan 15 2024 Guy Boldon - 1.0.4-0 - 1.0.4 Release * Mon Jan 15 2024 Guy Boldon - 1.0.3-0 - 1.0.3 Release * Sun Jan 14 2024 Guy Boldon - 1.0.2-0 - 1.0.2 Release * Fri Jan 12 2024 Guy Boldon - 1.0.1-0 - 1.0.1 Release * Sun Jan 07 2024 Guy Boldon - 1.0.0-0 - 1.0.0 Release * Fri Dec 15 2023 Guy Boldon - 0.17.3-0 - 0.17.3 Release * Tue Nov 28 2023 Guy Boldon - 0.17.2-0 - 0.17.2 Release * Wed Sep 13 2023 Guy Boldon - 0.17.1-0 - 0.17.1 Release * Sun Jul 16 2023 Guy Boldon - 0.17.0-0 - 0.17.0 Release * Sun Apr 23 2023 Guy Boldon - 0.16.0-0 - 0.16.0 Release * Tue Mar 14 2023 Guy Boldon - 0.15.0-0 - 0.15.0 Release * Wed Mar 01 2023 Guy Boldon - 0.14.6-0 - 0.14.6 Release * Mon Feb 27 2023 Guy Boldon - 0.14.5-0 - 0.14.5 Release * Tue Feb 14 2023 Guy Boldon - 0.14.4-0 - 0.14.4 Release * Thu Feb 09 2023 Guy Boldon - 0.14.3-0 - 0.14.3 Release * Tue Feb 07 2023 Guy Boldon - 0.14.2-0 - 0.14.2 Release * Mon Feb 06 2023 Guy Boldon - 0.14.1-0 - 0.14.1 Release * Sun Feb 05 2023 Guy Boldon - 0.14.0-0 - 0.14.0 Release