syslinux-vl.spec 7.2 KB

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