File acpi.spec of Package acpi

#
# spec file for package acpi
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           acpi
Version:        1.8
Release:        0
Summary:        Command-line ACPI client
License:        GPL-2.0-or-later
URL:            https://sourceforge.net/projects/acpiclient/
Source:         https://sourceforge.net/projects/acpiclient/files/acpiclient/%{version}/%{name}-%{version}.tar.gz
# Package was split from acpid package
Provides:       acpid:%{_bindir}/acpi
ExclusiveArch:  %{ix86} x86_64 ia64 aarch64 riscv64

%description
Linux ACPI client is a small command-line program that attempts to
replicate the functionality of the 'old' apm command on ACPI systems.
It includes battery and thermal information.

%prep
%setup -q

%build
%configure
%make_build

%install
%make_install

install -D -m 0644 acpi.de.1 %{buildroot}%{_mandir}/de/man1/acpi.1

%files
%license COPYING
%doc AUTHORS README
%{_bindir}/acpi
%{_mandir}/man1/acpi.1%{?ext_man}
%{_mandir}/de/man1/acpi.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by