syslinux-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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.05
  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: System/Boot
  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. * Mon Feb 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.05-1
  145. - update to 4.05
  146. - add BR: libuuid-devel
  147. * Mon Jun 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.04-1
  148. - update to 4.04
  149. * Tue Jan 11 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.03-1
  150. - new upstream release
  151. * Sun Sep 26 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-2
  152. - remove Obsoletes: syslinux-devel
  153. * Sat Sep 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.02-1
  154. - new upstream release
  155. - split out -devel/perl/extlinux/tftpboot subpackages
  156. * Sat Nov 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.83-1
  157. - new upstream release
  158. * Fri Jun 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.82-1
  159. - new upstream release w/ bugfixes
  160. * Thu May 14 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.80-1
  161. - new upstream release 3.80 w/ dozens of bugfixes and new features :)
  162. * Thu Dec 11 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-3
  163. - add missing files to the filelist
  164. * Fri May 23 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-2
  165. - spec in UTF-8
  166. * Mon May 19 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.63-1
  167. - updated to new upstream release
  168. * Wed Nov 21 2007 Shu KONNO <owa@bg.wakwak.com> 3.53-0vl1
  169. - new upstream source
  170. * Wed May 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.07-0vl1
  171. - new upstream source
  172. - add extlinux
  173. - remove and obsolete syslinux-devel
  174. * Fri Dec 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13-0vl1
  175. - new upstream release
  176. * Fri Jun 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10-0vl1
  177. - new upstream release
  178. * Wed Mar 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.52-2vl1
  179. - rebuild for Vine Linux
  180. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  181. - Bump release + rebuild.
  182. * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
  183. - 1.52
  184. * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
  185. - 1.51pre7
  186. * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
  187. - 1.51pre5
  188. * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
  189. - 1.51pre3, with e820 detection
  190. * Tue Dec 12 2000 Than Ngo <than@redhat.com>
  191. - rebuilt with fixed fileutils
  192. * Thu Nov 9 2000 Than Ngo <than@redhat.com>
  193. - update to 1.49
  194. - update ftp site
  195. - clean up specfile
  196. - add some useful documents
  197. * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  198. - add %%defattr (release 4)
  199. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  200. - automatic rebuild
  201. * Thu Jul 06 2000 Trond Eivind Glomsr藷?<teg@redhat.com>
  202. - use %%{_tmppath}
  203. - change application group (Applications/Internet doesn't seem
  204. right to me)
  205. - added BuildRequires
  206. * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
  207. - initial packaging