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

Группа :: Система/Ядро и оборудование
Пакет: setarch

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

Name: setarch
Version: 2.0
Release: alt2

Summary: Personality setter
License: GPL
Group: System/Kernel and hardware
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: setarch-%version.tar

%ifarch sparc sparcv9 sparc64
Provides: sparc32
Obsoletes: sparc32
%endif

%description
This utility tells the kernel to report a different architecture than
the current one, then runs a program in that environment.  It can also
set various personality flags.

%prep
%setup -q

%build
%__cc -o setarch setarch.c %optflags

%install
mkdir -p %buildroot%_bindir %buildroot%_mandir/man8
install -pm644 setarch.8 %buildroot%_mandir/man8/
install -m755 setarch %buildroot%_bindir/

LINKS="linux32 linux64"
%ifarch s390 s390x
LINKS="$LINKS s390 s390x"
%endif
%ifarch %ix86 x86_64 amd64 ia32e
LINKS="$LINKS i386 i486 i586 i686 x86_64"
%endif
%ifarch ppc ppc64
LINKS="$LINKS ppc ppc64 ppc32"
%endif
%ifarch sparc sparc64
LINKS="$LINKS sparc sparc64 sparc32"
%endif
%ifarch mips mips64
LINKS="$LINKS mips mips64 mips32"
%endif
%ifarch ia64
LINKS="$LINKS i386 ia64"
%endif
for i in $LINKS; do
ln -s setarch %buildroot%_bindir/$i
echo '.so man8/setarch.8' > %buildroot%_mandir/man8/$i.8
done

%files
%_bindir/*
%_mandir/man8/*

%changelog

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

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