Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37858322
en ru br
ALT Linux repos
S:1.4.1-alt2.qa1
D:1.1.2.2-alt0.1
5.0: 1.2.4-alt1
4.1: 1.1.2.4-alt0.M41.1
4.0: 0.20.0.cvs20070215-alt4

Group :: System/Base
RPM: pm-utils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:           pm-utils
URL:            http://webcvs.freedesktop.org/pm-utils/
Version:        0.20.0.cvs20070215
Release:        alt4
Summary:        Tools to suspend and hibernate computer.
Summary(ru_RU.UTF-8):  Набор утилит для приостановления работы компьютера.
License:        GNU General Public License v2 (GPL)
Group:          System/Base
Source:         %{name}-%{version}.tar.gz
Source1:        pm-utils-suse.tar.gz

#Patch0:         SUSE-pm-utils-0.20.0.20061114-suse.diff

#Patch1:         SUSE-pm-utils-fix-source-configs.diff
Patch2:         SUSE-pm-utils-uswsusp-support.diff
Patch3:         SUSE-pm-utils-comment-configfile.diff
#Patch5:         SUSE-pm-utils-make-hooks-verbose.diff
#Patch4:         SUSE-pm-utils-fix-on_ac_power-bug221999.diff


Requires:       hal
AutoReqProv:    yes, noshell

%description
Provides simple shell command line tools to suspend and hibernate computer
that can be used to run vendor or distro supplied scripts on suspend and resume.

%prep
%setup -n %name -b 1
#%patch1 -p0
%patch2 -p0
%patch3 -p0
#%patch4 -p0
#%patch5 -p0
#%patch0 -p0

%build
%__autoreconf
%configure
%make

%install
%make DESTDIR=%buildroot install
install -m755 -d notused-upstream-hooks
mv %buildroot/%_sysconfdir/pm/hooks/01grub notused-upstream-hooks
#mv %buildroot/%_sysconfdir/pm/hooks/20video upstream-hooks
#mv %buildroot/%_sysconfdir/pm/hooks/49bluetooth upstream-hooks
#mv %buildroot/%_sysconfdir/pm/hooks/90clock upstream-hooks
## Copy notations file to directory upstream-hooks
#cp %{S:2} upstream-hooks
cd ../pm-utils-suse
cp -r hooks %buildroot/etc/pm/

%files
%defattr (-,root,root)
%_sysconfdir/pm
%config(noreplace) %_sysconfdir/pm/config
%_sbindir/*
%_bindir/*
%_man1dir/*
%doc README COPYING ChangeLog AUTHORS
%doc notused-upstream-hooks

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin