]> git.pld-linux.org Git - packages/os-prober.git/blame - os-prober.spec
- updated to 1.61
[packages/os-prober.git] / os-prober.spec
CommitLineData
5f9e6831 1Summary: Utilities that detect other operating system installs on a set of drives
e506348d 2Summary(pl.UTF-8): Narzędzia wykrywające instalacje innych systemów operacyjnych na dyskach
5f9e6831 3Name: os-prober
83933149 4Version: 1.61
e39ef205 5Release: 1
2fb30da9 6License: GPL v2+
e506348d 7Group: Applications/System
1d37bc9b 8Source0: http://ftp.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.gz
83933149 9# Source0-md5: 67ec16d43792263175bd414692f02a7a
e506348d 10URL: http://packages.qa.debian.org/o/os-prober.html
5f9e6831
ER
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
cd067cc0 13%define _libdir %{_prefix}/lib
5f9e6831
ER
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
e506348d
JB
18on them, and work out how to boot other Linux installs.
19
20%description -l pl.UTF-8
21Ten mały pakiet może być wykorzystywany przez dowolne instalatory
22bootloaderów w celu wykrycia innych systemów plików zawierających
23systemy operacyjne i określenia sposobu uruchomienia innych instalacji
24Linuksa.
5f9e6831
ER
25
26%prep
7c478118 27%setup -q
1d37bc9b
ER
28
29%build
30%{__make} \
e506348d 31 CC="%{__cc}" \
1d37bc9b 32 CFLAGS="%{rpmcflags}"
5f9e6831
ER
33
34%install
35rm -rf $RPM_BUILD_ROOT
1d37bc9b 36install -d $RPM_BUILD_ROOT{/var/lib/%{name},%{_bindir},%{_datadir}/%{name},%{_libdir}/%{name}}
5f9e6831
ER
37install -p %{name} $RPM_BUILD_ROOT%{_bindir}
38install -p linux-boot-prober $RPM_BUILD_ROOT%{_bindir}
cd067cc0 39cp -p common.sh $RPM_BUILD_ROOT%{_datadir}/%{name}
1d37bc9b 40install -p newns $RPM_BUILD_ROOT%{_libdir}/%{name}
5f9e6831 41
e506348d 42ARCH=other
5f9e6831
ER
43%ifarch m68k
44ARCH=m68k
45%endif
46%ifarch ppc ppc64
47ARCH=powerpc
48%endif
49%ifarch sparc sparc64
50ARCH=sparc
51%endif
52%ifarch %{ix86} %{x8664}
53ARCH=x86
54%endif
1d37bc9b
ER
55for probes in os-probes os-probes/mounted os-probes/init \
56 linux-boot-probes linux-boot-probes/mounted; do \
57 install -d $RPM_BUILD_ROOT%{_libdir}/$probes
58 cp -a $probes/common/* $RPM_BUILD_ROOT%{_libdir}/$probes
59 if [ -e "$probes/$ARCH" ]; then
60 cp -a $probes/$ARCH/* $RPM_BUILD_ROOT%{_libdir}/$probes
5f9e6831
ER
61 fi
62done
63
1d37bc9b 64if [ "$ARCH" = x86 ]; then
cd067cc0 65 cp -p os-probes/mounted/powerpc/20macosx $RPM_BUILD_ROOT%{_libdir}/os-probes/mounted
1d37bc9b
ER
66fi
67
5f9e6831
ER
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
73%doc README TODO debian/changelog debian/copyright
e506348d
JB
74%attr(755,root,root) %{_bindir}/linux-boot-prober
75%attr(755,root,root) %{_bindir}/os-prober
76%dir %{_libdir}/linux-boot-probes
77%attr(755,root,root) %{_libdir}/linux-boot-probes/50mounted-tests
78%dir %{_libdir}/linux-boot-probes/mounted
79%attr(755,root,root) %{_libdir}/linux-boot-probes/mounted/*
1d37bc9b
ER
80%dir %{_libdir}/os-prober
81%attr(755,root,root) %{_libdir}/os-prober/newns
e506348d
JB
82%dir %{_libdir}/os-probes
83%attr(755,root,root) %{_libdir}/os-probes/50mounted-tests
84%dir %{_libdir}/os-probes/init
85%attr(755,root,root) %{_libdir}/os-probes/init/*
86%dir %{_libdir}/os-probes/mounted
87%attr(755,root,root) %{_libdir}/os-probes/mounted/*
5f9e6831
ER
88%dir %{_datadir}/%{name}
89%{_datadir}/%{name}/common.sh
90%dir /var/lib/os-prober
This page took 0.101926 seconds and 4 git commands to generate.