Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > b9fd683dbd61cf5c85ffeadacf495b31 > files > 9

acpid-1.0.6-1.1mdv2008.0.src.rpm

Summary:		ACPI kernel daemon and control utility
Name:			acpid
Version:		1.0.6
%define subrel 1
Release:		%mkrel 1
License:		GPL
Group:			System/Servers
Epoch:			2
URL:			http://acpid.sourceforge.net
Source0:		http://unc.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Source1:		acpid.rc
Patch0:			acpid-kernel-acpi-h.patch
Patch1:			acpid-1.0.6-ignore-rpmnew.patch
# patches from RH
Patch2:			acpid-1.0.6-warning.patch
Patch4:			%{name}-1.0.6-makefile.patch
Patch5:			acpid-1.0.6-fd.patch
Patch6:			acpid-1.0.6-log.patch
ExclusiveArch:		%{ix86} ia64 x86_64 amd64
Requires(post):		rpm-helper
Requires(preun):	rpm-helper
Conflicts:		suspend-scripts < 1.27-2mdv2007.1
BuildRoot:		%{_tmppath}/%{name}-%{version}-buildroot

%description
The ACPI specification defines power and system management functions
for each computer, in a generic manner. The ACPI daemon coordinates
the management of power and system functions when ACPI kernel
support is enabled (kernel 2.3.x or later).

%prep 
%setup -q

%patch0 -p1
%patch1 -p1 -b .rpmnew
%patch2 -p1 -b .warning
%patch4 -p1 -b .optflags
%patch5 -p1 -b .fd
%patch6 -p1 -b .log

%build
%serverbuild
%make

cat > %{name}.logrotate << EOF

/var/log/acpid {
    missingok
    compress
    postrotate
        service acpid reload
    endscript
}
EOF

%install
%makeinstall_std INSTPREFIX=%{buildroot}

mkdir -p %{buildroot}/%{_initrddir}
install -m755 %{SOURCE1} %{buildroot}%{_initrddir}/acpid

mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
install -m644 %{name}.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}

install -d %{buildroot}%{_sysconfdir}/acpi/actions

%clean
rm -rf %{buildroot}

%post
%_post_service acpid

%preun
%_preun_service acpid

%files
%defattr(-,root,root)
%doc README TODO Changelog
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man8/*
%{_initrddir}/acpid
%dir %{_sysconfdir}/acpi/actions


%changelog
* Tue Dec 11 2007 Olivier Blin <oblin@mandriva.com> 1.0.6-1.1mdv2008.0
+ Revision: 117214
- fix dumping useless info to log (#35825, patch from RH #389581)
- fix socket leak (RH #394431)

* Wed Jul 11 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2:1.0.6-1mdv2008.0
+ Revision: 51320
- rediff patch 1 and 2
- drop patch 3
- provide patch 4 (compile with %%optflags)
- new version
- spec file clean


* Thu Jan 11 2007 Olivier Blin <oblin@mandriva.com> 1.0.4-13mdv2007.0
+ Revision: 107423
- remove useless rm
- own /etc/acpi/actions
- do not require suspend-scripts
- bunzip2 sources
- Import acpid

* Mon Jan 09 2006 Olivier Blin <oblin@mandriva.com> 1.0.4-12mdk
- fix Requires post and preun
- fix typo in init script

* Sun Jan 08 2006 Olivier Blin <oblin@mandriva.com> 1.0.4-11mdk
- convert parallel init to LSB

* Sat Dec 31 2005 Couriousous <couriousous@mandriva.org> 2:1.0.4-10mdk
- Add parallel init stuff

* Tue Nov 15 2005 Stew Benedict <sbenedict@mandriva.com> 2:1.0.4-9mdk
- restore init script fix that was dropped in 8mdk

* Thu Nov 03 2005 Frederic Lepied <flepied@mandriva.com> 2:1.0.4-8mdk
- don't close clients when reloading configuration. This will avoid
having the X server consuming 100%% cpu...

* Wed Nov 02 2005 Stew Benedict <sbenedict@mandriva.com> 2:1.0.4-7mdk
- fix init script (bugzilla #19576)

* Sat Aug 27 2005 Frederic Lepied <flepied@mandriva.com> 2:1.0.4-6mdk
- start at level 14 (before dm)

* Sun Jul 31 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2:1.0.4-5mdk
- Patch 2 : Fix Build with gcc4 ( fedora )
- mkrel

* Sat Mar 19 2005 Michael Scherer <misc@mandrake.org> 2:1.0.4-4mdk
- fix the logrotate file

* Sun Mar 13 2005 Michael Scherer <misc@mandrake.org> 2:1.0.4-3mdk
- add a logrotate file
- clean spec file

* Sun Mar 06 2005 Stefan van der Eijk <stefan@eijk.nu> 2:1.0.4-2mdk
- re-upload (1.0.4-1mdk got lost)

* Mon Feb 28 2005 Stew Benedict <sbenedict@mandrakesoft.com> 1.0.4-1mdk
- 1.0.4
- ignore .rpm{new,save} files in /etc/acpi/events (#13943, P1)

* Tue Apr 27 2004 Frederic Lepied <flepied@mandrakesoft.com> 1.0.3-1mdk
- call battery.sh if present
- New release 1.0.3