This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathsyslinux.spec
More file actions
106 lines (89 loc) · 2.78 KB
/
Copy pathsyslinux.spec
File metadata and controls
106 lines (89 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# based on PLD Linux spec git://git.pld-linux.org/packages/syslinux.git
%bcond_without efi32
%bcond_without efi64
%ifnarch %{ix86}
%undefine with_efi32
%endif
%ifnarch %{x8664}
%undefine with_efi64
%endif
Summary: Simple bootloader
Name: syslinux
Version: 6.02
Release: 2
License: GPL
Group: Applications/System
Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.bz2
# Source0-md5: 5410b1c2614cc8375bfc92fe308ca5c8
URL: http://syslinux.zytor.com/
BuildRequires: e2fsprogs-devel
BuildRequires: gnu-efi
BuildRequires: nasm
BuildRequires: perl-base
BuildRequires: sed >= 4.0
Requires: mtools
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautochrpath .*%{_datadir}/.*
%description
SYSLINUX is a boot loader for the Linux operating system which
operates off MS-DOS floppies. It is intended to simplify first-time
installation of Linux, rescue disks, and other uses for boot floppies.
A SYSLINUX floppy can be manipulated using standard MS-DOS (or any
other OS that can access an MS-DOS filesystem) tools once it has been
created, and requires only a ~ 7K DOS program or ~ 13K Linux program
to create it in the first place. It also includes PXELINUX, a program
to boot off a network server using a boot PROM compatible with the
Intel PXE (Pre-Execution Environment) specification.
%package devel
Summary: Header files for syslinux libraries
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description devel
This package includes the header files needed for compilation of
applications that are making use of the syslinux internals. Install
this package only if you plan to develop or will need to compile
customized syslinux clients.
%prep
%setup -q
%build
for d in "bios installer" %{?with_efi32:efi32} %{?with_efi64:efi64} ; do
%{__make} -j1 $d \
CC="%{__cc}"
done
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_includedir}}
install bios/core/ldlinux.sys $RPM_BUILD_ROOT%{_datadir}/%{name}
%{__make} -j1 install \
INSTALLROOT=$RPM_BUILD_ROOT \
LIBDIR=%{_libdir} \
MANDIR=%{_mandir} \
SBINDIR=%{_sbindir} \
firmware="bios %{?with_efi32:efi32} %{?with_efi64:efi64}"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS README* doc/*.txt
%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/diag
%{_datadir}/%{name}/dosutil
%{_datadir}/%{name}/*.0
%{_datadir}/%{name}/*.bin
%{_datadir}/%{name}/*.c32
%{_datadir}/%{name}/*.com
%{_datadir}/%{name}/*.exe
%{_datadir}/%{name}/*.sys
%{_datadir}/%{name}/memdisk
%if %{with efi32}
%{_datadir}/%{name}/efi32
%endif
%if %{with efi64}
%{_datadir}/%{name}/efi64
%endif
%{_mandir}/man1/*
%files devel
%defattr(644,root,root,755)
%{_datadir}/%{name}/com32