Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37480631
en ru br
Репозитории ALT
S:4.04-alt19
D:3.61-alt1
5.1: 3.63-alt4
4.1: 3.36-alt2
4.0: 3.36-alt2
3.0: 2.11-alt1
www.altlinux.org/Changes

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

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

%define kernel_base_version 2.6.18
%define kernel_extra_version %nil
%define kgcc_version 3.4
%define kernel_extra_version_numeric 1.0.0
%define libexecdir /usr/lib

# -*- rpm -*-

%define RPMVERSION 3.61
%define VERSION    3.61
Summary: Kernel loader which uses a FAT, ext2/3 or iso9660 filesystem or a PXE network
Name: syslinux
Version: %RPMVERSION
Release: alt1
License: GPL
Group: System/Kernel and hardware
Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%name-%VERSION.tar.bz2
Source1: %name-gnu.tar.bz2
Source2: isolinux-config
Source3: %name-example-2.35.tar.bz2

ExclusiveArch: %ix86 x86_64
Packager: Hihin Ruslan <ruslandh at altlinux.ru>

%ifarch x86_64
%define mflag -fno-stack-protector
%else
%define mflag -m32 -fno-stack-protector
%endif
Patch: %name-3.61.i386.patch
Patch1: %name-3.61-gfxboot.patch



BuildPreReq: nasm, netpbm
Autoreq: 0

BuildRequires: kernel-headers-modules-std-smp
BuildRequires: gcc%kgcc_version


# NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically

# a system bootloader, and may be necessary for system recovery.
%define _sbindir /sbin

%description
%name is a suite of bootloaders, currently supporting DOS FAT
filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
(PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool,
MEMDISK, which loads legacy operating systems from these media.

%package devel
Summary: Development environment for %name add-on modules
Group: System/Kernel and hardware
BuildPreReq: binutils
Requires: %name


%package examples
Summary: files intended to be used as examles
Group: System/Kernel and hardware
Requires: %name


%package extlinux
Summary: The EXTLINUX bootloader, for booting the local system
Group: System/Kernel and hardware
Requires: %name

%package tftpboot
Summary: %name modules in /tftpboot, available for network booting
Group: System/Kernel and hardware
Requires: %name


%description examples
The %name-examples %version  contains files intended to be used as sample code
and examles isolinux.cfg.

This includes COMBOOT, COM32, and MS-DOS programs as well as LSS
icons.

For developing COM32 programs, you probably want to use the new com32
toolkit (libcom32 and libutil), available in the com32 directory.


%description devel
The %name boot loader contains an API, called COM32, for writing
sophisticated add-on modules.  This package contains the libraries
necessary to compile such modules.


%description extlinux
The EXTLINUX bootloader, for booting the local system, as well as all
the %name/PXELINUX modules in /boot.

%description tftpboot
All the %name/PXELINUX modules directly available for network
booting in the %_localstatedir/tftpboot directory.



%prep
%setup -q -n %name-%VERSION -a1 -a3
%patch -p1
%patch1 -p1

%build
%make CC='gcc %mflag' clean
%make CC='gcc %mflag' installer
%make CC='gcc %mflag' -C sample tidy

%install
install -d -m755  %buildroot/boot %buildroot%_localstatedir/tftpboot
install -d -m755  %buildroot%_includedir
%make_install CC='gcc %mflag'  \
INSTALLDIR=%buildroot \
INSTALLROOT=%buildroot \
LIBBDIR=%buildroot/%_libdir \
LIBBEXECDIR=%buildroot/%_libexecdir \
BINDIR=%_bindir \
MANDIR=%_mandir \
install-all
%make -C sample tidy

install -m755  mkdiskimage syslinux2ansi.pl keytab-lilo.pl %buildroot%_libexecdir/%name/
install -d -m755  %buildroot%_includedir/%name/
mv -T %buildroot%_libexecdir/%name/com32/include/ %buildroot%_includedir/%name
ln  -s %_includedir/%name %buildroot%_libexecdir/%name/com32/%name
cd %buildroot/boot
cp ..%_libexecdir/%name/{*.c32,memdisk} %buildroot/boot
cd %buildroot%_localstatedir/tftpboot
cp ../../..%_libexecdir/%name/{*.c32,memdisk,pxelinux.0} %buildroot%_localstatedir/tftpboot

install -m 0755 %SOURCE2 %buildroot/%_bindir

%files
%doc COPYING NEWS doc/*
%doc sample

%doc README* syslinux.spec
%dir %_libexecdir/%name
%_bindir/syslinux
%_bindir/ppmtolss16
%_bindir/lss16toppm
%_bindir/gethostip
%_bindir/sha1pass
%_bindir/md5pass
%_bindir/isolinux-config
%_man1dir/*

%_libexecdir/%name/*.com
%_libexecdir/%name/*.exe
%_libexecdir/%name/*.c32
%_libexecdir/%name/*.bin
%_libexecdir/%name/*.0
%_libexecdir/%name/memdisk
%_libexecdir/%name/*.pl
%_libexecdir/%name/mkdiskimage

%files devel
%_libexecdir/%name/com32/*
%_includedir/%name/*

%files extlinux
%_sbindir/extlinux
/boot/*

%files examples
%doc sample example


%files tftpboot
%_localstatedir/tftpboot/*

%post extlinux
# If we have a %_libdir/boot/extlinux.conf file, assume extlinux is our bootloader
# and update it.
if [ -f %_libexecdir/boot/extlinux.conf ]; then extlinux --update %_libexecdir/boot; fi

%postun
%changelog

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

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