]> git.pld-linux.org Git - packages/apmd.git/blob - apmd.spec
- adding es/fr/pt_BR/ru/uk (and eventually de) 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(pl):      X11/Aplikacje
82 Requires:       XFree86
83
84 %description -n xapm
85 xapm is an XFree86 version of console APM client - "apm".
86
87 %description -n xapm -l pl
88 xapm jest wersj± konsolowego klienta APM - "apm", przenaczon± dla
89 XFree86.
90
91 %prep
92 %setup -q -n apmd
93 %patch0 -p1
94
95 %build
96 %{__make} CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" APMD_PROXY_DIR=%{_sbindir}
97 %{__make} -C xbattery clean
98 %{__make} CCOPTIONS="%{rpmcflags}" LOCAL_LDFLAGS="%{rpmldflags}" -C xbattery
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_sbindir}} \
103         $RPM_BUILD_ROOT%{_prefix}/X11R6/{bin,man/man1} \
104         $RPM_BUILD_ROOT{%{_mandir}/man{1,8},%{_sysconfdir}/{rc.d/init.d,sysconfig}}
105
106 install apm apmsleep on_ac_power $RPM_BUILD_ROOT%{_bindir}
107 install apmd apmd_proxy $RPM_BUILD_ROOT%{_sbindir}
108
109 install xapm $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
110
111 install apm.1 apmsleep.1 $RPM_BUILD_ROOT%{_mandir}/man1/
112 install apmd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
113 install xapm.1 $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xapm.1x
114 install xbattery/xbattery.man $RPM_BUILD_ROOT%{_prefix}/X11R6/man/man1/xbattery.1x
115
116 install libapm.a $RPM_BUILD_ROOT%{_libdir}
117 install apm.h $RPM_BUILD_ROOT%{_includedir}
118
119 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/apmd
120 install xbattery/xbattery $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
121
122 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/apmd
123 APMD_OPTIONS="-p 10 -w 5 -W -P %{_sbindir}/apmd_proxy"
124 EOF
125
126 gzip -9nf README README.transfer ChangeLog ANNOUNCE
127  
128 %clean
129 rm -rf $RPM_BUILD_ROOT
130
131 %post
132 /sbin/chkconfig --add apmd
133 if [ -f /var/lock/subsys/apmd ]; then
134         /etc/rc.d/init.d/apmd restart 1>&2
135 else
136         echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
137 fi
138
139 %preun
140 if [ "$1" = "0" ]; then
141         if [ -f /var/lock/subsys/apmd ]; then
142                 /etc/rc.d/init.d/apmd stop 1>&2
143         fi
144         /sbin/chkconfig --del apmd
145 fi
146
147 %files
148 %defattr(644,root,root,755)
149 %doc *.gz
150 %{_mandir}/man*/*
151 %attr(755,root,root) %{_bindir}/*
152 %attr(755,root,root) %{_sbindir}/*
153 %attr(754,root,root) /etc/rc.d/init.d/apmd
154 %config(noreplace) /etc/sysconfig/apmd
155
156 %files devel
157 %defattr(644,root,root,755)
158 %{_includedir}/*
159 %{_libdir}/*.a
160
161 %files -n xapm
162 %defattr(644,root,root,755)
163 %{_prefix}/X11R6/man/man*/*
164 %attr(755,root,root) %{_prefix}/X11R6/bin/*
This page took 0.04545 seconds and 4 git commands to generate.