1 Summary: Advanced Power Management (APM) utilities for notebooks
2 Summary(pl): Obs³uga zarz±dzania enerig± (APM) dla notebooków
7 Group: Applications/System
8 Group(de): Applikationen/System
9 Group(pl): Aplikacje/System
10 Source0: http://www.worldvisions.ca/~apenwarr/apmd/%{name}-%{version}.tar.gz
12 URL: http://www.worldvisions.ca/~apenwarr/apmd/
15 BuildRequires: XFree86-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 ExclusiveArch: %{ix86}
20 Advanced Power Management daemon and utilities allows you to watch
21 your notebook's power state and warn all users when the battery is
22 low. It can also handle some power state events automatically.
25 Demon zadz±dzania energi± APM (Advanced Power Management) wraz z
26 programami pomocniczymi. Dziêki nim mo¿liwe jest monitorowanie stanu
27 zasilania Twojego notebooka i ostrzeganie wszystkich u¿ytkowników o
28 koñcz±cej siê baterii, jak równie¿ automatyczne reagowanie na zmiany.
31 Summary: Header files for developing APM applications
32 Summary(pl): Pliki nag³ówkowe do tworzenia aplikacji korzystaj±cych z APM
33 Group: Development/Libraries
34 Group(de): Entwicklung/Libraries
35 Group(fr): Development/Librairies
36 Group(pl): Programowanie/Biblioteki
37 Requires: %{name} = %{version}
40 Header files necessary for developing APM applications.
42 %description devel -l pl
43 Pliki nag³ówkowe niezbêdne do tworzenia aplikacji korzystaj±cych z
47 Summary: XFree86 APM monitoring and management tool
48 Summary(pl): Narzêdzie do monitorowania i zarz±dzania APMem pod XFree86
49 Group: X11/Applications
50 Group(de): X11/Applikationen
51 Group(pl): X11/Aplikacje
55 xapm is an XFree86 version of console APM client - "apm".
57 %description -n xapm -l pl
58 xapm jest wersj± konsolowego klienta APM - "apm", przenaczon± dla
65 %{__make} CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" APMD_PROXY_DIR=%{_sbindir}
66 %{__make} -C xbattery clean
67 %{__make} CCOPTIONS="%{rpmcflags}" LOCAL_LDFLAGS="%{rpmldflags}" -C xbattery
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_sbindir}} \
72 $RPM_BUILD_ROOT%{_prefix}/X11R6/{bin,man/man1} \
73 $RPM_BUILD_ROOT{%{_mandir}/man{1,8},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
75 install apm apmsleep tailf on_ac_power $RPM_BUILD_ROOT%{_bindir}
76 install apmd apmd_proxy $RPM_BUILD_ROOT%{_sbindir}
78 install xapm $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
80 install apm.1 apmsleep.1 tailf.1 $RPM_BUILD_ROOT%{_mandir}/man1/
81 install apmd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
82 install xapm.1 $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xapm.1x
83 install xbattery/xbattery.man $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xbattery.1x
85 install libapm.a $RPM_BUILD_ROOT%{_libdir}
86 install apm.h $RPM_BUILD_ROOT%{_includedir}
88 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/apmd
89 install xbattery/xbattery $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
91 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/apmd
92 APMD_OPTIONS="-p 10 -w 5 -W -P %{_sbindir}/apmd_proxy"
95 gzip -9nf README README.transfer ChangeLog ANNOUNCE
98 rm -rf $RPM_BUILD_ROOT
101 DESC="apmd daemon"; %chkconfig_add
107 %defattr(644,root,root,755)
108 %doc ANNOUNCE.gz ChangeLog.gz README.gz README.transfer.gz
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_sbindir}/*
112 %attr(754,root,root) /etc/rc.d/init.d/apmd
113 %config(noreplace) /etc/sysconfig/apmd
116 %defattr(644,root,root,755)
121 %defattr(644,root,root,755)
122 %{_prefix}/X11R6/man/man*/*
123 %attr(755,root,root) %{_prefix}/X11R6/bin/*