]>
Commit | Line | Data |
---|---|---|
61b48602 JR |
1 | %define debver 0.8-2 |
2 | %define ver %(echo %{debver} | sed 's/-.*//') | |
3 | Summary: The DECstation boot loader | |
fb5302ef | 4 | Summary(pl.UTF-8): Bootloader dla maszyn DECstation |
61b48602 JR |
5 | Name: delo |
6 | Version: %{ver} | |
7 | Release: 0.1 | |
8 | License: GPL | |
9 | Group: Applications/System | |
10 | # debian? can't find original | |
3a469d12 | 11 | Source0: http://ftp.debian.org/debian/pool/main/d/delo/%{name}_%{debver}.tar.gz |
61b48602 | 12 | # Source0-md5: c230e2c175a6488c7145b9a7118cc5ba |
38e07da5 | 13 | #URL: |
61b48602 JR |
14 | Provides: bootloader |
15 | #ExclusiveArch: mipsel | |
38e07da5 | 16 | BuildRequires: INSTALL_TO_RPM_BUILD_ROOT |
61b48602 JR |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %define _sbindir /sbin | |
20 | ||
21 | %description | |
22 | This is DELO, the DECstation boot loader, which you need to boot Linux | |
23 | on DECstations from storage media. It can also create bootable media | |
24 | for DECstations on other machines. | |
25 | ||
fb5302ef JB |
26 | %description -l pl.UTF-8 |
27 | Ten pakiet zawiera DELO - bootloader dla maszyn DECstation, potrzebny | |
28 | do uruchomienia Linuksa na takich maszynach. Może także tworzyć | |
29 | bootowalne nośniki na innych maszynach. | |
30 | ||
61b48602 JR |
31 | %prep |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | %{__make} \ | |
36 | CC="%{__cc}" \ | |
37 | CFLAGS="%{rpmcflags}" \ | |
38 | LDFLAGS="%{rpmldflags}" | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT{/etc/sysconfig/rc-boot,%{_mandir}/man{5,8}} | |
43 | ||
44 | install delo/delo /sbin | |
45 | install loader/delo.2nd /boot | |
46 | ||
47 | install man/delo8 %{_mandir}/man8 | |
48 | install man/delo.conf.5 %{_mandir}/man5 | |
49 | install man/t-rex.1 %{_mandir}/man1 | |
50 | ||
51 | install t-rex/t-rex %{_bindir} | |
52 | install t-rex-loader/t-rex-loader %{_libdir}/%{name} | |
53 | ||
54 | install delo.conf /etc | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc README TODO kernel-patch/ramdisk_kernel_parameters.patch | |
62 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf | |
63 | %attr(755,root,root) /boot/delo.2nd | |
64 | %attr(755,root,root) %{_sbindir}/delo | |
65 | %attr(755,root,root) %{_bindir}/t-rex | |
38e07da5 | 66 | %dir %{_libdir}/%{name} |
61b48602 JR |
67 | %attr(755,root,root) %{_libdir}/%{name}/* |
68 | %{_mandir}/man[158]/* |