79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
Name: wmacpi
|
|
Version: 1.34
|
|
Release: 7%{?dist}
|
|
Summary: Dockapp for laptop acpi/apm information
|
|
|
|
Group: User Interface/X
|
|
License: GPL
|
|
URL: http://www.ne.jp/asahi/linux/timecop/
|
|
Source0: http://www.ne.jp/asahi/linux/timecop/software/wmacpi-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequireS: libXpm-devel
|
|
|
|
%description
|
|
Dockapp which displays acpi/apm information.
|
|
his is a typical laptop ACPI dockapp. One interesting feature is the "timer"
|
|
mode, where you can keep track of how long the laptop has been "on battery".
|
|
This is opposite of the information usually provided by the BIOS, which is
|
|
"time remaining", and in many cases wrong. This option can be toggled at
|
|
run-time. System messages scroll on the bottom of the window, AC plug flashes
|
|
when battery is charging, and green LED inside the big button flashes red if
|
|
battery level is critical low.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
make CFLAGS="$RPM_OPT_FLAGS -DACPI -ansi -I%{_prefix}/X11R6/include" \
|
|
LDFLAGS="$RPM_OPT_FLAGS -DACPI -L%{_prefix}/X11R6/%{_lib} -lX11 -lXpm -lXext" \
|
|
%{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
|
|
%{__install} %{_builddir}/%{name}-%{version}/wmacpi ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING README
|
|
%{_bindir}/wmacpi
|
|
|
|
%changelog
|
|
* Fri Sep 15 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-7
|
|
- FE6 rebuild
|
|
|
|
* Thu Feb 16 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-6
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
* Fri Nov 25 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-5
|
|
- modular xorg integration
|
|
|
|
* Sat Aug 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-4
|
|
- better description
|
|
- add dist tag
|
|
|
|
* Sat Aug 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-3
|
|
- fix x86_64 xorg lib dir
|
|
|
|
* Sat Aug 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-2
|
|
-minor cleanups
|
|
|
|
* Fri Jun 03 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
|
|
1.34-1
|
|
- Initial Release
|