]> git.pld-linux.org Git - packages/apmd.git/blob - apmd.spec
- 3.0.2
[packages/apmd.git] / apmd.spec
1 Summary:        Advanced Power Management (APM) utilities for notebooks
2 Summary(pl):    Obs³uga zarz±dzania enerig± (APM) dla notebooków
3 Summary(pt_BR): Utilitários para APM (Gerenciamento Avancado de Energia)
4 Summary(es):    Utilitarios para APM (Gestión Avanzado de Energía)
5 Name:           apmd
6 Version:        3.0.2
7 Release:        1
8 License:        GPL
9 Group:          Applications/System
10 Group(de):      Applikationen/System
11 Group(pl):      Aplikacje/System
12 Source0:        http://www.worldvisions.ca/~apenwarr/apmd/%{name}-%{version}.tar.gz
13 Source1:        %{name}.init
14 URL:            http://www.worldvisions.ca/~apenwarr/apmd/
15 Requires:       procps
16 Prereq:         chkconfig
17 BuildRequires:  XFree86-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 ExclusiveArch:  %{ix86}
20
21 %description
22 Advanced Power Management daemon and utilities allows you to watch
23 your notebook's power state and warn all users when the battery is
24 low. It can also handle some power state events automatically.
25
26 %description -l pl
27 Demon zadz±dzania energi± APM (Advanced Power Management) wraz z
28 programami pomocniczymi. Dziêki nim mo¿liwe jest monitorowanie stanu
29 zasilania Twojego notebooka i ostrzeganie wszystkich u¿ytkowników o
30 koñcz±cej siê baterii, jak równie¿ automatyczne reagowanie na zmiany.
31
32 %description -l pt_BR
33 Utilitários e servidor para gerenciamento avançado de energia (APM). Ele
34 verifica a bateria de seu notebook e avisa aos usuários que ele está com pouca
35 carga.
36
37 Foi adicionado um patch nao oficial para parar os soquetes PCMCIA antes de uma
38 suspensao de energia.
39
40 %description -l es
41 Utilitarios y servidor para gestión avanzada de energía (APM). Verifica la
42 batería de tu notebook y avisa a los usuarios cuando la carga es poca.  Fue
43 adicionado un patch no oficial para parar los enchufes PCMCIA antes de una
44 suspensión de energía.
45
46 %package devel
47 Summary:        Header files for developing APM applications
48 Summary(pl):    Pliki nag³ówkowe do tworzenia aplikacji korzystaj±cych z APM
49 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o apmd em versão estática
50 Summary(es):    Archivos de inclusión y bibliotecas para apmd en versión estática
51 Group:          Development/Libraries
52 Group(de):      Entwicklung/Libraries
53 Group(fr):      Development/Librairies
54 Group(pl):      Programowanie/Biblioteki
55 Requires:       %{name} = %{version}
56
57 %description devel
58 Header files necessary for developing APM applications.
59
60 %description devel -l pl
61 Pliki nag³ówkowe niezbêdne do tworzenia aplikacji korzystaj±cych z
62 APM.
63
64 %description -l pt_BR devel
65 Arquivos de inclusão e bibliotecas para o apmd em versão estática
66
67 %description -l es devel
68 Archivos de inclusión y bibliotecas para apmd en versión estática
69
70 %package -n xapm
71 Summary:        XFree86 APM monitoring and management tool
72 Summary(pl):    Narzêdzie do monitorowania i zarz±dzania APMem pod XFree86
73 Group:          X11/Applications
74 Group(de):      X11/Applikationen
75 Group(pl):      X11/Aplikacje
76 Requires:       XFree86
77
78 %description -n xapm
79 xapm is an XFree86 version of console APM client - "apm".
80
81 %description -n xapm -l pl
82 xapm jest wersj± konsolowego klienta APM - "apm", przenaczon± dla
83 XFree86.
84
85 %prep
86 %setup -q -n apmd
87
88 %build
89 %{__make} CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" APMD_PROXY_DIR=%{_sbindir}
90 %{__make} -C xbattery clean
91 %{__make} CCOPTIONS="%{rpmcflags}" LOCAL_LDFLAGS="%{rpmldflags}" -C xbattery
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_sbindir}} \
96         $RPM_BUILD_ROOT%{_prefix}/X11R6/{bin,man/man1} \
97         $RPM_BUILD_ROOT{%{_mandir}/man{1,8},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
98
99 install apm apmsleep on_ac_power $RPM_BUILD_ROOT%{_bindir}
100 install apmd apmd_proxy $RPM_BUILD_ROOT%{_sbindir}
101
102 install xapm $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
103
104 install apm.1 apmsleep.1 $RPM_BUILD_ROOT%{_mandir}/man1/
105 install apmd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
106 install xapm.1 $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xapm.1x
107 install xbattery/xbattery.man $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xbattery.1x
108
109 install libapm.a $RPM_BUILD_ROOT%{_libdir}
110 install apm.h $RPM_BUILD_ROOT%{_includedir}
111
112 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/apmd
113 install xbattery/xbattery $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
114
115 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/apmd
116 APMD_OPTIONS="-p 10 -w 5 -W -P %{_sbindir}/apmd_proxy"
117 EOF
118
119 gzip -9nf README README.transfer ChangeLog ANNOUNCE
120  
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post
125 /sbin/chkconfig --add apmd
126 if [ -f /var/lock/subsys/apmd ]; then
127         /etc/rc.d/init.d/apmd restart 1>&2
128 else
129         echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
130 fi
131
132 %preun
133 if [ "$1" = "0" ]; then
134         if [ -f /var/lock/subsys/apmd ]; then
135                 /etc/rc.d/init.d/apmd stop 1>&2
136         fi
137         /sbin/chkconfig --del apmd
138 fi
139
140 %files
141 %defattr(644,root,root,755)
142 %doc *.gz
143 %{_mandir}/man*/*
144 %attr(755,root,root) %{_bindir}/*
145 %attr(755,root,root) %{_sbindir}/*
146 %attr(754,root,root) /etc/rc.d/init.d/apmd
147 %config(noreplace) /etc/sysconfig/apmd
148
149 %files devel
150 %defattr(644,root,root,755)
151 %{_includedir}/*
152 %{_libdir}/*.a
153
154 %files -n xapm
155 %defattr(644,root,root,755)
156 %{_prefix}/X11R6/man/man*/*
157 %attr(755,root,root) %{_prefix}/X11R6/bin/*
This page took 0.048943 seconds and 3 git commands to generate.