Name: suspend Version: 0.8 Release: 12mamba Summary: The user space tools implementing kernel capabilities of suspending to RAM or disk Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://suspend.sourceforge.net Source: http://heanet.dl.sourceforge.net/sourceforge/suspend/suspend-%{version}.tar.gz Source1: %{name}-lid Source2: %{name}-pwrbtn Source3: %{name}-lid-sleep.sh Source4: %{name}-lid-hibernate.sh Source5: %{name}-pm-config Patch0: %{name}-0.8-MacBookPro1.1.patch Patch1: %{name}-0.8-config.patch Patch2: %{name}-0.8-Zepto.patch Patch3: %{name}-0.8-HP550.patch Patch4: %{name}-0.8-Acer_Extensa_5220.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: acpid BuildRequires: glibc-devel BuildRequires: libfreetype-devel BuildRequires: libgcrypt-devel BuildRequires: libgpg-error-devel BuildRequires: libjpeg-devel BuildRequires: liblzo-devel BuildRequires: libpng-devel BuildRequires: libx86-devel BuildRequires: libz-devel BuildRequires: splashutils-devel ## AUTOBUILDREQ-END BuildRequires: libpci-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root PreReq: pm-utils Requires: acpid Conflicts: hibernate %description The user space tools implementing kernel capabilities of suspending to RAM or disk. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %configure \ --enable-fbsplash \ --enable-compress \ --enable-encrypt \ --enable-create-device \ --disable-resume-static %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}{%{_sbindir},%{_sysconfdir}} %makeinstall SUSPEND_DIR=%{_sbindir} MKNOD=/bin/true install -m0644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/acpi/events/lid install -m0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/events/pwrbtn install -m0755 -D %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/actions/lid-sleep.sh install -m0755 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/lid-hibernate.sh install -m0755 -D %{SOURCE5} %{buildroot}%{_sysconfdir}/pm/config.d/00-uswsusp %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post grep path_to_resume_device_file /etc/suspend.conf >/dev/null && { SWAPLINE=`/sbin/swapon -s |grep -m1 ^/dev/` SWAPDEV=${SWAPLINE/ */} [ $SWAPDEV ] && sed -i "s||$SWAPDEV|" /etc/suspend.conf } service acpid condrestart exit 0 %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/suspend.conf %{_sysconfdir}/pm/config.d/00-uswsusp %{_sysconfdir}/acpi/events/pwrbtn %exclude %{_sysconfdir}/acpi/events/lid %{_sysconfdir}/acpi/actions/lid-sleep.sh %{_sysconfdir}/acpi/actions/lid-hibernate.sh %{_libdir}/suspend/resume %{_sbindir}/s2both %{_sbindir}/s2disk %{_sbindir}/s2ram %{_sbindir}/swap-offset %{_sbindir}/suspend-keygen %{_docdir}/suspend/* %doc ChangeLog README README.s2ram-whitelist TODO %changelog * Mon Sep 13 2010 Silvan Calarco 0.8-12mamba - rebuilt with --disable-resume-static for use with dracut * Fri Jul 30 2010 Silvan Calarco 0.8-11mamba - rebuilt with libjpeg 7 * Thu May 14 2009 Silvan Calarco 0.8-10mamba - remove lid acpi script to let high level tools (KDE4) manage lid events * Thu May 14 2009 Silvan Calarco 0.8-9mamba - added requirement and configuration for pm-utils * Wed Mar 25 2009 Silvan Calarco 0.8-8mamba - configure power button event for kde4 shutdown dialog * Tue Sep 16 2008 Silvan Calarco 0.8-7mamba - added patch for Arcer Extensa 5220 s2ram support * Mon Sep 15 2008 Silvan Calarco 0.8-6mamba - added whitelist patch for HP 550 - sleep.sh: use a wildcard to better identify lib state file in /proc/acpi - suspend-lid: do suspend to disk instead of suspend to ram * Wed Mar 19 2008 Silvan Calarco 0.8-5mamba - remove a grep message during upgrade - added requirement for splashutils-devel * Sun Mar 09 2008 Silvan Calarco 0.8-4mamba - added Zepto Znote notebooks to whitelist - added sleep.sh with support for closing/opening lid * Sat Feb 09 2008 Silvan Calarco 0.8-3mamba - added acpi script; conflict with hibernate * Fri Feb 08 2008 Silvan Calarco 0.8-2mamba - added patch to support MacBookPro 1.1 series - added default configuration patch to support compression by default - build with fbsplash support - add post code for suspend device automatic configuration - enabled compression and encryption support * Tue Jan 08 2008 Silvan Calarco 0.8-1mamba - update to 0.8 - build against static libpci * Fri Feb 16 2007 Silvan Calarco 0.5-1qilnx - update to version 0.5 by autospec * Tue Oct 24 2006 Silvan Calarco 0.2-1qilnx - package created by autospec