2 Summary: Kernel loader which uses a FAT, ext2/3 or iso9660 filesystem or a PXE network
7 Url: http://syslinux.zytor.com/
9 Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.gz
10 ExclusiveArch: %{ix86} x86_64
11 Buildroot: %{_tmppath}/%{name}-%{version}-root
12 BuildRequires: nasm >= 0.98.39, perl
13 Source101: syslinux-rpmlintrc
14 # >> gbp-patch-tags # auto-added by gbp
15 Patch0: 0001-btrfs-Correctly-determine-the-installation-subvolume.patch
16 # << gbp-patch-tags # auto-added by gbp
23 Requires: mtools, libc.so.6
24 %define my_cc gcc -m32
27 # NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically
28 # a system bootloader, and may be necessary for system recovery.
29 %define _sbindir /sbin
32 SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
33 filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
34 (PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX). It also includes a tool,
35 MEMDISK, which loads legacy operating systems from these media.
38 Summary: Development environment for SYSLINUX add-on modules
39 Group: Development/Libraries
43 The SYSLINUX boot loader contains an API, called COM32, for writing
44 sophisticated add-on modules. This package contains the libraries
45 necessary to compile such modules.
48 Summary: The EXTLINUX bootloader, for booting the local system
53 The EXTLINUX bootloader, for booting the local system, as well as all
54 the SYSLINUX/PXELINUX modules in /boot.
57 Summary: SYSLINUX modules in /var/lib/tftpboot, available for network booting
58 Group: Applications/Internet
62 All the SYSLINUX/PXELINUX modules directly available for network
63 booting in the /var/lib/tftpboot directory.
66 %setup -q -n syslinux-%{version}
68 # >> gbp-apply-patches # auto-added by gbp
70 # << gbp-apply-patches # auto-added by gbp
73 make CC='%{my_cc}' clean
74 make CC='%{my_cc}' installer
75 make CC='%{my_cc}' -C sample tidy
79 make CC='%{my_cc}' install-all \
80 INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
81 LIBDIR=%{_libdir} DATADIR=%{_datadir} \
82 MANDIR=%{_mandir} INCDIR=%{_includedir} \
83 TFTPBOOT=/var/lib/tftpboot EXTLINUXDIR=/boot/extlinux
84 make CC='%{my_cc}' -C sample tidy
92 %dir %{_datadir}/syslinux
93 %{_datadir}/syslinux/*.com
94 %{_datadir}/syslinux/*.exe
95 %{_datadir}/syslinux/*.c32
96 %{_datadir}/syslinux/*.bin
97 %{_datadir}/syslinux/*.0
98 %{_datadir}/syslinux/memdisk
99 %{_datadir}/syslinux/dosutil
102 %defattr(-,root,root)
103 %doc COPYING NEWS README doc/*
105 %doc %{_mandir}/man*/*
106 %{_datadir}/syslinux/com32
107 %{_datadir}/syslinux/diag
110 %defattr(-,root,root)
115 %defattr(-,root,root)
119 # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
121 if [ -f /boot/extlinux/extlinux.conf ]; then \
122 ln -sf /boot/extlinux/extlinux.conf /etc/extlinux.conf; \
123 extlinux --update /boot/extlinux ; \
124 elif [ -f /boot/extlinux.conf ]; then \
125 mkdir -p /boot/extlinux && \
126 mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
127 extlinux --update /boot/extlinux ; \