]>
Commit | Line | Data |
---|---|---|
5f9e6831 ER |
1 | Summary: Utilities that detect other operating system installs on a set of drives |
2 | Name: os-prober | |
3 | Version: 1.22 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Base/Kernel | |
7 | URL: http://packages.qa.debian.org/o/os-prober.html | |
8 | Source0: http://ftp.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.bz2 | |
9 | # Source0-md5: 89c7744bb1dd3ff09ffbd896ff0baea0 | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | ||
12 | # no binary blobs | |
13 | %define _enable_debug_packages 0 | |
14 | ||
15 | %description | |
16 | This is a small package that may be depended on by any bootloader | |
17 | installer package to detect other filesystems with operating systems | |
18 | on them, and work out how to boot other linux installs. | |
19 | ||
20 | %prep | |
21 | %setup -q | |
22 | ||
23 | %install | |
24 | rm -rf $RPM_BUILD_ROOT | |
25 | install -d $RPM_BUILD_ROOT{/var/lib/os-prober,%{_bindir},%{_datadir}/%{name}} | |
26 | install -p %{name} $RPM_BUILD_ROOT%{_bindir} | |
27 | install -p linux-boot-prober $RPM_BUILD_ROOT%{_bindir} | |
28 | cp -a common.sh $RPM_BUILD_ROOT%{_datadir}/%{name} | |
29 | ||
30 | %ifarch m68k | |
31 | ARCH=m68k | |
32 | %endif | |
33 | %ifarch ppc ppc64 | |
34 | ARCH=powerpc | |
35 | %endif | |
36 | %ifarch sparc sparc64 | |
37 | ARCH=sparc | |
38 | %endif | |
39 | %ifarch %{ix86} %{x8664} | |
40 | ARCH=x86 | |
41 | %endif | |
42 | for i in os-probes os-probes/mounted os-probes/init \ | |
43 | linux-boot-probes linux-boot-probes/mounted; do | |
44 | install -d $RPM_BUILD_ROOT%{_libdir}/$i | |
45 | cp -a $i/common/* $RPM_BUILD_ROOT%{_libdir}/$i | |
46 | if [ -e "$i/$ARCH" ]; then | |
47 | cp -a $i/$ARCH/* $RPM_BUILD_ROOT%{_libdir}/$i | |
48 | fi | |
49 | done | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc README TODO debian/changelog debian/copyright | |
57 | %attr(755,root,root) %{_bindir}/*prober | |
58 | %dir %{_libdir}/os-probes | |
59 | %{_libdir}/os-probes/* | |
60 | %dir %{_libdir}/linux-boot-probes | |
61 | %{_libdir}/linux-boot-probes/* | |
62 | %dir %{_datadir}/%{name} | |
63 | %{_datadir}/%{name}/common.sh | |
64 | %dir /var/lib/os-prober |