syslinux-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. Summary: Simple kernel loader which uses a FAT ot iso9660 filesystem ot a PXE network
  2. Summary(ja): FAT/iso9660 ファイルシステムまたは PXE ネットワークを利用するシンプルなカーネルローダー
  3. Name: syslinux
  4. Version: 4.07
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/System
  8. Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.xz
  9. URL: http://syslinux.zytor.com/
  10. ExclusiveArch: %{ix86} x86_64
  11. Buildroot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: nasm, perl, netpbm-progs
  13. BuildRequires: libuuid-devel
  14. Requires: mtools
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: daisuke, shaolin
  18. %description
  19. SYSLINUX is a suite of bootloaders, currently supporting DOS FAT filesystems,
  20. Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
  21. (PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX). It also includes a tool,
  22. MEMDISK, which loads legacy operating systems from these media.
  23. %description -l ja
  24. SYSLINUX はカーネルローダー集です。現在は FAT ファイルシステム、Linux の
  25. ext2/ext3 ファイルシステム(EXTLINUX)、PXE ネットワークブート (PXELINUX) および
  26. ISO 9660 CDROM (ISOLINUX) に対応しています。
  27. %package perl
  28. Summary: Syslinux tools written in perl
  29. Summary(ja): Syslinux の perl ツール集
  30. Group: Applications/System
  31. %description perl
  32. Syslinux tools written in perl
  33. %package devel
  34. Summary: Headers and libraries for syslinux development.
  35. Summary(ja): Syslinux 開発用ヘッダとライブラリ
  36. Group: Development/Libraries
  37. %description devel
  38. Headers and libraries for syslinux development.
  39. %package extlinux
  40. Summary: The EXTLINUX bootloader, for booting the local system.
  41. Summary(ja): EXTLINUX ブートローダ
  42. Group: Applications/System
  43. Requires: syslinux
  44. %description extlinux
  45. The EXTLINUX bootloader, for booting the local system, as well as all
  46. the SYSLINUX/PXELINUX modules in /boot.
  47. %package tftpboot
  48. Summary: SYSLINUX modules in /tftpboot, available for network booting
  49. Summary(ja): ネットワークブート用 SYSLINUX モジュール
  50. Group: Applications/Internet
  51. Requires: syslinux
  52. %description tftpboot
  53. All the SYSLINUX/PXELINUX modules directly available for network
  54. booting in the /tftpboot directory.
  55. %prep
  56. %setup -q -n syslinux-%{version}
  57. %build
  58. make clean
  59. make installer
  60. make -C sample tidy
  61. %install
  62. rm -rf %{buildroot}
  63. mkdir -p %{buildroot}%{_bindir}
  64. mkdir -p %{buildroot}%{_sbindir}
  65. mkdir -p %{buildroot}%{_syssbindir}
  66. mkdir -p %{buildroot}%{_libdir}/syslinux
  67. mkdir -p %{buildroot}%{_includedir}
  68. make install-all \
  69. INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_syssbindir} \
  70. LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
  71. MANDIR=%{_mandir} INCDIR=%{_includedir} \
  72. TFTPBOOT=/tftpboot EXTLINUXDIR=/boot/extlinux
  73. install -m 755 linux/syslinux-nomtools %{buildroot}%{_datadir}/syslinux
  74. install -m 755 linux/syslinux %{buildroot}%{_datadir}/syslinux
  75. mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/sample
  76. install -m 644 sample/sample.* %{buildroot}/%{_docdir}/%{name}-%{version}/sample/
  77. mkdir -p %{buildroot}/etc
  78. ( cd %{buildroot}/etc && ln -s ../boot/extlinux/extlinux.conf . )
  79. # don't ship libsyslinux, at least, not for now
  80. rm -f %{buildroot}%{_prefix}/lib/libsyslinux*
  81. rm -f %{buildroot}%{_includedir}/syslinux.h
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT
  84. %files
  85. %defattr(-,root,root)
  86. %doc NEWS README* COPYING
  87. %doc doc/*
  88. %doc sample
  89. %{_mandir}/man1/gethostip*
  90. %{_mandir}/man1/syslinux*
  91. %{_mandir}/man1/extlinux*
  92. %{_bindir}/gethostip
  93. %{_bindir}/isohybrid
  94. %{_bindir}/memdiskfind
  95. %{_bindir}/syslinux
  96. %dir %{_datadir}/syslinux
  97. %{_datadir}/syslinux/*.com
  98. %{_datadir}/syslinux/*.exe
  99. %{_datadir}/syslinux/*.c32
  100. %{_datadir}/syslinux/*.bin
  101. %{_datadir}/syslinux/*.0
  102. %{_datadir}/syslinux/memdisk
  103. %dir %{_datadir}/syslinux/dosutil
  104. %{_datadir}/syslinux/dosutil/*
  105. %{_datadir}/syslinux/syslinux
  106. %{_datadir}/syslinux/syslinux-nomtools
  107. %dir %{_datadir}/syslinux/diag
  108. %{_datadir}/syslinux/diag/*
  109. %files perl
  110. %defattr(-,root,root)
  111. %{_mandir}/man1/lss16toppm*
  112. %{_mandir}/man1/ppmtolss16*
  113. %{_mandir}/man1/syslinux2ansi*
  114. %{_bindir}/keytab-lilo
  115. %{_bindir}/lss16toppm
  116. %{_bindir}/md5pass
  117. %{_bindir}/mkdiskimage
  118. %{_bindir}/ppmtolss16
  119. %{_bindir}/pxelinux-options
  120. %{_bindir}/sha1pass
  121. %{_bindir}/syslinux2ansi
  122. %{_bindir}/isohybrid.pl
  123. %files devel
  124. %defattr(-,root,root)
  125. %dir %{_datadir}/syslinux/com32
  126. %{_datadir}/syslinux/com32/*
  127. %files extlinux
  128. %{_syssbindir}/extlinux
  129. /boot/extlinux
  130. %config /etc/extlinux.conf
  131. %files tftpboot
  132. /tftpboot
  133. %post extlinux
  134. # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
  135. # and update it.
  136. if [ -f /boot/extlinux/extlinux.conf ]; then \
  137. extlinux --update /boot/extlinux ; \
  138. elif [ -f /boot/extlinux.conf ]; then \
  139. mkdir -p /boot/extlinux && \
  140. mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
  141. extlinux --update /boot/extlinux ; \
  142. fi
  143. %changelog
  144. * Sun Oct 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.07-1
  145. - updated to 4.07
  146. - moved extlinux subpackage to Applications/System Group
  147. * Mon Feb 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.05-1
  148. - update to 4.05
  149. - add BR: libuuid-devel
  150. * Mon Jun 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.04-1
  151. - update to 4.04
  152. * Tue Jan 11 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.03-1
  153. - new upstream release
  154. * Sun Sep 26 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-2
  155. - remove Obsoletes: syslinux-devel
  156. * Sat Sep 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-1
  157. - new upstream release
  158. - split out -devel/perl/extlinux/tftpboot subpackages
  159. * Sat Nov 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.83-1
  160. - new upstream release
  161. * Fri Jun 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.82-1
  162. - new upstream release w/ bugfixes
  163. * Thu May 14 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.80-1
  164. - new upstream release 3.80 w/ dozens of bugfixes and new features :)
  165. * Thu Dec 11 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-3
  166. - add missing files to the filelist
  167. * Fri May 23 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-2
  168. - spec in UTF-8
  169. * Mon May 19 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-1
  170. - updated to new upstream release
  171. * Wed Nov 21 2007 Shu KONNO <owa@bg.wakwak.com> 3.53-0vl1
  172. - new upstream source
  173. * Wed May 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.07-0vl1
  174. - new upstream source
  175. - add extlinux
  176. - remove and obsolete syslinux-devel
  177. * Fri Dec 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13-0vl1
  178. - new upstream release
  179. * Fri Jun 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10-0vl1
  180. - new upstream release
  181. * Wed Mar 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.52-2vl1
  182. - rebuild for Vine Linux
  183. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  184. - Bump release + rebuild.
  185. * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
  186. - 1.52
  187. * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
  188. - 1.51pre7
  189. * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
  190. - 1.51pre5
  191. * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
  192. - 1.51pre3, with e820 detection
  193. * Tue Dec 12 2000 Than Ngo <than@redhat.com>
  194. - rebuilt with fixed fileutils
  195. * Thu Nov 9 2000 Than Ngo <than@redhat.com>
  196. - update to 1.49
  197. - update ftp site
  198. - clean up specfile
  199. - add some useful documents
  200. * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  201. - add %%defattr (release 4)
  202. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  203. - automatic rebuild
  204. * Thu Jul 06 2000 Trond Eivind Glomsr藷?<teg@redhat.com>
  205. - use %%{_tmppath}
  206. - change application group (Applications/Internet doesn't seem
  207. right to me)
  208. - added BuildRequires
  209. * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
  210. - initial packaging