diff --git a/acpitool.spec b/acpitool.spec index a3a5e94..7252c4b 100644 --- a/acpitool.spec +++ b/acpitool.spec @@ -1,11 +1,12 @@ Summary: Command line ACPI client Name: acpitool Version: 0.5.1 -Release: 19%{?dist} -License: GPLv2+ -Group: Applications/System +Release: 38%{?dist} +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later URL: https://sourceforge.net/projects/acpitool/ BuildRequires: gcc-c++ +BuildRequires: make Source0: https://sourceforge.net/projects/acpitool/files/acpitool/%{version}/acpitool-%{version}.tar.bz2 Patch0: ac_adapter.patch @@ -15,6 +16,7 @@ Patch3: wakeup.patch Patch4: var-line.patch Patch5: typos.patch Patch6: cleanup.patch +Patch7: cache-size.patch %description AcpiTool is a Linux ACPI client. It's a small command line application, @@ -27,13 +29,14 @@ toggle fan on/off, and more. %prep %setup -q -%patch0 -p1 -b .ac_adapter -%patch1 -p1 -b .battery -%patch2 -p1 -b .kernel3 -%patch3 -p1 -b .wakeup -%patch4 -p1 -b .var-line -%patch5 -p1 -b .typos -%patch6 -p1 -b .cleanup +%patch -P0 -p1 -b .ac_adapter +%patch -P1 -p1 -b .battery +%patch -P2 -p1 -b .kernel3 +%patch -P3 -p1 -b .wakeup +%patch -P4 -p1 -b .var-line +%patch -P5 -p1 -b .typos +%patch -P6 -p1 -b .cleanup +%patch -P7 -p1 -b .cache-size %build %configure @@ -49,6 +52,66 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/acpitool* %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.5.1-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 0.5.1-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 0.5.1-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Thu Jul 25 2024 Miroslav Suchý - 0.5.1-35 +- convert license to SPDX + +* Wed Jul 17 2024 Fedora Release Engineering - 0.5.1-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.5.1-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.5.1-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 0.5.1-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 0.5.1-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 0.5.1-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.5.1-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.5.1-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jan 25 2021 Fedora Release Engineering - 0.5.1-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jul 31 2020 Fedora Release Engineering - 0.5.1-25 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.5.1-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.5.1-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.5.1-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 28 2019 Al Stone - 0.5.1-21 +- Cache size was being reported incorrectly (cpufreq was being used + instead). Pulled in patch submitted with bug report once verified. + Closes BZ#1701278. + +* Thu Jan 31 2019 Fedora Release Engineering - 0.5.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Oct 26 2018 Al Stone - 0.5.1-19 - Remove commented out acpitool-0.5-gcc43.patch; it's no longer needed and just clutters up the spec file diff --git a/cache-size.patch b/cache-size.patch new file mode 100644 index 0000000..cc811d6 --- /dev/null +++ b/cache-size.patch @@ -0,0 +1,15 @@ +Actually print the cache size instead of cpufreq a second time. + +Reported and fixed by Stephane Wirtel + +diff -rNu acpitool-0.5.1/src/cpu.cpp acpitool-0.5.1-modified/src/cpu.cpp +--- acpitool-0.5.1/src/cpu.cpp 2009-08-13 21:26:02.000000000 +0200 ++++ acpitool-0.5.1-modified/src/cpu.cpp 2019-04-18 16:01:54.091620544 +0200 +@@ -80,6 +80,7 @@ + } + + fgets(str, 299, cpuinfo_fp); ++ fgets(str, 299, cpuinfo_fp); + memset(temp, '\0', 130); + sscanf(str, "%*[^:] %*s %s",temp); + printf(" Cache size : %s KB\n", temp);