From c210816b8b0aadd7bbcfee9459202ccdcd19bf6f Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Fri, 4 Mar 2016 21:34:22 +0330 Subject: [PATCH] Update to upstream version 1.71 - Use git based autosetup for applying patches --- .gitignore | 1 + os-prober-usrmovefix.patch | 18 +++++++++--------- os-prober.spec | 28 +++++++++------------------- sources | 2 +- 4 files changed, 20 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index b08ea4e..1e39e24 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /os-prober_1.65.tar.xz /os-prober_1.68.tar.xz /os-prober_1.70.tar.xz +/os-prober_1.71.tar.xz diff --git a/os-prober-usrmovefix.patch b/os-prober-usrmovefix.patch index 6db9936..1a966ea 100644 --- a/os-prober-usrmovefix.patch +++ b/os-prober-usrmovefix.patch @@ -1,7 +1,7 @@ -Index: os-prober-1.58/os-probes/mounted/common/90linux-distro -=================================================================== ---- os-prober-1.58.orig/os-probes/mounted/common/90linux-distro -+++ os-prober-1.58/os-probes/mounted/common/90linux-distro +diff --git a/os-probes/mounted/common/90linux-distro b/os-probes/mounted/common/90linux-distro +index 9544531..bee48b3 100755 +--- a/os-probes/mounted/common/90linux-distro ++++ b/os-probes/mounted/common/90linux-distro @@ -17,7 +17,7 @@ type="$3" # symlinks we need to also check in $dir/usr/lib* for distributions that # moved /lib* to /usr and only left symlinks behind. @@ -11,13 +11,13 @@ Index: os-prober-1.58/os-probes/mounted/common/90linux-distro if [ -e "$dir/etc/debian_version" ]; then short="Debian" long="$(printf "Debian GNU/Linux (%s)\n" "$(cat "$dir/etc/debian_version")")" -@@ -125,9 +125,13 @@ if (ls "$dir"/lib*/ld*.so* || ls "$dir"/ - elif [ -e "$dir/etc/meego-release" ]; then - short="MeeGo" - long="$(head -1 "$dir/etc/meego-release")" +@@ -128,9 +128,13 @@ if (ls "$dir"/lib*/ld*.so* || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null + elif [ -e "$dir/etc/4MLinux-version" ]; then + short="4MLinux" + long="4MLinux $(head -1 "$dir/etc/4MLinux-version")" - else + elif (ls "$dir"/lib*/ld*.so* && [ -d "$dir/boot" ] || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null; then -+ # Don't report 'Linux distribution' if only a /lib symlink is found or if this is ++ # Don't report 'Linux distribution' if only a /lib symlink is found or if this is + # a partition without /boot (should be /usr partition) short="Linux" long="unknown Linux distribution" diff --git a/os-prober.spec b/os-prober.spec index 6bbc9e3..5a57eaa 100644 --- a/os-prober.spec +++ b/os-prober.spec @@ -1,6 +1,6 @@ Name: os-prober -Version: 1.70 -Release: 3%{?dist} +Version: 1.71 +Release: 1%{?dist} Summary: Probes disks on the system for installed operating systems Group: System Environment/Base @@ -32,29 +32,15 @@ Patch15: os-prober-gentoo-fix.patch Requires: udev coreutils util-linux Requires: grep /bin/sed /sbin/modprobe +BuildRequires: git + %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 -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 +%autosetup -S git find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \; sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \ @@ -105,6 +91,10 @@ fi %{_var}/lib/%{name} %changelog +* Fri Mar 04 2016 Hedayat Vatankhah - 1.71-1 +- Update to upstream version 1.71 +- Use git based autosetup for applying patches + * Mon Feb 15 2016 Peter Jones - 1.70-3 - Don't keep backups with 'patch -b'; they wind up in the ouput package. diff --git a/sources b/sources index ac17094..dc28e67 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c1cfdd90dc958f12b932ccc8d64051e1 os-prober_1.70.tar.xz +7c1a149d076ac10af31043ffb33ba658 os-prober_1.71.tar.xz