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
|
|
|
#
|
2018-01-18 12:57:41 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: syslinux
|
2008-10-22 18:51:33 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2012-05-31 14:42:37 +02:00
|
|
|
BuildRequires: libext2fs-devel
|
2012-05-08 11:22:42 +02:00
|
|
|
BuildRequires: libpng-devel
|
2013-02-05 08:17:19 +01:00
|
|
|
BuildRequires: libuuid-devel
|
2012-05-08 11:22:42 +02:00
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: netpbm
|
2018-01-18 12:57:41 +01:00
|
|
|
BuildRequires: python3
|
2012-05-08 11:22:42 +02:00
|
|
|
BuildRequires: xz
|
2015-02-23 10:40:17 +01:00
|
|
|
# lots of assembler here that would need to be changed :(
|
|
|
|
#!BuildIgnore: gcc-PIE
|
2013-04-08 10:44:25 +02:00
|
|
|
Url: http://www.syslinux.org/wiki/index.php/The_Syslinux_Project
|
2015-09-04 10:35:34 +02:00
|
|
|
Suggests: mtools
|
2007-01-16 00:38:32 +01:00
|
|
|
Summary: Boot Loader for Linux
|
2012-05-08 11:22:42 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Boot
|
2011-04-19 10:49:59 +02:00
|
|
|
Version: 4.04
|
2012-05-08 11:22:42 +02:00
|
|
|
Release: 0
|
2013-04-08 10:44:25 +02:00
|
|
|
Source: https://www.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.bz2
|
2007-01-16 00:38:32 +01:00
|
|
|
Source1: isolinux-config
|
2009-07-21 12:41:55 +02:00
|
|
|
Source2: README.gfxboot
|
2016-02-16 10:25:01 +01:00
|
|
|
Source3: baselibs.conf
|
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-22 11:41:58 +02:00
|
|
|
Patch5: %{name}-%{version}-md5pass.diff
|
2012-05-31 14:42:37 +02:00
|
|
|
Patch6: %{name}-%{version}-libext2fs.diff
|
2012-05-15 13:32:25 +02:00
|
|
|
Patch7: %{name}-%{version}-gcc47.diff
|
2013-02-04 14:30:17 +01:00
|
|
|
Patch8: %{name}-%{version}-isohybrid_efi.diff
|
2013-02-18 10:16:32 +01:00
|
|
|
Patch9: %{name}-%{version}-isohybrid_efi_optional.diff
|
2013-02-28 16:02:26 +01:00
|
|
|
Patch10: %{name}-%{version}-isohybrid_mbr.diff
|
2013-03-04 14:59:51 +01:00
|
|
|
Patch11: %{name}-%{version}-localboot.diff
|
2013-12-19 10:06:17 +01:00
|
|
|
Patch12: %{name}-%{version}-geometry.diff
|
2014-03-05 15:00:28 +01:00
|
|
|
Patch13: %{name}-%{version}-nostrip.diff
|
2014-03-21 13:11:39 +01:00
|
|
|
Patch14: %{name}-%{version}-timeout.diff
|
2014-08-11 15:53:17 +02:00
|
|
|
Patch15: %{name}-%{version}-cache_fix.diff
|
2015-02-04 16:01:22 +01:00
|
|
|
Patch16: %{name}-%{version}-mtime.diff
|
2016-02-11 16:29:33 +01:00
|
|
|
Patch17: %{name}-%{version}-miniacc.diff
|
2016-03-16 13:57:44 +01:00
|
|
|
Patch18: %{name}-%{version}-align.diff
|
2017-09-12 10:10:21 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- make package build reproducible
|
|
|
|
Patch19: syslinux-4.04-reproducible.patch
|
2018-01-18 12:57:41 +01:00
|
|
|
Patch20: %{name}-%{version}-python3.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-22 11:41:58 +02:00
|
|
|
%patch5 -p1
|
2012-05-08 11:22:42 +02:00
|
|
|
%patch6 -p0
|
2012-05-15 13:32:25 +02:00
|
|
|
%patch7 -p0
|
2013-02-04 14:30:17 +01:00
|
|
|
%patch8 -p0
|
2013-02-18 10:16:32 +01:00
|
|
|
%patch9 -p1
|
2013-02-28 16:02:26 +01:00
|
|
|
%patch10 -p1
|
2013-03-04 14:59:51 +01:00
|
|
|
%patch11 -p1
|
2013-12-19 10:06:17 +01:00
|
|
|
%patch12 -p1
|
2014-03-05 15:00:28 +01:00
|
|
|
%patch13 -p0
|
2014-03-21 13:11:39 +01:00
|
|
|
%patch14 -p1
|
2014-08-11 15:53:17 +02:00
|
|
|
%patch15 -p1
|
2015-02-04 16:01:22 +01:00
|
|
|
%patch16 -p1
|
2016-02-11 16:29:33 +01:00
|
|
|
%patch17
|
2016-03-16 13:57:44 +01:00
|
|
|
%patch18
|
2017-09-12 10:10:21 +02:00
|
|
|
%patch19 -p1
|
2018-01-18 12:57:41 +01:00
|
|
|
%patch20 -p0
|
2007-01-16 00:38:32 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-21 12:41:55 +02:00
|
|
|
cp %{SOURCE2} .
|
|
|
|
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}
|
2015-09-04 10:35:34 +02:00
|
|
|
install -m 755 mtools/syslinux $RPM_BUILD_ROOT/%{_bindir}/syslinux-mtools
|
|
|
|
install -m 755 linux/syslinux $RPM_BUILD_ROOT/%{_bindir}/syslinux
|
2009-07-21 12:41:55 +02:00
|
|
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
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
|