80b73c
Name:           efivar
80b73c
Version:        36
994945
Release:        11%{?dist}.1
80b73c
Summary:        Tools to manage UEFI variables
80b73c
License:        LGPLv2+
80b73c
URL:            https://github.com/rhinstaller/efivar
80b73c
Requires:       %{name}-libs = %{version}-%{release}
80b73c
ExclusiveArch:  x86_64 aarch64
80b73c
80b73c
BuildRequires:  popt popt-devel popt-static git glibc-static
80b73c
Source0:        https://github.com/rhinstaller/efivar/releases/download/efivar-%{version}/efivar-%{version}.tar.bz2
80b73c
Patch0001: 0001-libabigail-isn-t-in-RHEL-yet-so-nerf-the-abi-check.patch
80b73c
Patch0002: 0002-Move-the-syntastic-file-I-use-out-of-the-repo.patch
80b73c
Patch0003: 0003-Move-verbosity-headers-to-be-public.patch
80b73c
Patch0004: 0004-Pacify-some-coverity-nits.patch
80b73c
Patch0005: 0005-efivar-Fix-some-types-in-L-behavior-to-pacify-coveri.patch
80b73c
Patch0006: 0006-Promote-_make_hd_dn-to-make_hd_dn-and-get-rid-of-the.patch
80b73c
Patch0007: 0007-Try-to-convince-covscan-that-sysfs_read_file-doesn-t.patch
80b73c
Patch0008: 0008-Make-efidp_make_file-have-even-more-better-input-con.patch
80b73c
Patch0009: 0009-Make-path-helpers.c-also-import-fix_coverity.h.patch
80b73c
Patch0010: 0010-Fix-a-makeguids-building-problem-with-generics.h.patch
80b73c
Patch0011: 0011-Improve-ACPI-device-path-formatting.patch
80b73c
Patch0012: 0012-Give-linux-s-parse-functions-the-unmodified-device-l.patch
80b73c
Patch0013: 0013-Move-ACPI-ID-parsing-to-a-shared-location.patch
80b73c
Patch0014: 0014-Make-a-platform-ACPI-root-parser-separate-from-PCI-r.patch
80b73c
Patch0015: 0015-Make-a-way-to-say-e-3-isn-t-viable-for-a-kind-of-dev.patch
80b73c
Patch0016: 0016-Make-a-linux-device-root-for-SOC-devices-that-use-FD.patch
80b73c
Patch0017: 0017-If-we-can-t-parse-part-of-the-device-link-skip-it-an.patch
80b73c
Patch0018: 0018-Pacify-clang-analyzer-just-a-little.patch
80b73c
Patch0019: 0019-Try-even-harder-to-convince-coverity-that-get_file-i.patch
80b73c
Patch0020: 0020-Make-the-debug-code-less-intrusive.patch
80b73c
Patch0021: 0021-efiboot-Make-the-device-node-skipping-code-pass-cove.patch
80b73c
Patch0022: 0022-efiboot-don-t-error-on-unknown-type-with-DEV_ABBREV_.patch
80b73c
Patch0023: 0023-efiboot-fix-a-bad-error-check.patch
80b73c
Patch0024: 0024-efiboot-parse_scsi_link-fix-the-offset-searching-for.patch
80b73c
Patch0025: 0025-Coverity-still-doesn-t-believe-in-error-codes.patch
80b73c
Patch0026: 0026-Don-t-require-NVME-to-have-an-EUI.patch
80b73c
Patch0027: 0027-Fix-another-buggy-fake-acpi-pci-root-driver.patch
80b73c
Patch0028: 0028-Fix-dev-probes-intialization-test.patch
80b73c
Patch0029: 0029-Deal-with-devices-that-don-t-have-a-device-link-in-s.patch
80b73c
Patch0030: 0030-Handle-partition-name-parsing-and-formatting-for-par.patch
994945
Patch0031: 0031-Fix-partition-number-detection-when-it-s-not-provide.patch
80b73c
80b73c
%description
80b73c
efivar provides a simple command line interface to the UEFI variable facility.
80b73c
80b73c
%package libs
80b73c
Summary: Library to manage UEFI variables
80b73c
80b73c
%description libs
80b73c
Library to allow for the simple manipulation of UEFI variables.
80b73c
80b73c
%package devel
80b73c
Summary: Development headers for libefivar
80b73c
Requires: %{name}-libs = %{version}-%{release}
80b73c
80b73c
%description devel
80b73c
development headers required to use libefivar.
80b73c
80b73c
%prep
80b73c
%setup -q -n %{name}-%{version}
80b73c
git init
80b73c
git config user.email "example@example.com"
80b73c
git config user.name "RHEL Ninjas"
80b73c
git add .
80b73c
git commit -a -q -m "%{version} baseline."
80b73c
git am %{patches} 
80b73c
git config --unset user.email
80b73c
git config --unset user.name
80b73c
80b73c
%build
80b73c
make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto" LDFLAGS="$RPM_LD_FLAGS -flto"
80b73c
80b73c
%install
80b73c
rm -rf $RPM_BUILD_ROOT
80b73c
%makeinstall
80b73c
80b73c
%clean
80b73c
rm -rf $RPM_BUILD_ROOT
80b73c
80b73c
%post libs -p /sbin/ldconfig
80b73c
80b73c
%postun libs -p /sbin/ldconfig
80b73c
80b73c
%files
80b73c
%{!?_licensedir:%global license %%doc}
80b73c
%license COPYING
80b73c
%doc README.md
80b73c
%{_bindir}/efivar
80b73c
%exclude %{_bindir}/efivar-static
80b73c
%{_mandir}/man1/*
80b73c
80b73c
%files devel
80b73c
%{_mandir}/man3/*
80b73c
%{_includedir}/*
80b73c
%{_libdir}/*.so
80b73c
%{_libdir}/pkgconfig/*.pc
80b73c
80b73c
%files libs
80b73c
%{_libdir}/*.so.*
80b73c
80b73c
%changelog
994945
* Tue Nov 13 2018 Javier Martinez Canillas <javierm@redhat.com> - 36-11.el7_6.1
994945
- Fix partition number detection when it's not provided (pjones)
994945
  Resolves: rhbz#1649712
994945
80b73c
* Mon Sep 17 2018 Peter Jones <pjones@redhat.com> - 36-11
80b73c
- Fix device probing with no matching probes where HD() will work
80b73c
  Resolves: rhbz#1613698
80b73c
- Detect partitiond md devices correctly
80b73c
  Resolves: rhbz#1602414
80b73c
  Resolves: rhbz#1613370
80b73c
80b73c
* Mon Sep 10 2018 Peter Jones <pjones@redhat.com> - 36-10
80b73c
- Work around platform ACPI PCI(e) root drivers that don't fill in the
80b73c
  "driver" symlink in sysfs.
80b73c
  Resolves: rhbz#1614944
80b73c
80b73c
* Mon Jul 16 2018 Peter Jones <pjones@redhat.com> - 36-9
80b73c
- Don't require NVME to have an EUI
80b73c
  Resolves: rhbz#1593784
80b73c
80b73c
* Thu Jun 21 2018 Peter Jones <pjones@redhat.com> - 36-8
80b73c
- Fix another minor covscan complaint
80b73c
  Related: rhbz#1558937
80b73c
  Related: rhbz#1591853
80b73c
80b73c
* Thu Jun 21 2018 Peter Jones <pjones@redhat.com> - 36-7
80b73c
- Fix a couple more weird Aarch64 machines
80b73c
  Related: rhbz#1558937
80b73c
  Resolves: rhbz#1591853
80b73c
80b73c
* Wed Jun 20 2018 Peter Jones <pjones@redhat.com> - 36-6
80b73c
- Fix device path generation for block devices on nonstandard device path
80b73c
  roots.
80b73c
  Related: rhbz#1558937
80b73c
  Resolves: rhbz#1591853
80b73c
80b73c
* Thu Jun 14 2018 Peter Jones <pjones@redhat.com> - 36-5
80b73c
- Try to fix some minor coverity nits.
80b73c
  Related: rhbz#1520533
80b73c
  Related: rhbz#1570032
80b73c
80b73c
* Wed Jun 13 2018 Peter Jones <pjones@redhat.com> - 36-4
80b73c
- Try to fix some minor coverity nits.
80b73c
  Related: rhbz#1520533
80b73c
  Related: rhbz#1570032
80b73c
80b73c
* Tue Jun 12 2018 Peter Jones <pjones@redhat.com> - 36-3
80b73c
- Try to fix some minor coverity nits.
80b73c
  Related: rhbz#1520533
80b73c
  Related: rhbz#1570032
80b73c
80b73c
* Sat Jun 09 2018 Peter Jones <pjones@redhat.com> - 36-2
80b73c
- Minor specfile cleanup to pacify rpmdiff
80b73c
  Related: rhbz#1520533
80b73c
  Related: rhbz#1570032
80b73c
80b73c
* Fri Jun 08 2018 Peter Jones <pjones@redhat.com> - 36-1
80b73c
- Rebase to efivar 36
80b73c
  Resolves: rhbz#1520533
80b73c
  Related: rhbz#1570032
80b73c
80b73c
* Tue May 09 2017 Peter Jones <pjones@redhat.com> - 31-4
80b73c
- Fix a bunch of coverity issues.
80b73c
  Related: rhbz#1380825
80b73c
  Related: rhbz#1310779
80b73c
80b73c
* Tue May 09 2017 Peter Jones <pjones@redhat.com> - 31-3
80b73c
- Fix a bunch of coverity issues.
80b73c
  Related: rhbz#1380825
80b73c
  Related: rhbz#1310779
80b73c
80b73c
* Tue May 09 2017 Peter Jones <pjones@redhat.com> - 31-2
80b73c
- Fix a bunch of coverity issues.
80b73c
  Related: rhbz#1380825
80b73c
  Related: rhbz#1310779
80b73c
80b73c
* Mon Mar 13 2017 Peter Jones <pjones@redhat.com> - 31-1
80b73c
- Update to efivar 31
80b73c
  Related: rhbz#1380825
80b73c
  Related: rhbz#1310779
80b73c
80b73c
* Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
80b73c
- Update to 0.11
80b73c
80b73c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
80b73c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
80b73c
80b73c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
80b73c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
80b73c
80b73c
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
80b73c
- Update package to 0.10.
80b73c
- Fixes a build error due to different cflags in the builders vs updstream
80b73c
  makefile.
80b73c
80b73c
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
80b73c
- Update package to 0.9.
80b73c
80b73c
* Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
80b73c
- Update package to 0.8 as well.
80b73c
80b73c
* Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
80b73c
- Update package to 0.7
80b73c
- adds --append support to the binary.
80b73c
80b73c
* Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
80b73c
- Update package to 0.6
80b73c
- fixes to documentation from lersek
80b73c
- more validation of uefi guids
80b73c
- use .xz for archives
80b73c
80b73c
* Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
80b73c
- Update to 0.5
80b73c
80b73c
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
80b73c
- Fix ldconfig invocation
80b73c
80b73c
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
80b73c
- Initial spec file