From bbcba5ab957dcc41ad78064b288ffb1dbe1a6804 Mon Sep 17 00:00:00 2001 From: pertusus Date: Nov 11 2005 20:16:00 +0000 Subject: auto-import acpitool-0.3.0-3 on branch devel from acpitool-0.3.0-3.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..72e6abd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +acpitool-0.3.0.tar.gz diff --git a/acpitool-keep_CXXFLAGS.diff b/acpitool-keep_CXXFLAGS.diff new file mode 100644 index 0000000..469b6e4 --- /dev/null +++ b/acpitool-keep_CXXFLAGS.diff @@ -0,0 +1,30 @@ +--- acpitool-0.3.0-orig/configure 2005-10-22 15:10:09.000000000 +0200 ++++ acpitool-0.3.0/configure 2005-11-10 23:49:15.000000000 +0100 +@@ -3374,27 +3374,6 @@ + + + +-CXXFLAGS="-O2 -Wall" +- +- +-case ${host_cpu} in +-*586) +- CXXFLAGS="${CXXFLAGS} -mcpu=i586 -march=i586" +- ;; +-*686) +- CXXFLAGS="${CXXFLAGS} -mcpu=i686 -march=i686" +- ;; +-x86-64) +- CXXFLAGS="${CXXFLAGS} -march=k8" +- ;; +-*) +- ;; +-esac +- +-echo "$as_me:$LINENO: result: $CXXFLAGS" >&5 +-echo "${ECHO_T}$CXXFLAGS" >&6 +- +- + # Checks for libraries. + + # Checks for header files. diff --git a/acpitool.spec b/acpitool.spec new file mode 100644 index 0000000..006bf0c --- /dev/null +++ b/acpitool.spec @@ -0,0 +1,52 @@ +Name: acpitool +Version: 0.3.0 +Release: 3 +Url: http://freeunix.dyndns.org:8088/site2/acpitool.shtml +Source0: http://freeunix.dyndns.org:8000/ftp_site/pub/unix/acpitool/acpitool-%{version}.tar.gz +Summary: A command line ACPI client for Linux +Group: Applications/Internet +License: GPL +Patch: acpitool-keep_CXXFLAGS.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +AcpiTool is a Linux ACPI client. It's a small command line application, +intended to be a replacement for the apm tool. The primary target +audience are laptop users, since these people are most interested in +things like battery status, thermal status and the ability to suspend +(sleep mode). The program simply accesses the /proc/acpi or /sysfs entries +to get/set acpi values. Hence, a computer running a Linux kernel from +the 2.4.x or 2.6.x series with ACPI enabled is needed. + +%prep +%setup +%patch -p1 + +%build +%configure +make %{?_smp_mflags} + +%install +rm -fr $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README TODO ChangeLog AUTHORS COPYING +%{_bindir}/acpitool +%{_mandir}/man1/acpitool* + +%changelog +* Thu Nov 10 2005 Patrice Dumas - 0.3.0-3 +- add patch to avoid ignoring CXXFLAGS + +* Fri Nov 4 2005 Patrice Dumas - 0.3.0-2 +- update using fedora core conventions, some cleanings + +* Tue Aug 24 2004 Robert Ambrose +- Created .spec file. + + diff --git a/sources b/sources index e69de29..bba6ba1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6f9fb795790e370e8e324fc7d4d4fe3f acpitool-0.3.0.tar.gz