Browse code

syslinux, nasm: new packages

Change-Id: I288faa68a5155a6db90202293517cb5a3150a4f1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4068
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

Alexey Makhalov authored on 2017/10/19 03:07:04
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
0
+Summary:	Netwide Assembler.
1
+Name:		nasm
2
+Version:	2.12.02
3
+Release:	1%{?dist}
4
+License:	BSD
5
+URL:		http://www.nasm.us
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.gz
10
+%define sha1 nasm=6d23d4be63f3a73d7df3053e65168f7906dd99e7
11
+%description
12
+NASM (Netwide Assembler) is an 80x86 assembler designed for portability and modularity. It includes a disassembler as well. 
13
+%prep
14
+%setup -q
15
+%build
16
+%configure
17
+%make_build
18
+%install
19
+make INSTALLROOT=%{buildroot} install
20
+%check
21
+make %{?_smp_mflags} -k test
22
+%files
23
+%defattr(-,root,root)
24
+%{_bindir}/*
25
+%{_datadir}/*
26
+%changelog
27
+*   Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 2.12.02-1
28
+-   Initial version
0 29
new file mode 100644
... ...
@@ -0,0 +1,32 @@
0
+From ca745cdfc27b83b6bcef9f856d858a68c64429de Mon Sep 17 00:00:00 2001
1
+From: Peter Jones <pjones@redhat.com>
2
+Date: Tue, 8 Apr 2014 15:28:12 -0400
3
+Subject: [PATCH] Add "install-all target" to top side of HAVE_FIRMWARE.
4
+
5
+---
6
+ Makefile | 10 ++++++++++
7
+ 1 file changed, 10 insertions(+)
8
+
9
+diff --git a/Makefile b/Makefile
10
+index b472945..6606d31 100644
11
+--- a/Makefile
12
+@@ -275,6 +275,16 @@ efi64:
13
+ 		FIRMWARE=EFI64 FWCLASS=EFI \
14
+ 		$(MAKECMDGOALS)
15
+ 
16
++install-all:
17
++
18
++install:
19
++
20
++netinstall:
21
++
22
++clean:
23
++
24
++all:
25
++
26
+ else # FIRMWARE
27
+ 
28
+ all: all-local subdirs
29
+-- 
30
+2.5.5
0 31
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+%global security_hardening none
1
+Summary:	Simple kernel loader which boots from a FAT filesystem
2
+Name:		syslinux
3
+Version:	6.04
4
+Release:	1%{?dist}
5
+License:	GPLv2+
6
+URL:		http://www.syslinux.org
7
+Group:		Applications/System
8
+Vendor:		VMware, Inc.
9
+Distribution:	Photon
10
+Source0:	https://www.kernel.org/pub/linux/utils/boot/%{name}/Testing/%{version}/%{name}-%{version}-pre1.tar.xz
11
+Patch0:		0001-Add-install-all-target-to-top-side-of-HAVE_FIRMWARE.patch
12
+BuildRequires:	nasm
13
+BuildRequires:	util-linux-devel
14
+Requires:	util-linux
15
+
16
+%define sha1 syslinux=599b7a85d522b1b6658a1fe290e4d23dc64b1470
17
+%description
18
+SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
19
+filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
20
+(PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool,
21
+MEMDISK, which loads legacy operating systems from these media.
22
+
23
+%package devel
24
+Summary: Headers and libraries for syslinux development.
25
+Group: Development/Libraries
26
+Provides: %{name}-static = %{version}-%{release}
27
+%description devel
28
+Headers and libraries for syslinux development.
29
+
30
+%prep
31
+%setup -q -n %{name}-%{version}-pre1
32
+%patch0 -p1
33
+%build
34
+make bios clean all
35
+%install
36
+make bios install-all \
37
+	INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
38
+	LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
39
+	MANDIR=%{_mandir} INCDIR=%{_includedir} \
40
+	LDLINUX=ldlinux.c32
41
+rm -rf %{buildroot}/boot
42
+rm -rf %{buildroot}/tftpboot
43
+%files
44
+%defattr(-,root,root)
45
+%{_bindir}/*
46
+%{_sbindir}/*
47
+%{_datadir}/*
48
+%exclude %{_datadir}/syslinux/com32
49
+%exclude %{_libdir}/debug
50
+
51
+%files devel
52
+%defattr(-,root,root)
53
+%{_datadir}/syslinux/com32/*
54
+
55
+%changelog
56
+*   Tue Oct 17 2017 Alexey Makhalov <amakhalov@vmware.com> 6.04-1
57
+-   Initial version