Blame SPECS/os-prober.spec

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