Репозитории ALT
4.1: | 1.97-alt2 |
4.0: | 1.94-alt9 |
3.0: | 1.09-alt1 |
Другие репозитории
Upstream: | 1.97 |
Группа :: Система/Ядро и оборудование
Пакет: hibernate
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define nuserui userui-0.3.1
Name: hibernate
Version: 1.09
Release: alt1
Summary: Software suspend 2 hibernate script
License: GPL
Group: System/Kernel and hardware
URL: http://suspend2.net/
Packager: Alex Yustasov <yust at altlinux.ru>
Obsoletes: suspend
Source0: hibernate-script-%version.tar.gz
Source1: %nuserui.tar.gz
Source2: %name.logrotate
Patch0: %name-alt-kernel-fix.patch
Patch1: %name-alt-blacklist.patch
Patch2: %name-xhacks.patch
Patch4: userui-0.3.1-alt-Makefile-fixes.patch
BuildPreReq: freetype2-devel-static glibc-devel-static
BuildPreReq: libjpeg-devel-static libpng-devel-static zlib-devel-static
%description
hibernate is a shell script that handles the process of getting ready
to suspend to disk and to resume from disk. It requires the Software
Suspend 2 patches available at http://suspend2.net/.
After installing you will want to run 'hibernate -h' to see available
options and modify your /etc/hibernate/hibernate.conf to set them.
This package includes %nuserui in the installation.
%prep
%setup -a 1 -q -n hibernate-script-%version
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch4 -p0
%build
pushd %nuserui
%__ln_s ../fbsplash/linux fbanim/linux
%make
popd
%install
export BASE_DIR=%buildroot \
PREFIX=%_prefix \
MAN_DIR=%buildroot%_mandir \
SCRIPTLET_DIR=%buildroot%_sysconfdir/hibernate/scriptlets.d/
sh install.sh
unset BASE_DIR PREFIX MAN_DIR SCRIPTLET_DIR
pushd %buildroot/etc/hibernate
%__cp %name.conf hibernate2.4.conf
%__cp %name.conf hibernate2.6.conf
%__rm -f %name.conf
popd
%__mkdir_p %buildroot%_sysconfdir/logrotate.d/
%__install -m640 %SOURCE2 %buildroot%_sysconfdir/logrotate.d/%name
%__install -m755 %nuserui/suspend2ui_{fbsplash,text} %buildroot/%_sbindir
%__mkdir_p doc/%nuserui
%__cp -a README CHANGELOG TODO SCRIPTLET-API hibernate.vim init.d/ admin/ \
doc/
%__cp -a %nuserui/{KERNEL_API,USERUI_API,ChangeLog,README,TODO} \
doc/%nuserui/
%files
%_sbindir/*
%config(noreplace) %_sysconfdir/hibernate
%config(noreplace) %_sysconfdir/logrotate.d/%name
%doc doc/*
%_mandir/man?/*
%changelog
…
Полный changelog можно просмотреть здесь
Name: hibernate
Version: 1.09
Release: alt1
Summary: Software suspend 2 hibernate script
License: GPL
Group: System/Kernel and hardware
URL: http://suspend2.net/
Packager: Alex Yustasov <yust at altlinux.ru>
Obsoletes: suspend
Source0: hibernate-script-%version.tar.gz
Source1: %nuserui.tar.gz
Source2: %name.logrotate
Patch0: %name-alt-kernel-fix.patch
Patch1: %name-alt-blacklist.patch
Patch2: %name-xhacks.patch
Patch4: userui-0.3.1-alt-Makefile-fixes.patch
BuildPreReq: freetype2-devel-static glibc-devel-static
BuildPreReq: libjpeg-devel-static libpng-devel-static zlib-devel-static
%description
hibernate is a shell script that handles the process of getting ready
to suspend to disk and to resume from disk. It requires the Software
Suspend 2 patches available at http://suspend2.net/.
After installing you will want to run 'hibernate -h' to see available
options and modify your /etc/hibernate/hibernate.conf to set them.
This package includes %nuserui in the installation.
%prep
%setup -a 1 -q -n hibernate-script-%version
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch4 -p0
%build
pushd %nuserui
%__ln_s ../fbsplash/linux fbanim/linux
%make
popd
%install
export BASE_DIR=%buildroot \
PREFIX=%_prefix \
MAN_DIR=%buildroot%_mandir \
SCRIPTLET_DIR=%buildroot%_sysconfdir/hibernate/scriptlets.d/
sh install.sh
unset BASE_DIR PREFIX MAN_DIR SCRIPTLET_DIR
pushd %buildroot/etc/hibernate
%__cp %name.conf hibernate2.4.conf
%__cp %name.conf hibernate2.6.conf
%__rm -f %name.conf
popd
%__mkdir_p %buildroot%_sysconfdir/logrotate.d/
%__install -m640 %SOURCE2 %buildroot%_sysconfdir/logrotate.d/%name
%__install -m755 %nuserui/suspend2ui_{fbsplash,text} %buildroot/%_sbindir
%__mkdir_p doc/%nuserui
%__cp -a README CHANGELOG TODO SCRIPTLET-API hibernate.vim init.d/ admin/ \
doc/
%__cp -a %nuserui/{KERNEL_API,USERUI_API,ChangeLog,README,TODO} \
doc/%nuserui/
%files
%_sbindir/*
%config(noreplace) %_sysconfdir/hibernate
%config(noreplace) %_sysconfdir/logrotate.d/%name
%doc doc/*
%_mandir/man?/*
%changelog
…
Полный changelog можно просмотреть здесь