avatar
Rosa has added f140d9184c
Automatic import for version 1.3.13
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,13 @@
1
sources:
2
  "yaboot-1.3.13-buildfix.patch.bz2": 820e31415251d1c39614f5d6171e3d36464573ef
3
  "yaboot-1.3.13-confarg.patch.bz2": 4376d086eb4c0845113c41bcfcf7ee905a0c8ac4
4
  "yaboot-1.3.13-ibm-vscsi.patch.bz2": 7d047bb7be8ee152d3f784ba4506451bda9d2387
5
  "yaboot-1.3.13-netboot.patch.bz2": 776dc90ca924afee5682f3a3e3d73cef1fd0041b
6
  "yaboot-1.3.13-ofpath-disable-devicetree-check.patch.bz2": aa6234ea7d4d67deef4dc23c8338ce6cf6786304
7
  "yaboot-1.3.13-ofpath-sbp2.patch.bz2": 124d004fce2430897c471072f3b6f400bf3bf17f
8
  "yaboot-1.3.13-ofpath-usb-storage.patch.bz2": 2ea648974d34e8140c2c632fe616a3ef3ac8f8ce
9
  "yaboot-1.3.13-ppc64.patch.bz2": a717cf50d80c5bc06b923367ef7f6fa32297e4d2
10
  "yaboot-1.3.13-ybin-raw-install-return0.patch.bz2": aa1502b737fd450307741014ceefeb7e83e3443d
11
  "yaboot-1.3.13.tar.bz2": 7dbf2b364391f998d09de3662867a3f5a60643dd
12
  "yaboot-1.3.3-man.patch.bz2": 95710a0193782a7c88f7e1153ff09435988db890
13
  "yaboot-1.3.6-ofboot.patch.bz2": 99aa057d991710b77634d4b5d3ddf0791004702c
... ... --- /dev/null
... ... +++ b/yaboot.spec
... ... @@ -0,0 +1,208 @@
1
# libdir independent location, i.e. always /usr/lib/yaboot/
2
%define yabootdir %{_prefix}/lib/yaboot
3
4
# define to use "ofpath" from the powerpc-utils package (default for ppc64)
5
%define ppcutils_ofpath 0
6
%ifarch ppc64
7
%define ppcutils_ofpath 1
8
%endif
9
10
Summary:	New World Mac Bootloader
11
Name:		yaboot
12
Version:	1.3.13
13
Release:	8mdk
14
License:	GPL
15
Group:		System/Kernel and hardware
16
ExclusiveArch: 	ppc ppc64
17
18
Source:		http://penguinppc.org/usr/yaboot/yaboot-%{version}.tar.bz2
19
Patch1: 	yaboot-1.3.3-man.patch.bz2
20
Patch2: 	yaboot-1.3.6-ofboot.patch.bz2
21
Patch3:		yaboot-1.3.13-ofpath-usb-storage.patch.bz2
22
Patch4:		yaboot-1.3.13-buildfix.patch.bz2
23
Patch5:		yaboot-1.3.13-ofpath-sbp2.patch.bz2
24
Patch6:		yaboot-1.3.13-ofpath-disable-devicetree-check.patch.bz2
25
Patch7:		yaboot-1.3.13-ppc64.patch.bz2
26
Patch8:		yaboot-1.3.13-netboot.patch.bz2
27
Patch9:		yaboot-1.3.13-confarg.patch.bz2
28
Patch10:	yaboot-1.3.13-ibm-vscsi.patch.bz2
29
Patch11:	yaboot-1.3.13-ybin-raw-install-return0.patch.bz2
30
31
Url:		http://penguinppc.org/projects/yaboot/
32
BuildRoot:	%_tmppath/%name-%version-root
33
34
Requires(post):	powerpc-utils >= 0.0.1-4mdk
35
Requires: powerpc-utils >= 0.0.1-4mdk
36
Provides: bootloader ybin
37
38
%description
39
Ybin is a GNU/Linux utility to install the yaboot  boot loader onto a 
40
bootstrap partition. It will not run from MacOS.                        
41
42
Yaboot is the bootloader for NewWorld PowerMacs and  IBM CHRP hardware 
43
architectures. It will not work on OldWorld PowerMacs. 
44
                       
45
ybin (YaBoot INstaller) was created so that there could be a lilo/quik 
46
style bootloader installer for PowerPC based machines which require 
47
bootstrap partitions rather then a traditional bootblock (ie all 
48
`newworld' Macintoshes). It is designed to install yaboot, an  
49
OpenFirmware bootloader for GNU/Linux written by Benjamin Herrenschmidt. 
50
When ybin is configured correctly you can simply type ybin, and the 
51
bootloader and its configuration will be installed/updated on the 
52
bootstrap partition without any further user intervention.  ybin also 
53
supports IBM bootstrap partitions. 
54
55
%prep
56
%setup -q
57
%patch1 -p0
58
%patch2 -p1
59
%patch3 -p1 -b .usb-storage
60
%patch4 -p1 -b .fix
61
%patch5 -p1 -b .sbp2
62
%patch6 -p1 -b .disable-devicetree-check
63
%patch7 -p1 -b .ppc64
64
%patch8 -p1 -b .netboot
65
%patch9 -p1 -b .confarg
66
%patch10 -p1 -b .ibm-vscsi
67
%patch11 -p1 -b .ybin-raw-install-return0
68
69
#change some install paths
70
perl -pi -e 's|-o root -g root||g' Makefile
71
#bzip man-pages
72
perl -pi -e 's|gzip -9|bzip2 -9|g' Makefile
73
perl -pi -e 's|8.gz|8.bz2|g' Makefile
74
perl -pi -e 's|5.gz|5.bz2|g' Makefile
75
perl -pi -e 's|gunzip man/\*.gz|bunzip2 man/\*.bz2|g' Makefile
76
77
%build
78
%make
79
80
%install
81
%makeinstall ROOT=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=share/man
82
83
%if %{ppcutils_ofpath}
84
rm -f $RPM_BUILD_ROOT%{_sbindir}/ofpath
85
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ofpath.8.bz2
86
%endif
87
88
%clean
89
rm -fr %buildroot
90
91
%post
92
USELOCAL=`grep '\/usr\/local' /etc/yaboot.conf`
93
if [ -n "$USELOCAL" ]; then
94
perl -pi -e 's|/usr/local|/usr|g' /etc/yaboot.conf
95
fi
96
/usr/sbin/ybin
97
true
98
99
%files
100
%defattr(-,root,root)
101
%doc COPYING README* doc/*
102
%config(noreplace) /etc/yaboot.conf
103
%{_sbindir}/ybin
104
%{_sbindir}/yabootconfig
105
%{_sbindir}/mkofboot
106
%{yabootdir}/addnote
107
%{yabootdir}/ofboot
108
%{yabootdir}/yaboot
109
%{_mandir}/man8/bootstrap.8.bz2
110
%{_mandir}/man8/mkofboot.8.bz2
111
%{_mandir}/man8/yaboot.8.bz2
112
%{_mandir}/man8/ybin.8.bz2
113
%{_mandir}/man5/yaboot.conf.5.bz2
114
%{_mandir}/man8/yabootconfig.8.bz2
115
%if ! %{ppcutils_ofpath}
116
%{_sbindir}/ofpath
117
%{_mandir}/man8/ofpath.8.bz2
118
%endif
119
120
%changelog
121
* Sun Feb 12 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.3.13-8mdk
122
- do not use powerpc-utils ofpathname for ppc
123
  (but keep powerpc-utils in basesystem anyway)
124
125
* Wed Jan 18 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.13-7mdk
126
- use more robust "ofpath" from powerpc-utils package
127
128
* Tue Dec 13 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.13-6mdk
129
- return 0 when raw_install() is done
130
- first attempt at handling IBM,v-scsi disks
131
132
* Tue Nov 22 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.13-5mdk
133
- fix build on ppc64 (compile as a 32-bit application)
134
- merge with Fedora package 1.3.13-0.16:
135
  * netboot fixes
136
  * handle conf= command line option
137
138
* Sun Oct 09 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.3.13-4mdk
139
- fix patch5 for removal of symlinks from /proc/device-tree
140
- patch6: disable broken /proc/device-tree check
141
- make post install script exit with 0 even when ybin fails
142
143
* Fri Oct 07 2005 Stew Benedict <sbenedict@mandriva.com> 1.3.13-3mdk
144
- birthday rebuild
145
146
* Wed Sep 08 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.3.13-2mdk
147
- Patch5: experimental support for sbp2 (ieee1394 block devices)
148
149
* Thu Jul 29 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.3.13-1mdk
150
- 1.3.13
151
- Patch3: experimental support for USB storage devices
152
- Patch4: fix compilation of lib/strstr.c
153
154
* Mon May  3 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.12-1mdk
155
- 1.3.12
156
157
* Wed Jan  7 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.11-1mdk
158
- 1.3.11, provides bootloader
159
160
* Mon Jun  9 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.10-1mdk
161
- 1.3.10 - drop patch3 - fixed upstream, drop patch 4
162
- RS6K uses a slightly different yaboot.conf format
163
164
* Tue Mar  4 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.9-2mdk
165
- add patch4 - fix RS6000 detection of -1 as default partition
166
167
* Tue Feb 25 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.9-1mdk
168
- 1.3.9 - needed for new TiBooks, new man page
169
170
* Mon Dec 30 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.8-2mdk
171
- rebuild for new glib/rpm - patch ofpath for old iMacs
172
173
* Tue Dec  9 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.8-1mdk
174
- 1.3.8
175
176
* Sat Nov 16 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.7-4mdk
177
- update old yaboot.conf paths in %%post if necessary
178
179
* Mon Oct 21 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.7-3mdk
180
- fix %%post
181
182
* Mon Oct 21 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.7-2mdk
183
- rework ofboot patch (patch2 - boot banner)
184
185
* Wed Oct  9 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.7-1mdk
186
- new version, clean up spec file, file locations
187
188
* Fri Dec 14 2001 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.6-1mdk
189
- new version IBM CHRP support back, updated documentation
190
191
* Wed Nov 28 2001 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.5-1mdk
192
- new version, journalled FS support
193
194
* Wed Oct 17 2001 Stew Benedict <sbenedict@mandrakesoft.com> 1.3.4-1mdk
195
- merge of yaboot/ybin projects, new version, change package name
196
197
* Fri May 25 2001 Stew Benedict <sbenedict@mandrakesoft.com> 0.30-4mdk
198
- really fix makefile - mkofboot symlink still broke
199
200
* Thu May 10 2001 Stew Benedict <sbenedict@mandrakesoft.com> 0.30-3mdk
201
- really fix makefile - mkofboot in /sbin too
202
203
* Mon Feb 12 2001 Stew Benedict <sbenedict@mandrakesoft.com> 0.30-2mdk
204
- moved ybin to /sbin - root level utility
205
206
* Mon Feb 12 2001 Stew Benedict <sbenedict@mandrakesoft.com> 0.30-1mdk
207
- packaged as RPM
208

Comments