# # spec file for package syslinux # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define realname syslinux %ifarch x86_64 %define efitype 64 %else %define efitype 32 %endif %define tftpboot /srv/tftpboot Name: syslinux-vanilla ExclusiveArch: %ix86 x86_64 BuildRequires: libext2fs-devel BuildRequires: libpng-devel BuildRequires: libuuid-devel BuildRequires: nasm BuildRequires: netpbm BuildRequires: perl BuildRequires: python BuildRequires: gnu-efi BuildRequires: xz BuildRequires: upx Url: http://www.syslinux.org/wiki/index.php/The_Syslinux_Project Requires: mtools Conflicts: syslinux Summary: Boot Loader for Linux License: GPL-2.0+ Group: System/Boot Version: 6.03 Release: 25.10 Source: https://www.kernel.org/pub/linux/utils/boot/%{realname}/%{realname}-%{version}.tar.xz Source1: isolinux-config BuildRoot: %{_tmppath}/%{realname}-%{version}-build %description SYSLINUX is a boot loader for the Linux operating system which operates off an MS-DOS or Windows FAT file system. It is intended to simplify first-time installation of Linux and for creation of rescue and other special purpose boot disks. %package -n pxelinux Summary: PXE Boot Loader for Linux Group: System/Boot AutoReq: 0 Conflicts: syslinux-pxelinux %description -n pxelinux PXELINUX is a Syslinux derivative, for booting from a network server using a network ROM conforming to the Intel PXE (Pre-Execution Environment) specification. %prep %setup -q -n %{realname}-%{version} %build export CFLAGS="$RPM_OPT_FLAGS -w" make bios efi%{efitype} DATADIR=%{_libexecdir} %install make bios efi%{efitype} install \ INSTALLROOT=%{buildroot} \ BINDIR=%{_bindir} \ SBINDIR=%{_bindir} \ DATADIR=%{_libexecdir} \ LIBDIR=%{_datadir} \ INCDIR=%{_includedir} \ MANDIR=%{_mandir} install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir} # install -s -m 755 unix/syslinux $RPM_BUILD_ROOT/%{_bindir}/syslinux-nomtools # install -m 755 keytab-lilo.pl syslinux2ansi.pl $RPM_BUILD_ROOT/%{_datadir}/syslinux rm -rf $RPM_BUILD_ROOT/%{_libexecdir}/syslinux/com32 mkdir -p $RPM_BUILD_ROOT/srv cp -rp $RPM_BUILD_ROOT/%{_libexecdir}/syslinux $RPM_BUILD_ROOT%{tftpboot} rm -rf $RPM_BUILD_ROOT%{tftpboot}/{diag,dosutil,efi*,iso*,syslinux.com,*.bin} %files %defattr(-,root,root) %doc doc/*.txt %doc README* NEWS %doc %{_mandir}/man1/* %{_bindir}/* #%{_datadir}/syslinux %{_libexecdir}/syslinux %files -n pxelinux %defattr(-,root,root) %{tftpboot} %changelog