yaboot-vl.spec 6.5 KB

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