Blame SPECS/acpid.spec

e6bb42
Summary: ACPI Event Daemon
e6bb42
Name: acpid
e6bb42
Version: 2.0.19
e6bb42
Release: 1%{?dist}
e6bb42
License: GPLv2+
e6bb42
Group: System Environment/Daemons
e6bb42
Source: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz
e6bb42
Source1: acpid.init
e6bb42
Source2: acpid.video.conf
e6bb42
Source3: acpid.power.conf
e6bb42
Source4: acpid.power.sh
e6bb42
Source5: acpid.service
e6bb42
Source6: acpid.sysconfig
e6bb42
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e6bb42
ExclusiveArch: ia64 x86_64 %{ix86}
e6bb42
URL: http://sourceforge.net/projects/acpid2/
e6bb42
Requires(post): /sbin/chkconfig
e6bb42
Requires(preun): /sbin/chkconfig
e6bb42
Requires: systemd
e6bb42
e6bb42
e6bb42
%description
e6bb42
acpid is a daemon that dispatches ACPI events to user-space programs.
e6bb42
e6bb42
%package sysvinit
e6bb42
Summary: ACPI Event Daemon
e6bb42
Group: System Environment/Daemons
e6bb42
Requires: %{name} = %{version}-%{release}
e6bb42
Requires(preun): /sbin/service
e6bb42
e6bb42
%description sysvinit
e6bb42
The acpid-sysvinit contains SysV initscript.
e6bb42
e6bb42
%prep
e6bb42
%setup -q
e6bb42
e6bb42
e6bb42
%build
e6bb42
%configure
e6bb42
make %{?_smp_mflags}
e6bb42
e6bb42
e6bb42
%install
e6bb42
rm -rf %{buildroot}
e6bb42
mkdir -p %{buildroot}
e6bb42
make install DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}
e6bb42
e6bb42
mkdir -p %{buildroot}%{_sysconfdir}/acpi/events
e6bb42
mkdir -p %{buildroot}%{_sysconfdir}/acpi/actions
e6bb42
mkdir -p %{buildroot}/lib/systemd/system
e6bb42
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
e6bb42
e6bb42
chmod 755 %{buildroot}%{_sysconfdir}/acpi/events
e6bb42
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/events/videoconf
e6bb42
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/events/powerconf
e6bb42
install -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh
e6bb42
install -m 644 %{SOURCE5} %{buildroot}/lib/systemd/system
e6bb42
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid
e6bb42
e6bb42
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
e6bb42
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/acpid
e6bb42
e6bb42
e6bb42
%clean
e6bb42
rm -rf %{buildroot}
e6bb42
e6bb42
e6bb42
%files
e6bb42
%defattr(-,root,root)
e6bb42
%doc %{_docdir}/%{name}-%{version}
e6bb42
/lib/systemd/system/%{name}.service
e6bb42
%dir %{_sysconfdir}/acpi
e6bb42
%dir %{_sysconfdir}/acpi/events
e6bb42
%dir %{_sysconfdir}/acpi/actions
e6bb42
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/videoconf
e6bb42
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/powerconf
e6bb42
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh
e6bb42
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid
e6bb42
%{_bindir}/acpi_listen
e6bb42
%{_sbindir}/acpid
e6bb42
%{_sbindir}/kacpimon
e6bb42
%{_mandir}/man8/acpid.8.gz
e6bb42
%{_mandir}/man8/acpi_listen.8.gz
e6bb42
%{_mandir}/man8/kacpimon.8.gz
e6bb42
e6bb42
%files sysvinit
e6bb42
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid
e6bb42
e6bb42
%pre
e6bb42
if [ "$1" = "2" ]; then
e6bb42
	conflist=`ls %{_sysconfdir}/acpi/events/*.conf 2> /dev/null`
e6bb42
	RETCODE=$?
e6bb42
	if [ $RETCODE -eq 0 ]; then
e6bb42
		for i in $conflist; do
e6bb42
			rmdot=`echo $i | sed 's/.conf/conf/'`
e6bb42
	 		mv $i $rmdot
e6bb42
		done
e6bb42
	fi
e6bb42
fi
e6bb42
e6bb42
%post
e6bb42
%systemd_post %{name}.service
e6bb42
e6bb42
%preun
e6bb42
%systemd_preun %{name}.service
e6bb42
e6bb42
%postun
e6bb42
%systemd_postun_with_restart %{name}.service
e6bb42
e6bb42
%triggerun -- %{name} < 2.0.10-2
e6bb42
        /sbin/chkconfig --del acpid >/dev/null 2>&1 || :
e6bb42
        /bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
e6bb42
e6bb42
%triggerpostun -n %{name}-sysvinit -- %{name} < 2.0.10-2
e6bb42
        /sbin/chkconfig --add acpid >/dev/null 2>&1 || :
e6bb42
e6bb42
e6bb42
%changelog
e6bb42
* Tue May 28 2013 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.19-1
e6bb42
- New version
e6bb42
e6bb42
* Mon Feb 25 2013 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.18-3
e6bb42
- Switched to systemd-rpm macros
e6bb42
  Resolves: rhbz#850020
e6bb42
e6bb42
* Fri Feb 15 2013 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.18-2
e6bb42
- Fixed source URL
e6bb42
e6bb42
* Fri Feb 15 2013 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.18-1
e6bb42
- New version
e6bb42
- Replaced RPM_BUILD_ROOT variables by {buildroot} macros
e6bb42
- Updated URLs to project home page and source code
e6bb42
- Dropped mk patch, handled better way in the spec
e6bb42
e6bb42
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.17-2
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e6bb42
e6bb42
* Mon Sep 17 2012 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.17-1
e6bb42
- New version
e6bb42
  Resolves: rhbz#857695
e6bb42
e6bb42
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-5
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e6bb42
e6bb42
* Mon Jul  9 2012 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.16-4
e6bb42
- Update of power.sh to be compatible with new systemd-loginctl
e6bb42
  Resolves: rhbz#819547
e6bb42
e6bb42
* Thu Jun 14 2012 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.16-3
e6bb42
- Silenced possible ck-list-sessions errors in power.sh
e6bb42
e6bb42
* Thu Jun 14 2012 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.16-2
e6bb42
- Added support for systemd-loginctl list-sessions
e6bb42
  Resolves: rhbz#819559
e6bb42
e6bb42
* Thu Mar 29 2012 Jaroslav Å karvada <jskarvad@redhat.com> - 2.0.16-1
e6bb42
- New version
e6bb42
e6bb42
* Fri Mar 16 2012 Jiri Skala <jskala@redhat.com> - 2.0.15-1
e6bb42
- updated to latest upstream 2.0.15
e6bb42
e6bb42
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.14-3
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e6bb42
e6bb42
* Mon Jan 02 2012 Jiri Skala <jskala@redhat.com> - 2.0.14-2
e6bb42
- fixes #722325 - xfce4-power-manager does not seem to be supported
e6bb42
e6bb42
* Mon Dec 19 2011 Jiri Skala <jskala@redhat.com> - 2.0.14-1
e6bb42
- updated to latest upstream 2.0.14
e6bb42
e6bb42
* Wed Nov 16 2011 Jiri Skala <jskala@redhat.com> - 2.0.13-1
e6bb42
- updated to latest upstream 2.0.13
e6bb42
e6bb42
* Tue Aug 16 2011 Jiri Skala <jskala@redhat.com> - 2.0.12-1
e6bb42
- updated to latest upstream 2.0.12
e6bb42
e6bb42
* Mon Aug 01 2011 Jiri Skala <jskala@redhat.com> - 2.0.11-1
e6bb42
- updated to latest upstream 2.0.11
e6bb42
e6bb42
* Mon Jun 27 2011 Jiri Skala <jskala@redhat.com> - 2.0.10-2
e6bb42
- fixes #716923 - move SysV initscript file into an optional subpackage
e6bb42
e6bb42
* Wed May 18 2011 Jiri Skala <jskala@redhat.com> - 2.0.10-1
e6bb42
- update to latest upstream 2.0.10
e6bb42
e6bb42
* Fri May 06 2011 Bill Nottingham <notting@redhat.com> - 2.0.9-4
e6bb42
- fix systemd scriptlets to properly handle upgrade
e6bb42
e6bb42
* Tue May 03 2011 Jiri Skala <jskala@redhat.com> - 2.0.9-3
e6bb42
- corrected relase number to be min equal to f15
e6bb42
e6bb42
* Mon Apr 18 2011 Jiri Skala <jskala@redhat.com> - 2.0.9-1
e6bb42
- update to latest upstream 2.0.9
e6bb42
e6bb42
* Wed Feb 16 2011 Jiri Skala <jskala@redhat.com> - 2.0.8-1
e6bb42
- update to latest upstream 2.0.8
e6bb42
e6bb42
* Wed Feb 09 2011 Jiri Skala <jskala@redhat.com> - 2.0.7-3
e6bb42
- fixes unused varable and coparison of different var types
e6bb42
e6bb42
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e6bb42
e6bb42
* Wed Dec 08 2010 Jiri Skala <jskala@redhat.com> - 2.0.7-1
e6bb42
- update to latest upstream
e6bb42
- fixes #660459 - Should be able to set options with /etc/sysconfig/acpi
e6bb42
e6bb42
* Wed Nov 03 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-5
e6bb42
- fixes #648221 - SELinux is preventing /sbin/iwconfig access to a leaked /dev/input/event0 file descriptor
e6bb42
e6bb42
* Wed Sep 29 2010 jkeating - 2.0.5-4
e6bb42
- Rebuilt for gcc bug 634757
e6bb42
e6bb42
* Mon Sep 13 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-3
e6bb42
- fixes #629740 - acpid doesn't fork, but systemd unit file claims otherwise
e6bb42
e6bb42
* Wed Aug 11 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-2
e6bb42
- fixes #617317 - Providing native systemd file for upcoming F14 Feature Systemd
e6bb42
e6bb42
* Tue Jul 13 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-1
e6bb42
- latest upstream version
e6bb42
- fixes #613315 kernel-2.6.35 doesn't create /proc/acpi/event
e6bb42
e6bb42
* Wed May 05 2010 Jiri Skala <jskala@redhat.com> - 2.0.4-1
e6bb42
- latest upstream version
e6bb42
e6bb42
* Wed Mar 17  2010 Jiri Skala <jskala@redhat.com> - 2.0.3-2
e6bb42
- fixes #575320 - acpid fails to load any event config files
e6bb42
e6bb42
* Thu Feb 25 2010 Jiri Skala <jskala@redhat.com> - 2.0.2-1
e6bb42
- latest upstream version
e6bb42
- removed spare umask
e6bb42
- fixes missing headers
e6bb42
e6bb42
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e6bb42
e6bb42
* Thu Apr 23 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.10-1
e6bb42
- Updated to version 1.0.10
e6bb42
e6bb42
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
e6bb42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e6bb42
e6bb42
* Wed Feb 04 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.8-2
e6bb42
- power.sh works with KDE 4.* (#483417)
e6bb42
e6bb42
* Tue Nov 11 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.8-1
e6bb42
- Updated to version 1.0.8
e6bb42
- power.sh works with ConsoleKit >= 0.3.0 (#470752)
e6bb42
- Fixed conditions in power.sh, which look for power-managers (#470752)
e6bb42
- Added check to init script
e6bb42
e6bb42
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.6-8
e6bb42
- fix license tag
e6bb42
e6bb42
* Thu Apr 17 2008 Bill Nottingham <notting@redhat.com> - 1.0.6-7.fc9
e6bb42
- adjust start/stop priority to not conflict with HAL (#442759)
e6bb42
e6bb42
* Thu Feb 14 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-6.fc9
e6bb42
- Update of acpid-1.0.6-makefile.patch, it fix building with gcc 4.3
e6bb42
e6bb42
* Wed Jan 23 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-5.fc9
e6bb42
- Fixed managing of power button (#361501)
e6bb42
- Fixed power script to check for KDE power manager (#419331)
e6bb42
e6bb42
* Fri Nov 23 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-4.fc9
e6bb42
- Removed old logrotate file
e6bb42
- Fixed socket leak (#394431)
e6bb42
- Fixed dumping useless info to log (#389581)
e6bb42
e6bb42
* Thu Oct 23 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-3.fc9
e6bb42
- Silent initscript
e6bb42
- Resolves: #345611
e6bb42
e6bb42
* Wed Sep 26 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-2.fc8
e6bb42
- Fixed leak of a file descriptor
e6bb42
- Resolves: #304761
e6bb42
e6bb42
* Tue Aug 07 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-1.fc8
e6bb42
- Updated to version 1.0.6
e6bb42
e6bb42
* Wed Jul 25 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.4-8.fc8
e6bb42
- Fixed init script to comply with LSB standard
e6bb42
- Resolves: #237754
e6bb42
e6bb42
* Wed Feb 14 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-7.fc7
e6bb42
- Dropped /var/log/acpid ownership as per review (225237)
e6bb42
e6bb42
* Wed Feb 07 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-6.fc7
e6bb42
- Tons of specfile changes due to review (#225237)
e6bb42
e6bb42
* Tue Oct 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-5
e6bb42
- Made acpid a PIE binary (#210016)
e6bb42
e6bb42
* Thu Aug 24 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-4
e6bb42
- Made a better fix for the powerdown button which checks if g-p-m is running
e6bb42
- Don't install sample.conf anymore, not needed
e6bb42
e6bb42
* Thu Aug 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-3
e6bb42
- Disable the automatic shutdown -h via powerdown button by default due to
e6bb42
  conflicts with gnome-power-manager
e6bb42
e6bb42
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-2.1
e6bb42
- rebuild
e6bb42
e6bb42
* Wed Mar 01 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-2
e6bb42
- Added video.conf file to turn on DPMS when opening the laptop lid. Disabled
e6bb42
  by default.
e6bb42
e6bb42
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-1.2
e6bb42
- rebuilt for new gcc4.1 snapshot and glibc changes
e6bb42
e6bb42
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
e6bb42
- rebuilt
e6bb42
e6bb42
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> - 1.0.4-1
e6bb42
- update to 1.0.4
e6bb42
e6bb42
* Mon Aug  9 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3-2
e6bb42
- Update to 1.0.3 (fixes #128834)
e6bb42
- s/Copyright/License/
e6bb42
- Add logrotate config file (#110677, from Michal Jaegermann)
e6bb42
- Don't verify contents of /var/log/acpid (#125862)
e6bb42
- Use $RPM_OPT_FLAGS
e6bb42
- Fix and cleanup acpid-1.0.1-pm1.patch
e6bb42
- Add condrestart to %%postun
e6bb42
e6bb42
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
e6bb42
- rebuilt
e6bb42
e6bb42
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
e6bb42
- rebuilt
e6bb42
e6bb42
* Wed Oct 22 2003  Bill Nottingham <notting@redhat.com> 1.0.2-5
e6bb42
- fix handling of sample.conf (#107160)
e6bb42
- mark for translations (#107459)
e6bb42
e6bb42
* Sun Oct 19 2003 Florian La Roche <Florian.LaRoche@redhat.de>
e6bb42
- add %%clean specfile target
e6bb42
e6bb42
* Wed Oct  1 2003  Bill Nottingham <notting@redhat.com> 1.0.2-3
e6bb42
- re-enable x86
e6bb42
- don't load the button module
e6bb42
e6bb42
* Thu Aug  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-2
e6bb42
- no x86 for now
e6bb42
e6bb42
* Mon Jul  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-1
e6bb42
- update to 1.0.2
e6bb42
e6bb42
* Wed Dec 11 2002  Bill Nottingham <notting@redhat.com> 1.0.1-4
e6bb42
- don't start if /proc/acpi/event isn't there
e6bb42
e6bb42
* Thu Nov 14 2002  Bill Nottingham <notting@redhat.com> 1.0.1-3
e6bb42
- build on more arches
e6bb42
e6bb42
* Mon Aug 26 2002  Bill Nottingham <notting@redhat.com> 1.0.1-2
e6bb42
- tweak default config to run shutdown -h now on a power button event
e6bb42
e6bb42
* Thu Aug 22 2002  Bill Nottingham <notting@redhat.com> 1.0.1-1
e6bb42
- initial build, bang on included specfile
e6bb42
e6bb42
* Fri Mar 15 2002  Tim Hockin <thockin@sun.com>
e6bb42
  - Updated RPM spec with patch from sun for chkconfig on/off
e6bb42
  - Add Changelog, make 'make rpm' use it.
e6bb42
e6bb42
* Wed Mar 13 2002  Tim Hockin <thockin@sun.com>
e6bb42
  - Fixed logging bug - not appending to log (O_APPEND needed)
e6bb42
  - Fix 'make install' to not need root access
e6bb42
  - Fix RPM spec to not need root
e6bb42
e6bb42
* Thu Sep 6 2001 Tim Hockin <thockin@sun.com>
e6bb42
  - 1.0.0
e6bb42
e6bb42
* Thu Aug 16 2001  Tim Hockin <thockin@sun.com>
e6bb42
  - Added commandline options to actions
e6bb42
e6bb42
* Wed Aug 15 2001  Tim Hockin <thockin@sun.com>
e6bb42
  - Added UNIX domain socket support
e6bb42
  - Changed /etc/acpid.d to /etc/acpid/events
e6bb42
e6bb42
* Mon Aug 13 2001  Tim Hockin <thockin@sun.com>
e6bb42
  - added changelog
e6bb42
  - 0.99.1-1
e6bb42