Blame SPECS/efivar.spec

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