]> git.pld-linux.org Git - packages/os-prober.git/blame - os-prober.spec
- new, based on PCLinuxOS src.rpm
[packages/os-prober.git] / os-prober.spec
CommitLineData
5f9e6831
ER
1Summary: Utilities that detect other operating system installs on a set of drives
2Name: os-prober
3Version: 1.22
4Release: 1
5License: GPL
6Group: Base/Kernel
7URL: http://packages.qa.debian.org/o/os-prober.html
8Source0: http://ftp.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.bz2
9# Source0-md5: 89c7744bb1dd3ff09ffbd896ff0baea0
10BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12# no binary blobs
13%define _enable_debug_packages 0
14
15%description
16This is a small package that may be depended on by any bootloader
17installer package to detect other filesystems with operating systems
18on them, and work out how to boot other linux installs.
19
20%prep
21%setup -q
22
23%install
24rm -rf $RPM_BUILD_ROOT
25install -d $RPM_BUILD_ROOT{/var/lib/os-prober,%{_bindir},%{_datadir}/%{name}}
26install -p %{name} $RPM_BUILD_ROOT%{_bindir}
27install -p linux-boot-prober $RPM_BUILD_ROOT%{_bindir}
28cp -a common.sh $RPM_BUILD_ROOT%{_datadir}/%{name}
29
30%ifarch m68k
31ARCH=m68k
32%endif
33%ifarch ppc ppc64
34ARCH=powerpc
35%endif
36%ifarch sparc sparc64
37ARCH=sparc
38%endif
39%ifarch %{ix86} %{x8664}
40ARCH=x86
41%endif
42for 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
49done
50
51%clean
52rm -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
This page took 0.07702 seconds and 4 git commands to generate.