]> git.pld-linux.org Git - packages/acpid.git/blob - acpid.spec
- some cleanup, added Source URL
[packages/acpid.git] / acpid.spec
1 Summary:        ACPI Event Daemon
2 Summary(pl):    Demon zdarzeñ ACPI
3 Name:           acpid
4 Version:        1.0.0
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/acpid/%{name}-%{version}.tar.gz
11 URL:            http://acpid.sourceforge.net/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 acpid is a daemon that dispatches ACPI events to user-space programs.
16
17 %description -l pl
18 acpid to demon przekazuj±cy zdarzenia ACPI do programów w user-space.
19
20 %prep
21 %setup -q
22
23 %build
24 %{__make}
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT
29 %{__make} install INSTPREFIX=$RPM_BUILD_ROOT
30
31 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/acpi/{events,actions},/var/log,/etc/rc.d/init.d}
32
33 install samples/sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
34 install redhat/acpid.init $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
35
36 touch $RPM_BUILD_ROOT/var/log/acpid
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 /sbin/chkconfig --add acpid
43
44 %preun
45 if [ "$1" = "0" ]; then
46         /sbin/chkconfig --del acpid
47 fi
48
49 %files
50 %defattr(644,root,root,755)
51 %dir %{_sysconfdir}/acpi
52 %dir %{_sysconfdir}/acpi/events
53 %dir %{_sysconfdir}/acpi/actions
54 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf
55 %attr(640,root,root) %ghost /var/log/acpid
56 %attr(755,root,root) %{_sbindir}/acpid
57 %attr(754,root,root) /etc/rc.d/init.d/acpid
58 %{_mandir}/man8/acpid.8.gz
This page took 0.06082 seconds and 4 git commands to generate.