Name: os-prober Version: 1.42 Release: 1%{?dist} Summary: Probes disks on the system for installed operating systems Group: System Environment/Base License: GPL+ URL: http://kitenet.net/~joey/code/os-prober/ Source0: http://ftp.de.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This package detects other OSes available on a system and outputs the results in a generic machine-readable format. Support for new OSes and Linux distributions can be added easily. %prep %setup -q -n %{name} %build make %{?_smp_mflags} CFLAGS="%{optflags}" find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \; %install rm -rf %{buildroot} install -m 0755 -d %{buildroot}%{_bindir} install -m 0755 -d %{buildroot}%{_var}/lib/%{name} install -m 0755 -p os-prober linux-boot-prober %{buildroot}%{_bindir} install -m 0755 -Dp newns %{buildroot}%{_libexecdir}/%{name}/newns install -m 0755 -Dp common.sh %{buildroot}%{_datadir}/%{name}/common.sh %ifarch m68k ARCH=m68k %endif %ifarch ppc ppc64 ARCH=powerpc %endif %ifarch sparc sparc64 ARCH=sparc %endif %ifarch %{ix86} x86_64 ARCH=x86 %endif for probes in os-probes os-probes/mounted os-probes/init \ linux-boot-probes linux-boot-probes/mounted; do install -m 755 -d %{buildroot}%{_libexecdir}/$probes cp -a $probes/common/* %{buildroot}%{_libexecdir}/$probes if [ -e "$probes/$ARCH" ]; then cp -a $probes/$ARCH/* %{buildroot}%{_libexecdir}/$probes fi done if [ "$ARCH" = x86 ]; then install -m 755 -p os-probes/mounted/powerpc/20macosx \ %{buildroot}%{_libexecdir}/os-probes/mounted fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README TODO debian/copyright debian/changelog %{_bindir}/* %{_libexecdir}/* %{_datadir}/%{name} %{_var}/lib/%{name} %changelog * Thu Feb 17 2011 Hedayat Vatankhah - 1.42-1 - Initial version