Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
suspend
suspend.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suspend.spec of Package suspend
# # spec file for package suspend # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: suspend BuildRequires: glib2-devel %if 0%{?suse_version} > 1210 BuildRequires: libgnutls-devel %else BuildRequires: gnutls-devel %endif BuildRequires: libgcrypt-devel BuildRequires: libtool BuildRequires: pciutils-devel BuildRequires: pkgconfig BuildRequires: plymouth-devel BuildRequires: splashy-devel %if 0%{?mandriva_version} BuildRequires: liblzo-devel %else BuildRequires: lzo-devel %endif %ifarch %ix86 x86_64 BuildRequires: libx86-devel %endif Version: 1.0 Release: 0 Summary: A Set Of Tools To Support Sleep Modes License: GPL-2.0 Group: System/Console Url: http://sourceforge.net/projects/suspend Source: %name-utils-%{version}.tar.bz2 Source2: configure-suspend-encryption.sh Source3: README.scripts Source4: mkinitrd-boot.kernel.sh Source5: mkinitrd-boot.userspace.sh Patch1: suspend-comment-configfile-options.diff Patch2: suspend-susescripts.diff Patch3: suspend-default-compress.diff Patch4: suspend-disable-bootsplash.diff Patch5: suspend-default-splash.diff Patch6: suspend-0.80-dont-return-eintr-on-abort.diff Patch10: suspend-0.80-keygen-new-defaults.diff Patch11: suspend-0.80-make-whitelist-test.diff Patch12: suspend-buildfixes.diff Patch13: suspend-0.80-vbetool-retry-on-errors.diff Patch16: suspend-splash-verbose-debug.diff #Mandriva patch to enable plymouth support (Thanks to F. Crozat) Patch17: suspend-plymouth.patch Patch18: s2disk-do-not-fail-hibernation-withoug-a-vt-console BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 ppc ppc64 %if 0%{?suse_version} Supplements: powersave %endif %description A set of tools to support suspending notebooks, working around the specific problems each machine has. Authors: -------- Pavel Machek <pavel@suse.cz> Rafael J. Wysocki <rjw@sisk.pl> and others. %prep %setup -q -n suspend-utils-%{version} %patch1 -p1 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %patch6 -p1 %patch10 -p1 %patch11 -p0 %patch12 -p0 %patch13 -p0 %patch16 -p1 %patch17 -p1 %patch18 -p1 cp %{S:3} scripts/ #cp -vb --suffix=-0.5 %{S:99} whitelist.c %build export CFLAGS="$RPM_OPT_FLAGS" autoreconf -fi ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-initramfsdir=/usr/sbin \ --enable-encrypt \ --enable-plymouth \ --enable-splashy \ --disable-resume-static \ --enable-threads \ --docdir=%{_docdir}/%{name} \ --enable-compress make %install install -d $RPM_BUILD_ROOT/etc make install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts install -m 755 %{S:4} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-resume.kernel.sh install -m 755 %{S:5} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-resume.userspace.sh install -m 755 %{S:2} $RPM_BUILD_ROOT/usr/sbin/ touch $RPM_BUILD_ROOT/etc/suspend.key %clean rm -rf $RPM_BUILD_ROOT %post if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then echo "Skipping recreation of existing initial ramdisks, due" echo "to presence of /var/lib/no_initrd_recreation_by_suspend" exit 0 fi echo "Recreating all initial ramdiscs. This could take a while." echo "(Touch /var/lib/no_initrd_recreation_by_suspend to prevent.)" if [ -x /sbin/mkinitrd_setup ] ; then mkinitrd_setup fi if [ "$YAST_IS_RUNNING" != "instsys" -a \ ! -e /.buildenv -a \ -x /sbin/update-bootloader -a \ -x /sbin/mkinitrd ]; then /sbin/mkinitrd /sbin/update-bootloader --refresh fi %postun if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then echo "Skipping recreation of existing initial ramdisks, due" echo "to presence of /var/lib/no_initrd_recreation_by_suspend" exit 0 fi if [ -x /sbin/mkinitrd_setup ] ; then mkinitrd_setup fi %files %defattr (-,root,root) %config /etc/suspend.conf %dir /lib/mkinitrd %dir /lib/mkinitrd/scripts /lib/mkinitrd/scripts/boot-resume.kernel.sh /lib/mkinitrd/scripts/boot-resume.userspace.sh %ghost %config(noreplace) /etc/suspend.key /usr/sbin/s2disk /usr/sbin/s2ram /usr/sbin/s2both /usr/sbin/resume /usr/sbin/suspend-keygen /usr/sbin/swap-offset /usr/sbin/configure-suspend-encryption.sh %doc README README.s2ram-whitelist README.encryption HOWTO COPYING conf/suspend.conf %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor