File syslinux.spec of Package syslinux

# spec file for package syslinux (Version 3.86)
# Copyright (c) 2010 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

Name:           syslinux
ExclusiveArch:  %ix86 x86_64
BuildRequires:  libpng-devel nasm netpbm python
License:        GPLv2+
Group:          System/Boot
Requires:       mtools
AutoReqProv:    on
Summary:        Boot Loader for Linux
Version:        3.86
Release:        4
Source:         %{name}-%{version}.tar.bz2
Source1:        isolinux-config
Source2:        README.gfxboot
Patch0:         %{name}-%{version}-gfxboot.diff
Patch1:         %{name}-%{version}-suse.diff
Patch2:         %{name}-%{version}-compat.diff
Patch3:         %{name}-%{version}-com32.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

    H. Peter Anvin <>

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

cp %{SOURCE2} .
chmod +x core/add_crc
rm -f modules/
make spotless

make install-all \
  INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_bindir} \
  LIBDIR=%{_datadir} INCDIR=%{_includedir} MANDIR=%{_mandir}
# install -s -m 755 unix/syslinux $RPM_BUILD_ROOT/%{_bindir}/syslinux-nomtools
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
# install -m 755 $RPM_BUILD_ROOT/%{_datadir}/syslinux
rm -rf $RPM_BUILD_ROOT/%{_datadir}/syslinux/com32
rm -rf $RPM_BUILD_ROOT/boot
rm -rf $RPM_BUILD_ROOT/tftpboot

%doc doc/*.txt
%doc %{_mandir}/man1/*

openSUSE Build Service is sponsored by