yaboot-vl.spec 6.1 KB

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