2011-05-05 19:03:30 +00:00
|
|
|
Name: os-prober
|
2016-03-04 18:04:22 +00:00
|
|
|
Version: 1.71
|
|
|
|
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
|
2012-03-28 19:22:07 +00:00
|
|
|
# For more information about licensing, see copyright file.
|
|
|
|
License: GPLv2+ and GPL+
|
2011-05-05 19:03:30 +00:00
|
|
|
URL: http://kitenet.net/~joey/code/os-prober/
|
2014-12-07 21:53:09 +00:00
|
|
|
Source0: http://ftp.de.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.xz
|
2011-05-05 19:03:30 +00:00
|
|
|
# move newns binary outside of os-prober subdirectory, so that debuginfo
|
|
|
|
# can be automatically generated for it
|
|
|
|
Patch0: os-prober-newnsdirfix.patch
|
2013-01-31 20:28:53 +00:00
|
|
|
Patch1: os-prober-no-dummy-mach-kernel.patch
|
2012-05-25 09:30:01 +00:00
|
|
|
# Sent upstream
|
2012-05-25 11:54:42 +00:00
|
|
|
Patch2: os-prober-mdraidfix.patch
|
2012-10-11 22:31:33 +00:00
|
|
|
Patch3: os-prober-yaboot-parsefix.patch
|
|
|
|
Patch4: os-prober-usrmovefix.patch
|
2013-01-31 20:28:53 +00:00
|
|
|
Patch5: os-prober-remove-basename.patch
|
|
|
|
Patch6: os-prober-disable-debug-test.patch
|
|
|
|
Patch7: os-prober-btrfsfix.patch
|
2013-02-05 18:17:40 +00:00
|
|
|
Patch8: os-prober-bootpart-name-fix.patch
|
|
|
|
Patch9: os-prober-mounted-partitions-fix.patch
|
|
|
|
Patch10: os-prober-factor-out-logger.patch
|
2013-06-18 21:14:55 +00:00
|
|
|
# To be sent upstream
|
2014-09-08 20:20:16 +00:00
|
|
|
Patch11: os-prober-factored-logger-efi-fix.patch
|
2014-05-06 19:01:56 +00:00
|
|
|
Patch12: os-prober-umount-fix.patch
|
2014-10-25 16:15:44 +00:00
|
|
|
Patch13: os-prober-grub2-parsefix.patch
|
2014-12-23 20:50:39 +00:00
|
|
|
Patch14: os-prober-grepfix.patch
|
2015-10-20 20:38:28 +00:00
|
|
|
Patch15: os-prober-gentoo-fix.patch
|
2011-05-05 19:03:30 +00:00
|
|
|
|
2012-01-21 21:08:59 +00:00
|
|
|
Requires: udev coreutils util-linux
|
2012-05-10 22:07:59 +00:00
|
|
|
Requires: grep /bin/sed /sbin/modprobe
|
2011-05-05 19:03:30 +00:00
|
|
|
|
2016-03-04 18:04:22 +00:00
|
|
|
BuildRequires: git
|
|
|
|
|
2011-05-05 19:03:30 +00:00
|
|
|
%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
|
2016-03-04 18:04:22 +00:00
|
|
|
%autosetup -S git
|
2012-05-25 11:54:42 +00:00
|
|
|
|
2011-05-05 19:03:30 +00:00
|
|
|
find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \;
|
2012-03-28 19:22:07 +00:00
|
|
|
sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \
|
|
|
|
linux-boot-probes/common/50mounted-tests
|
2011-05-05 19:03:30 +00:00
|
|
|
|
|
|
|
%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
|
2016-03-04 18:04:22 +00:00
|
|
|
* Fri Mar 04 2016 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.71-1
|
|
|
|
- Update to upstream version 1.71
|
|
|
|
- Use git based autosetup for applying patches
|
|
|
|
|
2016-02-15 14:54:24 +00:00
|
|
|
* Mon Feb 15 2016 Peter Jones <pjones@redhat.com> - 1.70-3
|
|
|
|
- Don't keep backups with 'patch -b'; they wind up in the ouput package.
|
|
|
|
|
2016-02-04 11:43:15 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-13 19:50:01 +00:00
|
|
|
* Fri Nov 13 2015 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.70-1
|
|
|
|
- Update to upstream version 1.70, fixes #1275641
|
|
|
|
- Fix bug #1236358 - os-prober duplicates grub entries for read/write btrfs
|
|
|
|
subvolumes, thanks to Helmut Horvath
|
|
|
|
- Fix bug #1236649 - os-prober does not detect os on btrfs partition without
|
|
|
|
any subvolume
|
|
|
|
|
2015-10-20 20:38:28 +00:00
|
|
|
* Tue Oct 20 2015 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.68-1
|
|
|
|
- Update to upstream version 1.68, bug #1267779
|
|
|
|
- Support a case where a kernel named vmlinuz/x is used under Gentoo, bug #1223237
|
|
|
|
|
2015-06-18 00:27:12 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.65-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-12-23 20:50:39 +00:00
|
|
|
* Tue Dec 23 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.65-2
|
|
|
|
- Fix using grep for searching binary files, fixes #1172405. Thanks Paul Eggert
|
|
|
|
for initial patch fixing grep usage in 83haiku
|
|
|
|
|
2014-12-07 21:53:09 +00:00
|
|
|
* Sun Dec 07 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.65-1
|
|
|
|
- Using latest upstream version tarball to be consistent with upstream
|
|
|
|
versioning
|
|
|
|
|
2014-10-25 16:15:44 +00:00
|
|
|
* Sat Oct 25 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-11
|
|
|
|
- Fix parsing grub2's initrd/linux variations, rhbz #1108344
|
|
|
|
|
2014-09-08 20:20:16 +00:00
|
|
|
* Mon Sep 08 2014 Peter Jones <pjones@redhat.com> - 1.58-10
|
|
|
|
- Make os-prober output include partitions for UEFI chainloads.
|
|
|
|
Resolves: rhbz#873207
|
|
|
|
|
2014-08-17 14:20:48 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-06 18:13:56 +00:00
|
|
|
* Sun Jul 06 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-8
|
|
|
|
- Fix bug in counting LVM LVs which their name contains 'btrfs' as btrfs volumes
|
|
|
|
|
2014-06-07 17:26:55 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-06 19:01:56 +00:00
|
|
|
* Tue May 06 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-6
|
|
|
|
- Fix separate /usr partitions for usrmove distros (bug #1044760)
|
|
|
|
- Fix umount error when directory is temporarily busy (bug #903906)
|
|
|
|
|
2014-04-24 20:25:42 +00:00
|
|
|
* Thu Apr 24 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-5
|
|
|
|
- Fixed bug #982009: fix btrfs support
|
|
|
|
- Suppress some more debug messages when debug messages are disabled
|
|
|
|
|
2013-08-03 16:05:32 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-02 16:35:35 +00:00
|
|
|
* Tue Jul 02 2013 Adam Williamson <awilliam@redhat.com> - 1.58-3
|
|
|
|
- revert factored-logger-efi-fix.patch until grub2 is updated to match
|
|
|
|
|
2013-06-18 21:14:55 +00:00
|
|
|
* Tue Jun 18 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-2
|
|
|
|
- Fix a bug in EFI detection because of redirecting result output
|
|
|
|
|
2013-05-05 18:40:05 +00:00
|
|
|
* Sun May 05 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-1
|
|
|
|
- Update to upstream version 1.58, with UEFI support
|
|
|
|
|
2013-02-05 18:17:40 +00:00
|
|
|
* Sat Feb 02 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.57-2
|
|
|
|
- Fix a bug in recent btrfs patch when an extended partition is examined.
|
|
|
|
(H.J. Lu) (bug #906847)
|
|
|
|
- Fix naming of /boot partitions according to their fstab entry (bug #893472)
|
|
|
|
- Don't generate .btrfsfix files which will be included in final rpm
|
|
|
|
- Fix wrong boot partition set by linux-boot-prober when / and /boot are
|
|
|
|
mounted (bug #906886)
|
|
|
|
- Factor out 'logger', so that it is run once and logs are piped to it (John
|
|
|
|
Reiser) (bug #875356)
|
|
|
|
|
2013-01-31 20:28:53 +00:00
|
|
|
* Tue Jan 22 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.57-1
|
|
|
|
- Update to 1.57 (#890409)
|
|
|
|
- Use shell string processing rather than 'basename' (#875356)
|
|
|
|
- Make it possible to disable logging debug messages by assigning a value to
|
2013-02-05 18:17:40 +00:00
|
|
|
OS_PROBER_DISABLE_DEBUG environment variable (Gene Czarcinski) (#893997).
|
|
|
|
- Detect multi btrfs pools/volumes (Gene Czarcinski) (#888341)
|
2013-01-31 20:28:53 +00:00
|
|
|
|
2012-10-11 22:31:33 +00:00
|
|
|
* Thu Oct 11 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.56-1
|
|
|
|
- Update to 1.56 with a bug fix and applied one of my patches
|
|
|
|
|
2012-08-27 18:47:57 +00:00
|
|
|
* Mon Aug 27 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.55-1
|
|
|
|
- Update to new upstream version: 1.55
|
|
|
|
|
2012-07-20 07:27:45 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.53-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-02 15:54:31 +00:00
|
|
|
* Sat Jun 02 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-3
|
|
|
|
- Consider usrmoved distribtions in fallback linux detector (bug #826754)
|
|
|
|
- Remove patch backup files from final rpm package (by not creating a backup!)
|
|
|
|
|
2012-05-25 08:38:25 +00:00
|
|
|
* Fri May 25 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-2
|
2012-05-25 11:54:42 +00:00
|
|
|
- Add support for OSes installed on Linux mdraid partitions, bug #752402
|
2012-05-25 08:38:25 +00:00
|
|
|
- Add Fedora's grub2 config path, fixes generating menu entries for other
|
|
|
|
installed Fedora's
|
2012-05-25 11:54:42 +00:00
|
|
|
- Fixed bug in parsing yaboot.conf: accept spaces around '=' for append,
|
|
|
|
bug #825041
|
2012-05-25 08:38:25 +00:00
|
|
|
|
2012-05-11 17:00:24 +00:00
|
|
|
* Fri May 11 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-1
|
|
|
|
- Updated to 1.53 for a bugfix
|
|
|
|
- Fixed directory name in upstream tarbal
|
|
|
|
|
2012-05-10 22:07:59 +00:00
|
|
|
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 1.52-3
|
|
|
|
- Don't detect our Mac boot blocks as OS X.
|
|
|
|
Resolves: rhbz#811412
|
|
|
|
|
2012-04-29 20:02:55 +00:00
|
|
|
* Sun Apr 29 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.52-2
|
|
|
|
- use correct directory name for setup
|
|
|
|
|
2012-04-29 19:50:06 +00:00
|
|
|
* Sun Apr 29 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.52-1
|
|
|
|
- Updated to 1.52, supports win 8
|
|
|
|
|
2012-03-28 19:22:07 +00:00
|
|
|
* Wed Mar 28 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.51-1
|
|
|
|
- Update to latest upstream version, 1.51
|
|
|
|
|
2012-01-21 21:08:59 +00:00
|
|
|
* Sat Jan 21 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.48-3
|
|
|
|
- Remove dmraid and lvm2 dependency. bug #770393
|
|
|
|
|
2012-01-13 11:48:56 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
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
|