%global srcname smart-pc-control Summary: Smart PC Control Name: smart-pc-control Version: 0.1.14 Release: 1%{?dist} License: Apache v2 # Sources can be obtained by # git clone https://github.com/orpiske/smart-pc-control # cd gru # tito build --tgz Source0: %{name}-%{version}.tar.gz URL: https://github.com/orpiske/smart-pc-control.git BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: openssl-devel BuildRequires: rust-packaging %description A tool for controlling your PC via homekit2mqtt %prep %autosetup -n %{name}-%{version} %build %cargo_build -a %install install -D -m755 target/release/smart-pc-control %{buildroot}/%{_exec_prefix}/bin/smart-pc-control install -D -m644 src/power_control/config/smart-pc-control-power.sh %{buildroot}/%{_sysconfdir}/sysconfig/smart-pc-control-power.sh.set-me-up install -D -m644 src/power_control/config/smart-pc-control-power.service %{buildroot}/%{_prefix}/lib/systemd/system/smart-pc-control-power.service %files %doc README.md %license LICENSE %{_exec_prefix}/bin/smart-pc-control %{_sysconfdir}/sysconfig/smart-pc-control-power.sh.set-me-up %{_prefix}/lib/systemd/system/smart-pc-control-power.service %if %{with check} %check %cargo_test -a %endif %post systemctl daemon-reload %preun if [ $1 == 0 ]; then #uninstall systemctl unmask smart-pc-control-power.service systemctl stop smart-pc-control-power.service systemctl disable smart-pc-control-power.service fi %postun if [ $1 == 0 ]; then #uninstall systemctl daemon-reload systemctl reset-failed fi %changelog * Sun Apr 30 2023 Otavio R. Piske 0.1.14-1 - Automatic commit of package [smart-pc-control] release [-1.1.13-1]. (angusyoung@gmail.com) - Automatic commit of package [smart-pc-control] release [0.1.12-1]. (angusyoung@gmail.com) - Adjusted the systemd service to always restart (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) * Sun Apr 30 2023 Otavio R. Piske 0.1.13-1 - * Sun Apr 30 2023 Otavio R. Piske 0.1.12-1 - Updated service unit * Sun Jan 15 2023 Otavio R. Piske 0.1.11-1 - Remove the unused producer client (angusyoung@gmail.com) - Do retry connecting the consumer if initial connection fails (angusyoung@gmail.com) - Cleaned up unused import (angusyoung@gmail.com) - Automate creating the release tag (angusyoung@gmail.com) * Sun Jan 15 2023 Otavio R. Piske 0.1.10-1 - Do retry connecting if initial connection fails (angusyoung@gmail.com) * Wed Dec 28 2022 Otavio R. Piske 0.1.9-1 - Updated cargo lock (angusyoung@gmail.com) - Send a last will message when disconnecting ungracefully (angusyoung@gmail.com) - Cleanup state/status constants (angusyoung@gmail.com) * Sun Dec 25 2022 Otavio R. Piske 0.1.8-1 - Enable packaging only for Fedora and EL9 (packaging does not work on others) (angusyoung@gmail.com) * Sun Dec 25 2022 Otavio R. Piske 0.1.7-1 - Simplify setting a client ID for each client (angusyoung@gmail.com) - Version bump on Cargo lock (angusyoung@gmail.com) - Fix mismatch between state/status topics and ensure proper shutdown (angusyoung@gmail.com) * Sun Dec 25 2022 Otavio R. Piske 0.1.6-1 - Adjust missing packages on Centos/EL8/9 (angusyoung@gmail.com) - Adjust spec for missing packages on Centos/EL8/9 (angusyoung@gmail.com) - Added a note about the configuration template (angusyoung@gmail.com) - Improve cleanup after uninstalling the service (angusyoung@gmail.com) - Execute daemon reload after install (angusyoung@gmail.com) - Prevent bogus warning when ignoring valid requests (angusyoung@gmail.com) - Prevent uninstall from removing/overwriting the configuration file (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) * Fri Dec 23 2022 Otavio R. Piske 0.1.5-1 - Avoid overwriting the configuration files (angusyoung@gmail.com) - Only stateless hosts can turn on others (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) * Fri Dec 23 2022 Otavio R. Piske 0.1.4-1 - Fixed incorrect path for the systemd unit file (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) * Fri Dec 23 2022 Otavio R. Piske 0.1.3-1 - Added missing package for building (angusyoung@gmail.com) - Remove the outdated debug setting (angusyoung@gmail.com) - Formatting fixes in the packing spec (angusyoung@gmail.com) - Fixed incorrect srcname in packaging (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) - Updated cargo lock (angusyoung@gmail.com) * Thu Dec 22 2022 Otavio R. Piske 0.1.2-1 - Do not turn off if running stateless (angusyoung@gmail.com) * Thu Dec 22 2022 Otavio R. Piske 0.1.1-1 - Fixed mismatch in the lock file (angusyoung@gmail.com) - Use specific paths to prevent conflicts (angusyoung@gmail.com) * Thu Dec 22 2022 Otavio R. Piske 0.1.0-1 - SystemD unit must reload after install (angusyoung@gmail.com) - SystemD unit must use exec for this binary (angusyoung@gmail.com) - Updated documentation (angusyoung@gmail.com) - Packaging fixes (angusyoung@gmail.com) - Removed the old scripts used by the C version (angusyoung@gmail.com) - Converted the project to Rust (angusyoung@gmail.com) - Removed CMake build files and C source code (angusyoung@gmail.com) - CMake 3 or greater is required for the build (angusyoung@gmail.com) - Updated readme (angusyoung@gmail.com) * Thu Dec 22 2022 Otavio R. Piske 0.0.4-1 - Converted the project to Rust * Sat Mar 05 2022 Otavio R. Piske 0.0.3-1 - new package built with tito * Sun Sep 26 2021 Otavio R. Piske - 0.0.3-3 - Fixed overly verbose log message * Fri Sep 24 2021 Otavio R. Piske - 0.0.3-2 - Adjusted package to build on Fedora 33, 34, 34 and rawhide * Sun Nov 10 2019 Otavio R. Piske - 0.0.3-1 - Added support for installing the scripts * Sun Nov 10 2019 Otavio R. Piske - 0.0.2-3 - Added missing dependency: lm_sensors - Fixed memory handling issues - Fixed return status handling issues * Sat Nov 09 2019 Otavio R. Piske - 0.0.2-2 - Added missing dependency: jq * Sat Nov 09 2019 Otavio R. Piske - 0.0.2-1 - Added temperature daemon * Sun Nov 03 2019 Otavio R. Piske - 0.0.1-2 - Fixes * Sun Nov 03 2019 Otavio R. Piske - 0.0.1-1 - Initial release