yaboot-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. %define _noVersionedDependencies 1
  2. Summary: yaboot - Yet Another Bootloader for New World PowerMacs
  3. Summary(ja): yaboot - New World ROM PowerMac 用ブートローダ
  4. Name: yaboot
  5. Version: 1.3.16
  6. Release: 2%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Base
  9. Source0: http://penguinppc.org/projects/yaboot/yaboot-%{version}.tar.gz
  10. Patch4: yaboot-1.3.16-yabootconfig.patch
  11. Patch7: yaboot-1.3.10-ext3.patch
  12. Patch8: yaboot-1.3.13-sbindir.patch
  13. Patch10: yaboot-1.3.10-parted.patch
  14. #Patch11: yaboot-1.3.13-manpage.patch
  15. #Patch12: yaboot-1.3.13-gcc34.patch
  16. #Patch23: yaboot-1.3.13-malloc.patch
  17. #Patch26: yaboot-1.3.13-printversion.patch
  18. #Patch27: yaboot-ppc64.patch
  19. Patch30: yaboot-1.3.16-e2fsprogs-build-fix.patch
  20. #Vine Patch(es)
  21. Patch100: yaboot-1.3.6-vine.patch
  22. Patch101: yaboot-1.3.16-kernel3.patch
  23. URL: http://www.alaska.net/~erbenson/ybin/
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. ExclusiveArch: ppc
  26. #Requires: pmac-utils >= 2.0
  27. Requires: powerpc-utils >= 1.0.0
  28. Requires: hfsutils >= 3.2.6
  29. Obsoletes: ybin
  30. Provides: ybin = %{version}-%{release}
  31. %description
  32. ybin (YaBoot INstaller) is designed to install yaboot,
  33. an OpenFirmware bootloader for GNU/Linux written by Benjamin
  34. Harrenschmidt. When ybin is configured correctly you can simply
  35. type ybin, and the bootloader and its configuration file will be
  36. installed/updated on the bootstrap partition without any furthur
  37. user intervention.
  38. %description -l ja
  39. ybin (YaBoot Installer) は yaboot (Benjamin Harrenschmidt さんが
  40. 作られた GNU/Linux 用 OpenFirmware ブートローダ) をインストール
  41. するために作られました.ybin が正しく設定されていれば,あとは
  42. ybin とタイプするだけで,あとは何もしなくてもブートローダと
  43. 設定ファイルがインストール/更新されます.
  44. %prep
  45. %setup -q
  46. # fix Makefile for non-root users to build/install
  47. sed -e "s/ -o root//g" \
  48. -e "s/ -g root//g" Makefile > Makefile.new
  49. mv -f Makefile.new Makefile
  50. %patch4 -p1 -b .yabootconfig
  51. %patch7 -p1 -b .ext3
  52. %patch8 -p1 -b .sbin
  53. %patch10 -p1 -b .parted
  54. #%patch11 -p1 -b .manpage
  55. #%patch12 -p1 -b .gcc34
  56. #%patch23 -p1 -b .malloc
  57. #%patch26 -p1 -b .printversion
  58. #%patch27 -p1 -b .ppc64
  59. %patch30 -p1 -b .e2fsprogs
  60. %patch100 -p1 -b .vine
  61. %patch101 -p1 -b .kernel3
  62. patch -p0 < man.patch
  63. %build
  64. make
  65. %install
  66. rm -rf ${RPM_BUILD_ROOT}
  67. make ROOT=${RPM_BUILD_ROOT} PREFIX=%{_prefix} MANDIR=share/man SBINDIR=/sbin install
  68. cp -a etc/yaboot.conf etc/yaboot.conf.sample
  69. # for temporal compatibility
  70. install -d -m 0755 ${RPM_BUILD_ROOT}/%{_sbindir}
  71. for X in ofpath ybin yabootconfig mkofboot ; do
  72. ln -sf /sbin/$X ${RPM_BUILD_ROOT}/%{_sbindir}/$X
  73. done
  74. rm -f $RPM_BUILD_ROOT/etc/yaboot.conf
  75. touch $RPM_BUILD_ROOT/etc/yaboot.conf
  76. %clean
  77. rm -rf ${RPM_BUILD_ROOT}
  78. %files
  79. %defattr(-,root,root)
  80. %doc BUGS COPYING ChangeLog INSTALL README* THANKS TODO changelog
  81. %doc doc etc/yaboot.conf.sample
  82. %{_libdir}/yaboot/*
  83. /sbin/*
  84. %{_sbindir}/*
  85. %{_mandir}/man5/*
  86. %{_mandir}/man8/*
  87. %ghost %config(noreplace) %{_sysconfdir}/yaboot.conf
  88. %changelog
  89. * Thu Sep 8 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.16-2
  90. - add Patch101 to get ofpath support kernel >= 3.0
  91. * Mon Apr 18 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.16-1
  92. - updated to the newest upstream release
  93. - remove patches that has been already merged into upstream
  94. - fix some patches for this version
  95. - add Patch30 to fix build failure with recent e2fsprogs headers
  96. * Sat Mar 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.13-2
  97. - Requires powerpc-utils now in place of pmac-utils
  98. * Tue Aug 12 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.13-1
  99. - new versioning policy, spec in UTF-8
  100. * Mon May 21 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.13-0vl3
  101. - rebuilt with new toolchain
  102. - import Patch{12,26,27} from 1.3.13-1.16.ydl.0
  103. * Wed Sep 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.13-0vl2
  104. - s/Copyright/License/
  105. - import Patch4/7/8/10/11/23 from YDL
  106. - move {ofpath,ybin,yabootconfig,mkofboot} from /usr/sbin/ to /sbin/
  107. /usr/sbin/* are still there for temporal compabitility
  108. * Wed Sep 23 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.13-0vl1
  109. - updated to upstream 1.3.13 release
  110. * Fri Nov 21 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.11-0vl1
  111. - updated to upstream 1.3.11 release (Patch11's change was applied)
  112. * Wed Apr 09 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.10-0vl2
  113. - modified and added Patch11 again
  114. * Tue Mar 26 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.10-0vl1
  115. - updated to upstream 1.3.10 release
  116. (fix ofpath support for early iMacs with current benh kernels)
  117. * Wed Feb 12 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.9-0vl1
  118. - updated to upstream 1.3.9 release (support newest PowerMac/PowerBook)
  119. - removed Patch11 (now we can determine the path with /proc/ide/*/devspec)
  120. however this devspec entry is only in benh kernels on Oct.29 2002 and up
  121. * Tue Mar 05 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.6-0vl2
  122. - added Patch11 to detect AEC62XX-based IDE card
  123. (although too ad-hoc to be for universal use. Yup, TODO. Sigh.)
  124. * Sat Dec 29 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.6-0vl1
  125. - updated to 1.3.6 release
  126. * Fri Nov 16 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.5-0vl1
  127. - updated to 1.3.5 release (first Vine release after ybin/yaboot merger...)
  128. * Wed Jun 13 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  129. - 1.1.1-0vl3
  130. - detect /etc/vine-release and set <OS-VOLUME-NAME> in ofboot.b
  131. * Wed May 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  132. - 1.1.1-0vl2
  133. - Doh! The patch was incorrect. Fixed now.
  134. * Wed May 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  135. - 1.1.1-0vl1
  136. - ybin updated to 1.1.1, as well as yaboot to 1.2.1
  137. * Sat Feb 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  138. - 0.30-0vl3
  139. - yaboot updated to 1.0 release
  140. * Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  141. - 0.30-0vl2
  142. - use better macros
  143. - man pages moved under /usr/share/man
  144. * Tue Nov 21 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  145. - 0.30-0vl1
  146. - updated to ybin-0.30 with yaboot-0.9
  147. * Wed Oct 18 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  148. - 0.26-0vl3
  149. - modified ofboot (added to patch10) for newest iMac/iBook
  150. (thanks K.Hanai-san!)
  151. * Mon Oct 16 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  152. - 0.26-0vl2
  153. - modified ybin (patch10) to install dummy System/Finder file
  154. (without this, MacOS may break bootstrap flag...)
  155. * Sat Oct 07 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  156. - 0.26-0vl1
  157. - first rpm release for Vine Linux/ppc
  158. - replace yaboot with version 0.8 (from BenH's site)