]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- some cleanup, added Source URL
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 11 Dec 2001 10:43:49 +0000 (10:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.spec -> 1.2

acpid.spec

index 53055a2c1b3910f551752e171bc959589f32bffa..10ad988d73c07ade524fb819175d4ea4bd28fe81 100644 (file)
@@ -1,79 +1,58 @@
-Summary: ACPI Event Daemon
-Name: acpid
-Version: 1.0.0
-Release: 1
-Copyright: GPL
-Group: Daemons
-Source: acpid-1.0.0.tar.gz
-BuildRoot: /var/tmp/acpid
-URL: http://acpid.sourceforge.net
-
+Summary:       ACPI Event Daemon
+Summary(pl):   Demon zdarzeñ ACPI
+Name:          acpid
+Version:       1.0.0
+Release:       1
+License:       GPL
+Group:         Daemons
+Group(de):     Server
+Group(pl):     Serwery
+Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/acpid/%{name}-%{version}.tar.gz
+URL:           http://acpid.sourceforge.net/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 acpid is a daemon that dispatches ACPI events to user-space programs.
 
-
-%changelog
-* Thu Aug 16 2001  Tim Hockin <thockin@sun.com>
-  - Added commandline options to actions
-
-* Wed Aug 15 2001  Tim Hockin <thockin@sun.com>
-  - Added UNIX domain socket support
-  - Changed /etc/acpid.d to /etc/acpid/events
-
-* Mon Aug 13 2001  Tim Hockin <thockin@sun.com>
-  - added changelog
-  - 0.99.1-1
+%description -l pl
+acpid to demon przekazuj±cy zdarzenia ACPI do programów w user-space.
 
 %prep
-%setup
-
+%setup -q
 
 %build
-make
-
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-make install INSTPREFIX=$RPM_BUILD_ROOT
-
-mkdir -p $RPM_BUILD_ROOT/etc/acpi/events
-mkdir -p $RPM_BUILD_ROOT/etc/acpi/actions
-chmod 755 $RPM_BUILD_ROOT/etc/acpi/events
-install -o root -g root -m 644 samples/sample.conf \
-       $RPM_BUILD_ROOT/etc/acpi/events
-
-mkdir -p $RPM_BUILD_ROOT/var/log
-touch $RPM_BUILD_ROOT/var/log/acpid
-chmod 640 $RPM_BUILD_ROOT/var/log/acpid
+install -d $RPM_BUILD_ROOT
+%{__make} install INSTPREFIX=$RPM_BUILD_ROOT
 
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -o root -g root redhat/acpid.init $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
-chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/acpi/{events,actions},/var/log,/etc/rc.d/init.d}
 
+install samples/sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
+install redhat/acpid.init $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
 
-%files
-%defattr(-,root,root)
-%dir /etc/acpi
-%dir /etc/acpi/events
-%dir /etc/acpi/actions
-/etc/acpi/events/sample.conf
-/var/log/acpid
-/usr/sbin/acpid
-/etc/rc.d/init.d/acpid
-/usr/share/man/man8/acpid.8.gz
+touch $RPM_BUILD_ROOT/var/log/acpid
 
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
-# only run on install, not upgrade 
-if [ "$1" = "1" ]; then
-       /sbin/chkconfig --add acpid
-fi
-
+/sbin/chkconfig --add acpid
 
 %preun
-# only run if this is the last instance to be removed
 if [ "$1" = "0" ]; then
        /sbin/chkconfig --del acpid
 fi
+
+%files
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/acpi
+%dir %{_sysconfdir}/acpi/events
+%dir %{_sysconfdir}/acpi/actions
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf
+%attr(640,root,root) %ghost /var/log/acpid
+%attr(755,root,root) %{_sbindir}/acpid
+%attr(754,root,root) /etc/rc.d/init.d/acpid
+%{_mandir}/man8/acpid.8.gz
This page took 0.10523 seconds and 4 git commands to generate.