Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
pm-utils
pm-utils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pm-utils.spec of Package pm-utils
# # spec file for package pm-utils (Version 0.99.4.20071229) # # Copyright (c) 2009 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/ # # norootforbuild Name: pm-utils Url: http://webcvs.freedesktop.org/pm-utils/ Version: 0.99.4.20071229 Release: 17 %define pm_utils_suse_version 20090621 Summary: Tools to suspend and hibernate computers License: GPL v2 or later Group: System/Base Source: %{name}-%{version}.tar.bz2 Patch1: pm-utils-0.99.4-on_ac_power-no-dbus-fallback.diff Patch2: pm-utils-0.99.4-QUIRK-variables-changed.diff Patch3: pm-utils-0.99.4-uswsusp-support.diff Patch4: pm-utils-0.99.4-configfile.diff Patch5: pm-utils-0.99.3-README-fix.diff Patch6: pm-utils-0.99.4-fix-broken-dbus-send.diff Patch99: pm-utils-0.99.4-suse.diff Source1: pm-utils-suse-%{pm_utils_suse_version}.tar.bz2 Source2: README.upstream-hooks Source3: README.update Source4: rtcwake.config Source5: 01ndiswrapper Source6: powersave BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: /usr Requires: hal %description pm-utils provide simple shell command line tools to suspend and hibernate computers that can be used to run vendor or distro supplied scripts on suspend and resume. Authors: -------- Bill Nottingham <notting@redhat.com> Peter Jones <pjones@redhat.com> David Zeuthen <davidz@redhat.com> Richard Hughes <richard@hughsie.com> %prep %setup -b 1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p0 %patch6 -p1 %patch99 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man make %install make install DESTDIR=$RPM_BUILD_ROOT mkdir -p examples/hooks for i in 01grub 20video 49bluetooth 55battery 60sysfont 65alsa 90clock 99video; do mv $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d/$i examples/hooks done cp %{S:2} hooks cp %{S:3} $RPM_BUILD_ROOT/etc/pm/ cp %{S:4} $RPM_BUILD_ROOT/etc/pm/config.d/ cp %{S:5} examples/hooks install -m 755 %{S:6} $RPM_BUILD_ROOT/usr/bin/ cd ../pm-utils-suse cp hooks/sleep.d/* $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d/ cp hooks/power.d/* $RPM_BUILD_ROOT/usr/lib/pm-utils/power.d/ mkdir -p $RPM_BUILD_ROOT/var/log/ touch $RPM_BUILD_ROOT/var/log/pm-suspend.log %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %dir /etc/pm %dir /etc/pm/config.d %dir /etc/pm/power.d %dir /etc/pm/sleep.d %doc /etc/pm/README.update %config(noreplace) /etc/pm/config.d/rtcwake.config /usr/sbin/* /usr/bin/* /usr/lib/pm-utils %_mandir/man1/* %doc README ChangeLog AUTHORS ../pm-utils-suse/doc/README.smart-suspend-to-RAM %doc examples %ghost %verify(not md5 size mtime) /var/log/pm-suspend.log %_bindir/powersave %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