Blame SPECS/os-prober.spec

008853
Name:           os-prober
008853
Version:        1.77
008853
Release:        9%{?dist}
008853
Summary:        Probes disks on the system for installed operating systems
008853
008853
# For more information about licensing, see copyright file.
008853
License:        GPLv2+ and GPL+
008853
URL:            http://kitenet.net/~joey/code/os-prober/
008853
Source0:        http://ftp.us.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.xz
008853
Patch0:         os-prober-no-dummy-mach-kernel.patch
008853
# Sent upstream
008853
Patch1:         os-prober-mdraidfix.patch
008853
Patch2:         os-prober-btrfsfix.patch
008853
Patch3:         os-prober-bootpart-name-fix.patch
008853
Patch4:         os-prober-mounted-partitions-fix.patch
008853
Patch5:         os-prober-factor-out-logger.patch
008853
# To be sent upstream
008853
Patch6:         os-prober-factored-logger-efi-fix.patch
008853
Patch7:         os-prober-umount-fix.patch
008853
Patch8:         os-prober-grub2-parsefix.patch
008853
Patch9:         os-prober-grepfix.patch
008853
Patch10:        os-prober-gentoo-fix.patch
008853
Patch11:        os-prober-grub2-mount-workaround.patch
008853
008853
Requires:       udev coreutils util-linux
008853
Requires:       grep /bin/sed /sbin/modprobe
008853
Requires:       grub2-tools-minimal
008853
008853
BuildRequires: make
008853
BuildRequires:  gcc git
008853
008853
%description
008853
This package detects other OSes available on a system and outputs the results
008853
in a generic machine-readable format. Support for new OSes and Linux
008853
distributions can be added easily. 
008853
008853
%prep
008853
%autosetup -n %{name}-%{version} -S git
008853
008853
find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \;
008853
sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \
008853
     linux-boot-probes/common/50mounted-tests
008853
sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \
008853
     linux-boot-probes/common/50mounted-tests common.sh
008853
008853
%build
008853
%set_build_flags
008853
%make_build LDFLAGS="$LDFLAGS -fPIC"
008853
008853
%install
008853
install -m 0755 -d %{buildroot}%{_bindir}
008853
install -m 0755 -d %{buildroot}%{_var}/lib/%{name}
008853
008853
install -m 0755 -p os-prober linux-boot-prober %{buildroot}%{_bindir}
008853
install -m 0755 -Dp newns %{buildroot}%{_libexecdir}/os-prober/newns
008853
install -m 0644 -Dp common.sh %{buildroot}%{_datadir}/%{name}/common.sh
008853
008853
%ifarch m68k
008853
ARCH=m68k
008853
%endif
008853
%ifarch ppc ppc64
008853
ARCH=powerpc
008853
%endif
008853
%ifarch sparc sparc64
008853
ARCH=sparc
008853
%endif
008853
%ifarch %{ix86} x86_64
008853
ARCH=x86
008853
%endif
008853
008853
for probes in os-probes os-probes/mounted os-probes/init \
008853
              linux-boot-probes linux-boot-probes/mounted; do
008853
        install -m 755 -d %{buildroot}%{_libexecdir}/$probes 
008853
        cp -a $probes/common/* %{buildroot}%{_libexecdir}/$probes
008853
        if [ -e "$probes/$ARCH" ]; then 
008853
                cp -a $probes/$ARCH/* %{buildroot}%{_libexecdir}/$probes 
008853
        fi
008853
done
008853
if [ "$ARCH" = x86 ]; then
008853
        install -m 755 -p os-probes/mounted/powerpc/20macosx \
008853
            %{buildroot}%{_libexecdir}/os-probes/mounted
008853
fi
008853
008853
%files
008853
%doc README TODO debian/changelog
008853
%license debian/copyright
008853
%{_bindir}/*
008853
%{_libexecdir}/*
008853
%{_datadir}/%{name}
008853
%{_var}/lib/%{name}
008853
008853
%changelog
008853
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.77-9
008853
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
008853
  Related: rhbz#1991688
008853
008853
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.77-8
008853
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
008853
008853
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.77-7
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
008853
008853
* Sat Oct 10 2020 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.77-6
008853
- Workaround for grub2-mount slow wildcard file matching, fixes #1770599
008853
008853
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.77-5
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
008853
008853
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.77-4
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
008853
008853
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.77-3
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
008853
008853
* Tue May 14 2019 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.77-2
008853
- Use distro LDFLAGS when building the package, fixes #1543863
008853
008853
* Tue May 14 2019 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.77-1
008853
- Update to 1.77, use grub2-mount rather than device mapper for mounts, fixes #1447156
008853
008853
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-8
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
008853
008853
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-7
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
008853
008853
* Sun Feb 18 2018 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.74-6
008853
- Add gcc build dependency
008853
008853
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-5
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
008853
008853
* Fri Dec 29 2017 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.74-4
008853
- Fix a path problem in btrfsfix.patch, fixes #1529616
008853
008853
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-3
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
008853
008853
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-2
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
008853
008853
* Mon Mar 27 2017 Neal Gompa <ngompa13@gmail.com> - 1.74-1
008853
- Update to upstream version 1.74
008853
- Drop merged patches
008853
- Rediff remaining patches
008853
- Move newns to /usr/libexec/os-prober (debuginfo generation works)
008853
- Mark copyright file as license file
008853
008853
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.71-2
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
008853
008853
* Fri Mar 04 2016 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.71-1
008853
- Update to upstream version 1.71
008853
- Use git based autosetup for applying patches
008853
008853
* Mon Feb 15 2016 Peter Jones <pjones@redhat.com> - 1.70-3
008853
- Don't keep backups with 'patch -b'; they wind up in the ouput package.
008853
008853
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-2
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
008853
008853
* Fri Nov 13 2015 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.70-1
008853
- Update to upstream version 1.70, fixes #1275641
008853
- Fix bug #1236358 - os-prober duplicates grub entries for read/write btrfs
008853
  subvolumes, thanks to Helmut Horvath
008853
- Fix bug #1236649 - os-prober does not detect os on btrfs partition without
008853
  any subvolume
008853
008853
* Tue Oct 20 2015 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.68-1
008853
- Update to upstream version 1.68, bug #1267779
008853
- Support a case where a kernel named vmlinuz/x is used under Gentoo, bug #1223237
008853
008853
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.65-3
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
008853
008853
* Tue Dec 23 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.65-2
008853
- Fix using grep for searching binary files, fixes #1172405. Thanks Paul Eggert
008853
  for initial patch fixing grep usage in 83haiku
008853
008853
* Sun Dec 07 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.65-1
008853
- Using latest upstream version tarball to be consistent with upstream
008853
  versioning
008853
008853
* Sat Oct 25 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-11
008853
- Fix parsing grub2's initrd/linux variations, rhbz #1108344
008853
008853
* Mon Sep 08 2014 Peter Jones <pjones@redhat.com> - 1.58-10
008853
- Make os-prober output include partitions for UEFI chainloads.
008853
  Resolves: rhbz#873207
008853
008853
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-9
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
008853
008853
* Sun Jul 06 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-8
008853
- Fix bug in counting LVM LVs which their name contains 'btrfs' as btrfs volumes
008853
008853
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-7
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
008853
008853
* Tue May 06 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-6
008853
- Fix separate /usr partitions for usrmove distros (bug #1044760)
008853
- Fix umount error when directory is temporarily busy (bug #903906)
008853
008853
* Thu Apr 24 2014 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-5
008853
- Fixed bug #982009: fix btrfs support
008853
- Suppress some more debug messages when debug messages are disabled
008853
008853
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-4
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
008853
008853
* Tue Jul 02 2013 Adam Williamson <awilliam@redhat.com> - 1.58-3
008853
- revert factored-logger-efi-fix.patch until grub2 is updated to match
008853
008853
* Tue Jun 18 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-2
008853
- Fix a bug in EFI detection because of redirecting result output
008853
008853
* Sun May 05 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.58-1
008853
- Update to upstream version 1.58, with UEFI support
008853
008853
* Sat Feb 02 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.57-2
008853
- Fix a bug in recent btrfs patch when an extended partition is examined. 
008853
  (H.J. Lu) (bug #906847)
008853
- Fix naming of /boot partitions according to their fstab entry (bug #893472)
008853
- Don't generate .btrfsfix files which will be included in final rpm
008853
- Fix wrong boot partition set by linux-boot-prober when / and /boot are
008853
  mounted (bug #906886)
008853
- Factor out 'logger', so that it is run once and logs are piped to it (John
008853
  Reiser) (bug #875356)
008853
008853
* Tue Jan 22 2013 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.57-1
008853
- Update to 1.57 (#890409)
008853
- Use shell string processing rather than 'basename' (#875356)
008853
- Make it possible to disable logging debug messages by assigning a value to
008853
  OS_PROBER_DISABLE_DEBUG environment variable (Gene Czarcinski) (#893997).
008853
- Detect multi btrfs pools/volumes (Gene Czarcinski) (#888341)
008853
008853
* Thu Oct 11 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.56-1
008853
- Update to 1.56 with a bug fix and applied one of my patches
008853
008853
* Mon Aug 27 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.55-1
008853
- Update to new upstream version: 1.55
008853
008853
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.53-4
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
008853
008853
* Sat Jun 02 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-3
008853
- Consider usrmoved distribtions in fallback linux detector (bug #826754)
008853
- Remove patch backup files from final rpm package (by not creating a backup!)
008853
008853
* Fri May 25 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-2
008853
- Add support for OSes installed on Linux mdraid partitions, bug #752402
008853
- Add Fedora's grub2 config path, fixes generating menu entries for other
008853
  installed Fedora's
008853
- Fixed bug in parsing yaboot.conf: accept spaces around '=' for append, 
008853
  bug #825041
008853
008853
* Fri May 11 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.53-1
008853
- Updated to 1.53 for a bugfix
008853
- Fixed directory name in upstream tarbal
008853
008853
* Thu May 10 2012 Peter Jones <pjones@redhat.com> - 1.52-3
008853
- Don't detect our Mac boot blocks as OS X.
008853
  Resolves: rhbz#811412
008853
008853
* Sun Apr 29 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.52-2
008853
- use correct directory name for setup
008853
008853
* Sun Apr 29 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.52-1
008853
- Updated to 1.52, supports win 8
008853
008853
* Wed Mar 28 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.51-1
008853
- Update to latest upstream version, 1.51
008853
008853
* Sat Jan 21 2012 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.48-3
008853
- Remove dmraid and lvm2 dependency. bug #770393
008853
008853
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-2
008853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
008853
008853
* Mon Jul 25 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.48-1
008853
- Updated to 1.48 release
008853
008853
* Thu May 19 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.47-1
008853
- Updated to the new upstream version 1.47
008853
008853
* Wed May 04 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.46-2
008853
- Removed obsolete parts (build tag, defattr, etc)
008853
- Added a patch to move newns outside of os-prober subdirectory
008853
- Added required utilities as package requires
008853
008853
* Sat Apr 30 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.46-1
008853
- Updated to 1.46 release
008853
008853
* Tue Feb 22 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.42-2
008853
- Remove executable permission from common.sh
008853
008853
* Thu Feb 17 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 1.42-1
008853
- Initial version