Compare commits
23 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba553b4282 | ||
|
|
309c399a90 | ||
|
|
b70483d286 | ||
|
|
5caa08a94b | ||
|
|
4edc48bea7 | ||
|
|
eb5e9f80e9 | ||
|
|
6b2226a1e1 | ||
|
|
fcb60b9af7 | ||
|
|
fe84dd803a | ||
|
|
3e8f93fb1a | ||
|
|
6c568b2912 | ||
|
|
e8bc537ffb | ||
|
|
805c5c1344 | ||
|
|
419ab8b221 | ||
|
|
0afad633c5 | ||
|
|
205da264ab | ||
|
|
d16214805c | ||
|
|
4130e7b6c6 | ||
|
|
9206ee53fa | ||
|
|
6289c94414 | ||
|
|
4d93de1927 | ||
|
|
09d5b0651a | ||
|
|
ee834b82e2 |
2 changed files with 88 additions and 10 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
Summary: Command line ACPI client
|
Summary: Command line ACPI client
|
||||||
Name: acpitool
|
Name: acpitool
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
Release: 19%{?dist}
|
Release: 38%{?dist}
|
||||||
License: GPLv2+
|
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||||
Group: Applications/System
|
License: GPL-2.0-or-later
|
||||||
URL: https://sourceforge.net/projects/acpitool/
|
URL: https://sourceforge.net/projects/acpitool/
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
Source0: https://sourceforge.net/projects/acpitool/files/acpitool/%{version}/acpitool-%{version}.tar.bz2
|
Source0: https://sourceforge.net/projects/acpitool/files/acpitool/%{version}/acpitool-%{version}.tar.bz2
|
||||||
Patch0: ac_adapter.patch
|
Patch0: ac_adapter.patch
|
||||||
|
|
@ -15,6 +16,7 @@ Patch3: wakeup.patch
|
||||||
Patch4: var-line.patch
|
Patch4: var-line.patch
|
||||||
Patch5: typos.patch
|
Patch5: typos.patch
|
||||||
Patch6: cleanup.patch
|
Patch6: cleanup.patch
|
||||||
|
Patch7: cache-size.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
AcpiTool is a Linux ACPI client. It's a small command line application,
|
AcpiTool is a Linux ACPI client. It's a small command line application,
|
||||||
|
|
@ -27,13 +29,14 @@ toggle fan on/off, and more.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .ac_adapter
|
%patch -P0 -p1 -b .ac_adapter
|
||||||
%patch1 -p1 -b .battery
|
%patch -P1 -p1 -b .battery
|
||||||
%patch2 -p1 -b .kernel3
|
%patch -P2 -p1 -b .kernel3
|
||||||
%patch3 -p1 -b .wakeup
|
%patch -P3 -p1 -b .wakeup
|
||||||
%patch4 -p1 -b .var-line
|
%patch -P4 -p1 -b .var-line
|
||||||
%patch5 -p1 -b .typos
|
%patch -P5 -p1 -b .typos
|
||||||
%patch6 -p1 -b .cleanup
|
%patch -P6 -p1 -b .cleanup
|
||||||
|
%patch -P7 -p1 -b .cache-size
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
|
@ -49,6 +52,66 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%{_mandir}/man1/acpitool*
|
%{_mandir}/man1/acpitool*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-38
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-37
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-36
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 0.5.1-35
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-34
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-33
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-32
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-31
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-30
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-29
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-28
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-27
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-26
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-25
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-24
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 28 2019 Al Stone <ahs3@redhat.com> - 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 <releng@fedoraproject.org> - 0.5.1-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
* Fri Oct 26 2018 Al Stone <ahs3@redhat.com> - 0.5.1-19
|
* Fri Oct 26 2018 Al Stone <ahs3@redhat.com> - 0.5.1-19
|
||||||
- Remove commented out acpitool-0.5-gcc43.patch; it's no longer needed and
|
- Remove commented out acpitool-0.5-gcc43.patch; it's no longer needed and
|
||||||
just clutters up the spec file
|
just clutters up the spec file
|
||||||
|
|
|
||||||
15
cache-size.patch
Normal file
15
cache-size.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
Actually print the cache size instead of cpufreq a second time.
|
||||||
|
|
||||||
|
Reported and fixed by Stephane Wirtel <stephane@wirtel.be>
|
||||||
|
|
||||||
|
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);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue