--- /dev/null
+Summary: command-line ACPI client
+Name: acpi
+Version: 0.0.6
+Release: 1
+License: GPL
+Group: Applications
+Source0: http://grahame.angrygoats.net/source/acpi/%{name}_%{version}.tar.gz
+# Source0-md5: 062a77b38b929fe34120c3f258fd01ba
+Patch0: %{name}-debian.patch
+URL: http://grahame.angrygoats.net/acpi.shtml
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 -n %{name}
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CREDITS ChangeLog
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man?/*