Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047465
en ru br
Репозитории ALT

Группа :: Система/X11
Пакет: livecd-runapp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: livecd-runapp
Version: 0.2
Release: alt1

Summary: start an (OpenGL) X11 application in kiosk mode
License: Public domain
Group: System/X11

Url: http://altlinux.org/m-p
Packager: Michael Shigorin <mike at altlinux.org>
BuildArch: noarch

Requires: xinit
Conflicts: livecd-webkiosk

%define confdir %_sysconfdir/sysconfig
%define conffile %confdir/%name
%define skeldir %_sysconfdir/skel
%define xsfile %skeldir/.xsession

%description
%summary
(the particular app is specified via %conffile).

NVIDIA Optimus might be supported through primusrun
(requires primus package installed within LiveCD),
and additional arguments can be specified in that case
to tweak the application's performance estimation.

%prep

%build

%install
mkdir -p %buildroot{%skeldir,%confdir}

touch %buildroot%conffile

cat > %buildroot%xsfile << _EOF_
#!/bin/sh

export DRI_PRIME=1

[ -s %conffile ] && . %conffile || exit 1

PRIMUSRUN=/usr/bin/primusrun
\$PRIMUSRUN \$BINARY \$COMMON_ARGS \$EXPENSIVE_ARGS || \$BINARY \$COMMON_ARGS

POWEROFF=/usr/bin/poweroff
[ -x \$POWEROFF ] && \$POWEROFF ||:
_EOF_
chmod +x %buildroot%xsfile

%files
%ghost %conffile
%xsfile

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin