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