Blame SPECS/efivar.spec

36520b
Name:           efivar
36520b
Version:        36
36520b
Release:        1%{?dist}
36520b
Summary:        Tools to manage UEFI variables
36520b
License:        LGPLv2.1
36520b
URL:            https://github.com/rhboot/efivar
36520b
Requires:       %{name}-libs = %{version}-%{release}
36520b
ExclusiveArch:  %{ix86} x86_64 aarch64 %{arm}
36520b
36520b
BuildRequires:  popt-devel git glibc-static libabigail
36520b
# please don't fix this to reflect github's incomprehensible url that goes
36520b
# to a different tarball.
36520b
Source0:        https://github.com/rhboot/efivar/archive/efivar-%{version}.tar.bz2
36520b
Patch0001: 0001-Move-the-syntastic-file-I-use-out-of-the-repo.patch
36520b
Patch0002: 0002-Move-verbosity-headers-to-be-public.patch
36520b
Patch0003: 0003-Pacify-some-coverity-nits.patch
36520b
Patch0004: 0004-efivar-Fix-some-types-in-L-behavior-to-pacify-coveri.patch
36520b
Patch0005: 0005-Promote-_make_hd_dn-to-make_hd_dn-and-get-rid-of-the.patch
36520b
Patch0006: 0006-Try-to-convince-covscan-that-sysfs_read_file-doesn-t.patch
36520b
Patch0007: 0007-Make-efidp_make_file-have-even-more-better-input-con.patch
36520b
Patch0008: 0008-Make-path-helpers.c-also-import-fix_coverity.h.patch
36520b
Patch0009: 0009-Fix-a-makeguids-building-problem-with-generics.h.patch
36520b
Patch0010: 0010-Improve-ACPI-device-path-formatting.patch
36520b
Patch0011: 0011-Give-linux-s-parse-functions-the-unmodified-device-l.patch
36520b
Patch0012: 0012-Move-ACPI-ID-parsing-to-a-shared-location.patch
36520b
Patch0013: 0013-Make-a-platform-ACPI-root-parser-separate-from-PCI-r.patch
36520b
Patch0014: 0014-Make-a-way-to-say-e-3-isn-t-viable-for-a-kind-of-dev.patch
36520b
Patch0015: 0015-Make-a-linux-device-root-for-SOC-devices-that-use-FD.patch
36520b
Patch0016: 0016-If-we-can-t-parse-part-of-the-device-link-skip-it-an.patch
36520b
Patch0017: 0017-Pacify-clang-analyzer-just-a-little.patch
36520b
Patch0018: 0018-Try-even-harder-to-convince-coverity-that-get_file-i.patch
36520b
Patch0019: 0019-Make-the-debug-code-less-intrusive.patch
36520b
Patch0020: 0020-efiboot-Make-the-device-node-skipping-code-pass-cove.patch
36520b
Patch0021: 0021-efiboot-don-t-error-on-unknown-type-with-DEV_ABBREV_.patch
36520b
Patch0022: 0022-efiboot-fix-a-bad-error-check.patch
36520b
Patch0023: 0023-efiboot-parse_scsi_link-fix-the-offset-searching-for.patch
36520b
Patch0024: 0024-Coverity-still-doesn-t-believe-in-error-codes.patch
36520b
Patch0025: 0025-Don-t-require-NVME-to-have-an-EUI.patch
36520b
Patch0026: 0026-makeguids-initialize-memory.patch
36520b
Patch0027: 0027-emmc_parser-add-emmc_parser.patch
36520b
Patch0028: 0028-abignore-work-around-an-abidw-bug.patch
36520b
Patch0029: 0029-Update-abidw-for-newer-tools.patch
36520b
Patch0030: 0030-linux-emmc-update-for-internal-API-breakage.patch
36520b
Patch0031: 0031-Fix-another-buggy-fake-acpi-pci-root-driver.patch
36520b
Patch0032: 0032-Fix-dev-probes-intialization-test.patch
36520b
Patch0033: 0033-Deal-with-devices-that-don-t-have-a-device-link-in-s.patch
36520b
Patch0034: 0034-Handle-partition-name-parsing-and-formatting-for-par.patch
36520b
Patch0035: 0035-Fix-partition-number-detection-when-it-s-not-provide.patch
36520b
Patch0036: 0036-dp-acpi-fix-HID-vs-HID_EX-formatting-bug.patch
36520b
Patch0037: 0037-Support-decoding-ACPI-Generic-Container-and-Embedded.patch
36520b
Patch0038: 0038-pci-root-actually-create-the-device-path-node.patch
36520b
Patch0039: 0039-sas-handle-port-expanders-at-all.patch
36520b
36520b
%description
36520b
efivar provides a simple command line interface to the UEFI variable facility.
36520b
36520b
%package libs
36520b
Summary: Library to manage UEFI variables
36520b
36520b
%description libs
36520b
Library to allow for the simple manipulation of UEFI variables.
36520b
36520b
%package devel
36520b
Summary: Development headers for libefivar
36520b
Requires: %{name}-libs = %{version}-%{release}
36520b
36520b
%description devel
36520b
development headers required to use libefivar.
36520b
36520b
%prep
36520b
%setup -q -n %{name}-%{version}
36520b
git init
36520b
git config user.email "%{name}-owner@fedoraproject.org"
36520b
git config user.name "Fedora Ninjas"
36520b
git add .
36520b
git commit -a -q -m "%{version} baseline."
36520b
git am %{patches} 
36520b
git config --unset user.email
36520b
git config --unset user.name
36520b
36520b
%build
36520b
make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto" LDFLAGS="$RPM_LD_FLAGS -flto"
36520b
36520b
%install
36520b
%makeinstall
36520b
36520b
%check
36520b
%ifarch x86_64
36520b
#make abicheck
36520b
%endif
36520b
36520b
%post libs -p /sbin/ldconfig
36520b
36520b
%postun libs -p /sbin/ldconfig
36520b
36520b
%files
36520b
%{!?_licensedir:%global license %%doc}
36520b
%license COPYING
36520b
%doc README.md
36520b
%{_bindir}/efivar
36520b
%exclude %{_bindir}/efivar-static
36520b
%{_mandir}/man1/*
36520b
36520b
%files devel
36520b
%{_mandir}/man3/*
36520b
%{_includedir}/*
36520b
%{_libdir}/*.so
36520b
%{_libdir}/pkgconfig/*.pc
36520b
36520b
%files libs
36520b
%{_libdir}/*.so.*
36520b
36520b
%changelog
36520b
* Tue Oct 02 2018 Peter Jones <pjones@redhat.com> - 36-1
36520b
- Update to efivar 36 (and some change)
36520b
  Resolves: rhbz#1635019
36520b
- Add NVDIMM support
36520b
- Re-written linux interface parser to handle how devices are
36520b
  partitioned better, and for cleaner code, with one file per device
36520b
  type.
36520b
- lots of verbosity updates
36520b
- better CI
36520b
- analysis with clang's analyzer as well as coverity
36520b
- Better handling of immutable bits in sysfs
36520b
- LIBEFIVAR_OPS=help
36520b
- lots of code cleanups.
36520b
- Add emmc device support
36520b
- Add SAS port expander support
36520b
- Support for ACPI root nodes that are less common
36520b
  (i.e. ACPI Generic Container and Embedded Controller PNP nodes)
36520b
- Make abbreviated device paths if we can't parse a device's info
36520b
- Don't require NVME to have an EUI
36520b
36520b
* Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 35-1
36520b
- Update to efivar 35
36520b
- fixes for older compilers
36520b
- efi_get_variable_exists()
36520b
- Lots of stuff to make CI work.
36520b
- use usleep() to avoid hitting the kernel rate limiter on efivarfs
36520b
- better EFI_GUID macro
36520b
- add efi_guid_fwupdate (0abba7dc-e516-4167-bbf5-4d9d1c739416)
36520b
36520b
* Tue Feb 27 2018 Peter Jones <pjones@redhat.com> - 34-1
36520b
- Update to efivar 34, and include a patch to avoid upstream rate limiting.
36520b
36520b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33-3
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
36520b
36520b
* Tue Jan 30 2018 Peter Robinson <pbrobinson@fedoraproject.org> 33-2
36520b
- Enable ARMv7, minor spec cleanups
36520b
36520b
* Tue Jan 23 2018 Peter Jones <pjones@redhat.com> - 33-1
36520b
- Add NVDIMM support
36520b
- Bump version to 33
36520b
36520b
* Tue Sep 12 2017 Peter Jones <pjones@redhat.com> - 32-2
36520b
- Make efi_guid_ux_capsule actually get exported right.
36520b
36520b
* Tue Sep 12 2017 Peter Jones <pjones@redhat.com> - 32-1
36520b
- efivar 32
36520b
- lots of coverity fixes; mostly leaked memory and fds and the like
36520b
- fix sysfs pci path formats
36520b
- handle device paths for dns, nfit, bluetooth, wifi, emmc, btle.
36520b
- improved abi checking on releases
36520b
- Fix failures on EDIT_WRITE in edit_variable() when the variable doesn't exist
36520b
- Add efi_guid_ux_capsule_guid to our guids
36520b
- Now with %%check
36520b
36520b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-3
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
36520b
36520b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-2
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
36520b
36520b
* Mon Mar 06 2017 Peter Jones <pjones@redhat.com> - 31-1
36520b
- Update to efivar 31
36520b
- Work around NVMe EUI sysfs change
36520b
- Provide some oldish version strings we should have kept.
36520b
- lots of overflow checking on our pointer math in dp parsing
36520b
- fix major/minor device number handling in the linux code
36520b
- Do better formatting checks for MBR partitions
36520b
- Fixes for gcc 7
36520b
36520b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 30-5
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
36520b
36520b
* Mon Oct 17 2016 Peter Jones <pjones@redhat.com> - 30-4
36520b
- Handle NVMe device attributes paths moving around in sysfs.
36520b
36520b
* Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 30-3
36520b
- Maybe even provide the *right* old linker deps.
36520b
36520b
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-2
36520b
- Try not to screw up SONAME stuff quite so badly.
36520b
36520b
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-1
36520b
- Fix efidp_*() functions with __pure__ that break with some optimizations
36520b
- Fix NVMe EUI parsing.
36520b
36520b
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 29-1
36520b
- Use -pie not -PIE in our linker config
36520b
- Fix some overflow checks for gcc < 5.x
36520b
- Make variable class probes other than the first one actually work
36520b
- Move -flto to CFLAGS
36520b
- Pack all of the efi device path headers
36520b
- Fix redundant decl of efi_guid_zero()
36520b
36520b
* Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 28-1
36520b
- Make our sonames always lib$FOO.1 , not lib$FOO.$VERSION .
36520b
36520b
* Tue Aug 16 2016 Peter Jones <pjones@redhat.com> - 27-1
36520b
- Bug fix for 086eeb17 in efivar 26.
36520b
36520b
* Wed Aug 10 2016 Peter Jones <pjones@redhat.com> - 26-1
36520b
- Update to efivar-26 .
36520b
36520b
* Thu Jun 30 2016 Peter Jones <pjones@redhat.com> - 0.24-1
36520b
- Update to 0.24
36520b
36520b
* Mon Feb 15 2016 Peter Jones <pjones@redhat.com> - 0.23-1
36520b
- Update to 0.23
36520b
36520b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-3
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
36520b
36520b
* Mon Nov 02 2015 Peter Jones <pjones@redhat.com> - 0.21-2
36520b
- Bump the release here so f22->f23->f24 updates work.
36520b
36520b
* Mon Jul 13 2015 Peter Jones <pjones@redhat.com> - 0.21-1
36520b
- Rename "make test" so packagers don't think it's a good idea to run it
36520b
  during builds.
36520b
- Error check sizes in vars_get_variable()
36520b
- Fix some file size comparisons
36520b
- make SONAME reflect the correct values.
36520b
- Fix some uses of "const"
36520b
- Compile with -O2 by default
36520b
- Fix some strict-aliasing violations
36520b
- Fix some of the .pc files and how we do linking to work better.
36520b
36520b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
36520b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
36520b
36520b
* Tue Jun 02 2015 Peter Jones <pjones@redhat.com> - 0.20-1
36520b
- Update to 0.20
36520b
- Make sure tester is build with the right link order for libraries.
36520b
- Adjust linker order for pkg-config
36520b
- Work around LocateDevicePath() not grokking PcieRoot() devices properly.
36520b
- Rectify some missing changelog entries
36520b
36520b
* Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.19-1
36520b
- Update to 0.19
36520b
- add API from efibootmgr so fwupdate and other tools can use it.
36520b
36520b
* Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.15-1
36520b
- Update to 0.15
36520b
- Make 32-bit builds set variables' DataSize correctly.
36520b
36520b
* Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.14-1
36520b
- Update to 0.14
36520b
- add efi_id_guid_to_guid() and efi_guid_to_id_guid(), which support {ID GUID}
36520b
  as a concept.
36520b
- Add some vendor specific guids to our guid list.
36520b
- Call "empty" "zero" now, as many other places do.  References to
36520b
  efi_guid_is_empty() and efi_guid_empty still exist for ABI compatibility.
36520b
- add "efivar -L" to the man page.
36520b
36520b
* Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.13-1
36520b
- Update to 0.13:
36520b
- add efi_symbol_to_guid()
36520b
- efi_name_to_guid() will now fall back on efi_symbol_to_guid() as a last
36520b
  resort
36520b
- "efivar -L" to list all the guids we know about
36520b
- better namespacing on libefivar.so (rename well_known_* -> efi_well_known_*)
36520b
36520b
* Thu Sep 25 2014 Peter Jones <pjones@redhat.com> - 0.12-1
36520b
- Update to 0.12
36520b
36520b
* Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
36520b
- Update to 0.11
36520b
36520b
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
36520b
- Update package to 0.10.
36520b
- Fixes a build error due to different cflags in the builders vs updstream
36520b
  makefile.
36520b
36520b
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
36520b
- Update package to 0.9.
36520b
36520b
* Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
36520b
- Update package to 0.8 as well.
36520b
36520b
* Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
36520b
- Update package to 0.7
36520b
- adds --append support to the binary.
36520b
36520b
* Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
36520b
- Update package to 0.6
36520b
- fixes to documentation from lersek
36520b
- more validation of uefi guids
36520b
- use .xz for archives
36520b
36520b
* Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
36520b
- Update to 0.5
36520b
36520b
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
36520b
- Fix ldconfig invocation
36520b
36520b
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
36520b
- Initial spec file