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