- Fedora review changes.
This commit is contained in:
parent
204db71310
commit
1bedf400f9
56
acpid.spec
56
acpid.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: ACPI Event Daemon
|
Summary: ACPI Event Daemon
|
||||||
Name: acpid
|
Name: acpid
|
||||||
Version: 1.0.4
|
Version: 1.0.4
|
||||||
Release: 5
|
Release: 6%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://prdownloads.sourceforge.net/acpid/acpid-%{version}.tar.gz
|
Source: http://prdownloads.sourceforge.net/acpid/acpid-%{version}.tar.gz
|
||||||
@ -12,10 +12,12 @@ Source4: acpid.power.conf
|
|||||||
Patch1: acpid-1.0.3-makefile.patch
|
Patch1: acpid-1.0.3-makefile.patch
|
||||||
Patch2: acpid-1.0.4-warning.patch
|
Patch2: acpid-1.0.4-warning.patch
|
||||||
Patch3: acpid-1.0.4-pie.patch
|
Patch3: acpid-1.0.4-pie.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
ExclusiveArch: ia64 x86_64 %{ix86}
|
ExclusiveArch: ia64 x86_64 %{ix86}
|
||||||
URL: http://acpid.sourceforge.net/
|
URL: http://acpid.sourceforge.net/
|
||||||
Prereq: /sbin/chkconfig, /sbin/service
|
Requires(post): /sbin/chkconfig
|
||||||
|
Requires(preun): /sbin/chkconfig
|
||||||
|
Requires(preun): /sbin/service
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -23,13 +25,13 @@ acpid is a daemon that dispatches ACPI events to user-space programs.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q
|
||||||
%patch1 -p1 -b .makefile
|
%patch1 -p1 -b .makefile
|
||||||
%patch2 -p1 -b .warning
|
%patch2 -p1 -b .warning
|
||||||
%patch3 -p1 -b .pie
|
%patch3 -p1 -b .pie
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -37,21 +39,21 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
mkdir -p $RPM_BUILD_ROOT
|
mkdir -p $RPM_BUILD_ROOT
|
||||||
make install INSTPREFIX=$RPM_BUILD_ROOT
|
make install INSTPREFIX=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/acpi/events
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/acpi/actions
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions
|
||||||
chmod 755 $RPM_BUILD_ROOT/etc/acpi/events
|
chmod 755 $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
|
||||||
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/acpi/events/video.conf
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/video.conf
|
||||||
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/acpi/events/power.conf
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/power.conf
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/log
|
mkdir -p $RPM_BUILD_ROOT/var/log
|
||||||
touch $RPM_BUILD_ROOT/var/log/acpid
|
touch $RPM_BUILD_ROOT/var/log/acpid
|
||||||
chmod 640 $RPM_BUILD_ROOT/var/log/acpid
|
chmod 640 $RPM_BUILD_ROOT/var/log/acpid
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
|
||||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/acpid
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/acpid
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
|
||||||
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/acpid
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -60,18 +62,19 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /etc/acpi
|
%doc COPYING README Changelog TODO
|
||||||
%dir /etc/acpi/events
|
%dir %{_sysconfdir}/acpi
|
||||||
%dir /etc/acpi/actions
|
%dir %{_sysconfdir}/acpi/events
|
||||||
%config %attr(0644,root,root) /etc/acpi/events/video.conf
|
%dir %{_sysconfdir}/acpi/actions
|
||||||
%config %attr(0644,root,root) /etc/acpi/events/power.conf
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/video.conf
|
||||||
%config /etc/logrotate.d/acpid
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/power.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/logrotate.d/acpid
|
||||||
%verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/log/acpid
|
%verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/log/acpid
|
||||||
/usr/bin/acpi_listen
|
%{_bindir}/acpi_listen
|
||||||
/usr/sbin/acpid
|
%{_sbindir}/acpid
|
||||||
%attr(0755,root,root) /etc/rc.d/init.d/acpid
|
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid
|
||||||
/usr/share/man/man8/acpid.8.gz
|
%{_mandir}/man8/acpid.8.gz
|
||||||
/usr/share/man/man8/acpi_listen.8.gz
|
%{_mandir}/man8/acpi_listen.8.gz
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -89,6 +92,9 @@ if [ "$1" -ge "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 07 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-6.fc7
|
||||||
|
- Tons of specfile changes due to review (#225237)
|
||||||
|
|
||||||
* Tue Oct 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-5
|
* Tue Oct 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-5
|
||||||
- Made acpid a PIE binary (#210016)
|
- Made acpid a PIE binary (#210016)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user