Blame SPECS/efivar.spec

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