]> git.pld-linux.org Git - packages/yaboot.git/blame - yaboot.spec
- up to 1.3.17 (untested)
[packages/yaboot.git] / yaboot.spec
CommitLineData
490d3cea 1#
78342f02 2# Conditional build:
9b9ff0f5 3%bcond_without doc # build documentation
490d3cea 4#
04297af9 5Summary: Linux bootloader for Power Macintosh "New World" computers
81bd50b5 6Summary(pl.UTF-8): Bootloader dla komputerów Power Macintosh "New World"
04297af9 7Name: yaboot
077b53ae 8Version: 1.3.17
96834d09 9Release: 0.1
077b53ae 10License: GPL v2+
04297af9 11Group: Applications/System
96834d09 12Source0: http://yaboot.ozlabs.org/releases/%{name}-%{version}.tar.gz
077b53ae 13# Source0-md5: f599f52d1887a86fd798252d2946f635
e9e71142 14Source1: %{name}_functions.sh
04297af9 15Patch0: %{name}-man.patch
ea8ed96f 16Patch1: %{name}-user.patch
7057dde6 17Patch2: %{name}-bash.patch
100ad86d 18Patch3: %{name}-crt0.patch
490d3cea 19URL: http://yaboot.ozlabs.org/
20%if %{with doc}
21BuildRequires: debiandoc-sgml
22BuildRequires: opensp
23%endif
59720939 24BuildRequires: e2fsprogs-static
490d3cea 25BuildRequires: sed >= 4.0
7057dde6 26Requires: bash >= 2.0
2e0313d5 27Requires: hfsutils >= 3.2.0
ec8377e4 28Requires: pmac-utils
e9e71142 29Provides: bootloader
e51f677c 30Obsoletes: quik
fbb60adc 31Obsoletes: ybin
2e0313d5
JB
32ExclusiveArch: ppc
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
04297af9
AM
34
35%description
36yaboot is a bootloader for PowerPC machines which works on New World
37ROM machines (Rev. A iMac and newer) and runs directly from Open
38Firmware, eliminating the need for Mac OS.
39
d69c5896
JR
40%description -l pl.UTF-8
41yaboot to bootloader dla maszyn PowerPC, który działa na maszynach New
42World ROM (rewizja A iMac oraz nowsze) oraz pracuje bezpośrednio z
43Open Firmware, dzięki czemu nie trzeba stosować Mac OS.
04297af9 44
bac82139 45%package -n rc-boot-yaboot
46Summary: yaboot support for rc-boot
47Summary(pl.UTF-8): Wsparcie yaboota dla rc-boot
48Group: Base
49Requires: %{name} = %{version}-%{release}
50Requires: rc-boot
55ac2125 51Provides: rc-boot-bootloader
bac82139 52
53%description -n rc-boot-yaboot
54yaboot support for rc-boot.
55
56%description -n rc-boot-yaboot -l pl.UTF-8
57Wsparcie yaboota dla rc-boot.
58
04297af9 59%prep
78342f02 60%setup -q
04297af9 61%patch0 -p0
ea8ed96f 62%patch1 -p1
7057dde6 63%patch2 -p1
100ad86d 64%patch3 -p1
04297af9
AM
65
66%build
96834d09 67%{__make} strip \
68 CC="%{__cc}"
490d3cea 69
70%if %{with doc}
71%{__make} -C doc
72%endif
04297af9
AM
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77%{__make} install \
78 ROOT=$RPM_BUILD_ROOT \
96834d09 79 PREFIX= \
80 MANDIR=%{_mandir}
04297af9 81
e9e71142 82install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-boot
2e0313d5 83install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-boot
e9e71142 84
04297af9
AM
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%files
89%defattr(644,root,root,755)
490d3cea 90%doc BUGS README THANKS TODO changelog doc/README.* doc/examples
91%if %{with doc}
92%doc doc/yaboot-howto.html
93%endif
077b53ae
JB
94%attr(755,root,root) /sbin/mkofboot
95%attr(755,root,root) /sbin/ofpath
96%attr(755,root,root) /sbin/yabootconfig
97%attr(755,root,root) /sbin/ybin
19e5e946 98%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
fbb60adc
AM
99%dir /lib/%{name}
100%attr(755,root,root) /lib/%{name}/addnote
077b53ae
JB
101%attr(755,root,root) /lib/%{name}/ofboot
102%attr(755,root,root) /lib/%{name}/yaboot
103%{_mandir}/man5/yaboot.conf.5*
104%{_mandir}/man8/bootstrap.8*
105%{_mandir}/man8/mkofboot.8*
106%{_mandir}/man8/ofpath.8*
107%{_mandir}/man8/yaboot.8*
108%{_mandir}/man8/yabootconfig.8*
109%{_mandir}/man8/ybin.8*
bac82139 110
111%files -n rc-boot-yaboot
112%defattr(644,root,root,755)
113/etc/sysconfig/rc-boot/%{name}_functions.sh
This page took 0.079608 seconds and 4 git commands to generate.