syslinux-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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.03
  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. %files perl
  107. %defattr(-,root,root)
  108. %{_mandir}/man1/lss16toppm*
  109. %{_mandir}/man1/ppmtolss16*
  110. %{_mandir}/man1/syslinux2ansi*
  111. %{_bindir}/keytab-lilo
  112. %{_bindir}/lss16toppm
  113. %{_bindir}/md5pass
  114. %{_bindir}/mkdiskimage
  115. %{_bindir}/ppmtolss16
  116. %{_bindir}/pxelinux-options
  117. %{_bindir}/sha1pass
  118. %{_bindir}/syslinux2ansi
  119. %{_bindir}/isohybrid.pl
  120. %files devel
  121. %defattr(-,root,root)
  122. %dir %{_datadir}/syslinux/com32
  123. %{_datadir}/syslinux/com32/*
  124. %files extlinux
  125. %{_syssbindir}/extlinux
  126. /boot/extlinux
  127. %config /etc/extlinux.conf
  128. %files tftpboot
  129. /tftpboot
  130. %post extlinux
  131. # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
  132. # and update it.
  133. if [ -f /boot/extlinux/extlinux.conf ]; then \
  134. extlinux --update /boot/extlinux ; \
  135. elif [ -f /boot/extlinux.conf ]; then \
  136. mkdir -p /boot/extlinux && \
  137. mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
  138. extlinux --update /boot/extlinux ; \
  139. fi
  140. %changelog
  141. * Tue Jan 11 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.03-1
  142. - new upstream release
  143. * Sun Sep 26 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-2
  144. - remove Obsoletes: syslinux-devel
  145. * Sat Sep 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-1
  146. - new upstream release
  147. - split out -devel/perl/extlinux/tftpboot subpackages
  148. * Sat Nov 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.83-1
  149. - new upstream release
  150. * Fri Jun 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.82-1
  151. - new upstream release w/ bugfixes
  152. * Thu May 14 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.80-1
  153. - new upstream release 3.80 w/ dozens of bugfixes and new features :)
  154. * Thu Dec 11 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-3
  155. - add missing files to the filelist
  156. * Fri May 23 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-2
  157. - spec in UTF-8
  158. * Mon May 19 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-1
  159. - updated to new upstream release
  160. * Wed Nov 21 2007 Shu KONNO <owa@bg.wakwak.com> 3.53-0vl1
  161. - new upstream source
  162. * Wed May 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.07-0vl1
  163. - new upstream source
  164. - add extlinux
  165. - remove and obsolete syslinux-devel
  166. * Fri Dec 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13-0vl1
  167. - new upstream release
  168. * Fri Jun 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10-0vl1
  169. - new upstream release
  170. * Wed Mar 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.52-2vl1
  171. - rebuild for Vine Linux
  172. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  173. - Bump release + rebuild.
  174. * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
  175. - 1.52
  176. * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
  177. - 1.51pre7
  178. * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
  179. - 1.51pre5
  180. * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
  181. - 1.51pre3, with e820 detection
  182. * Tue Dec 12 2000 Than Ngo <than@redhat.com>
  183. - rebuilt with fixed fileutils
  184. * Thu Nov 9 2000 Than Ngo <than@redhat.com>
  185. - update to 1.49
  186. - update ftp site
  187. - clean up specfile
  188. - add some useful documents
  189. * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  190. - add %%defattr (release 4)
  191. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  192. - automatic rebuild
  193. * Thu Jul 06 2000 Trond Eivind Glomsr藷?<teg@redhat.com>
  194. - use %%{_tmppath}
  195. - change application group (Applications/Internet doesn't seem
  196. right to me)
  197. - added BuildRequires
  198. * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
  199. - initial packaging