2011-05-05 19:03:30 +00:00
|
|
|
Name: os-prober
|
2011-07-25 11:15:01 +00:00
|
|
|
Version: 1.48
|
2011-05-19 07:26:10 +00:00
|
|
|
Release: 1%{?dist}
|
2011-05-05 19:03:30 +00:00
|
|
|
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
|
|
|
|
# move newns binary outside of os-prober subdirectory, so that debuginfo
|
|
|
|
# can be automatically generated for it
|
|
|
|
Patch0: os-prober-newnsdirfix.patch
|
|
|
|
|
|
|
|
Requires: dmraid lvm2 udev coreutils util-linux
|
|
|
|
Requires: /bin/grep /bin/sed /sbin/modprobe
|
|
|
|
|
|
|
|
%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
|
2011-05-19 09:17:55 +00:00
|
|
|
%setup -q -n %{name}
|
2011-05-05 19:03:30 +00:00
|
|
|
%patch0 -p1 -b .newnsdirfix
|
|
|
|
find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \;
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
|
|
|
|
|
|
|
%install
|
|
|
|
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}/newns
|
|
|
|
install -m 0644 -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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README TODO debian/copyright debian/changelog
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libexecdir}/*
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_var}/lib/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2011-07-25 11:15:01 +00:00
|
|
|
* Mon Jul 25 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.48-1
|
|
|
|
- Updated to 1.48 release
|
|
|
|
|
2011-05-19 07:26:10 +00:00
|
|
|
* Thu May 19 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.47-1
|
|
|
|
- Updated to the new upstream version 1.47
|
|
|
|
|
2011-05-05 19:03:30 +00:00
|
|
|
* Wed May 04 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.46-2
|
|
|
|
- Removed obsolete parts (build tag, defattr, etc)
|
|
|
|
- Added a patch to move newns outside of os-prober subdirectory
|
|
|
|
- Added required utilities as package requires
|
|
|
|
|
|
|
|
* Sat Apr 30 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.46-1
|
|
|
|
- Updated to 1.46 release
|
|
|
|
|
|
|
|
* Tue Feb 22 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.42-2
|
|
|
|
- Remove executable permission from common.sh
|
|
|
|
|
|
|
|
* Thu Feb 17 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.42-1
|
|
|
|
- Initial version
|