2007-01-16 00:38:32 +01:00
|
|
|
#
|
2011-04-27 15:16:32 +02:00
|
|
|
# spec file for package syslinux
|
2007-01-16 00:38:32 +01:00
|
|
|
#
|
2011-04-27 15:16:32 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:38:32 +01:00
|
|
|
#
|
2008-09-06 03:47:21 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:38:32 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-15 15:40:48 +02:00
|
|
|
|
2007-01-16 00:38:32 +01:00
|
|
|
Name: syslinux
|
2008-10-22 18:51:33 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2011-04-19 11:05:19 +02:00
|
|
|
BuildRequires: libpng-devel nasm netpbm python xz
|
2008-04-15 15:40:48 +02:00
|
|
|
Url: http://syslinux.zytor.com/
|
2010-04-13 22:05:36 +02:00
|
|
|
License: GPLv2+
|
2007-01-16 00:38:32 +01:00
|
|
|
Group: System/Boot
|
2007-06-22 12:14:56 +02:00
|
|
|
Requires: mtools
|
2008-04-15 15:40:48 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:38:32 +01:00
|
|
|
Summary: Boot Loader for Linux
|
2011-04-19 10:49:59 +02:00
|
|
|
Version: 4.04
|
2011-04-27 15:16:32 +02:00
|
|
|
Release: 1
|
2007-01-16 00:38:32 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: isolinux-config
|
2009-07-21 12:41:55 +02:00
|
|
|
Source2: README.gfxboot
|
2011-04-18 18:02:08 +02:00
|
|
|
Patch0: %{name}-%{version}-iso9660.diff
|
|
|
|
Patch1: %{name}-%{version}-cwd.diff
|
2011-04-19 15:31:54 +02:00
|
|
|
Patch2: %{name}-%{version}-noinitrd.diff
|
2011-04-20 11:28:59 +02:00
|
|
|
Patch3: %{name}-%{version}-mboot_bootif.diff
|
2011-06-09 11:33:38 +02:00
|
|
|
Patch4: %{name}-%{version}-isohybrid-hex-option-parsing.diff
|
2007-01-16 00:38:32 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-07-21 12:41:55 +02:00
|
|
|
%patch0 -p1
|
2009-06-20 03:13:32 +02:00
|
|
|
%patch1 -p1
|
2011-04-19 15:31:54 +02:00
|
|
|
%patch2 -p1
|
2011-04-20 11:28:59 +02:00
|
|
|
%patch3 -p1
|
2011-06-09 11:33:38 +02:00
|
|
|
%patch4 -p1
|
2007-01-16 00:38:32 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-21 12:41:55 +02:00
|
|
|
cp %{SOURCE2} .
|
2007-01-16 00:38:32 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-07-21 12:41:55 +02:00
|
|
|
make spotless
|
2007-01-16 00:38:32 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install-all \
|
2009-07-21 12:41:55 +02:00
|
|
|
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 keytab-lilo.pl syslinux2ansi.pl $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
|
2007-01-16 00:38:32 +01:00
|
|
|
|
|
|
|
%files
|
2007-02-09 17:07:18 +01:00
|
|
|
%defattr(-,root,root)
|
2009-07-21 12:41:55 +02:00
|
|
|
%doc doc/*.txt
|
|
|
|
%doc README* NEWS
|
2008-04-15 15:40:48 +02:00
|
|
|
%doc %{_mandir}/man1/*
|
2007-01-16 00:38:32 +01:00
|
|
|
%{_bindir}/*
|
2009-07-21 12:41:55 +02:00
|
|
|
%{_datadir}/syslinux
|
2007-01-16 00:38:32 +01:00
|
|
|
|
2007-06-22 12:14:56 +02:00
|
|
|
%changelog
|