e6701c2
Name:           efivar
a5e2961
Version:        35
4f61805
Release:        2%{?dist}
e6701c2
Summary:        Tools to manage UEFI variables
e6701c2
License:        LGPLv2.1
d38bd3d
URL:            https://github.com/rhboot/efivar
e6701c2
Requires:       %{name}-libs = %{version}-%{release}
4f61805
ExclusiveArch:  %{efi}
afe010e
4f61805
BuildRequires:  efi-rpm-macros git glibc-static libabigail
1cf335f
# please don't fix this to reflect github's incomprehensible url that goes
1cf335f
# to a different tarball.
1cf335f
Source0:        https://github.com/rhboot/efivar/archive/efivar-%{version}.tar.bz2
e6701c2
e6701c2
%description
e6701c2
efivar provides a simple command line interface to the UEFI variable facility.
e6701c2
e6701c2
%package libs
e6701c2
Summary: Library to manage UEFI variables
e6701c2
e6701c2
%description libs
e6701c2
Library to allow for the simple manipulation of UEFI variables.
e6701c2
e6701c2
%package devel
e6701c2
Summary: Development headers for libefivar
e6701c2
Requires: %{name}-libs = %{version}-%{release}
e6701c2
e6701c2
%description devel
e6701c2
development headers required to use libefivar.
e6701c2
e6701c2
%prep
e6701c2
%setup -q -n %{name}-%{version}
e6701c2
git init
27ee51d
git config user.email "%{name}-owner@fedoraproject.org"
e6701c2
git config user.name "Fedora Ninjas"
e6701c2
git add .
e6701c2
git commit -a -q -m "%{version} baseline."
e6701c2
git am %{patches} 
afe010e
git config --unset user.email
afe010e
git config --unset user.name
e6701c2
e6701c2
%build
c02bb56
make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto" LDFLAGS="$RPM_LD_FLAGS -flto"
e6701c2
e6701c2
%install
e6701c2
%makeinstall
e6701c2
5536c3d
%check
d38bd3d
%ifarch x86_64
23b2e1c
#make abicheck
d38bd3d
%endif
5536c3d
e6701c2
%post libs -p /sbin/ldconfig
e6701c2
e6701c2
%postun libs -p /sbin/ldconfig
e6701c2
e6701c2
%files
27ee51d
%{!?_licensedir:%global license %%doc}
27ee51d
%license COPYING
b644d6d
%doc README.md
e6701c2
%{_bindir}/efivar
cbfb010
%exclude %{_bindir}/efivar-static
e6701c2
%{_mandir}/man1/*
e6701c2
e6701c2
%files devel
e6701c2
%{_mandir}/man3/*
e6701c2
%{_includedir}/*
e6701c2
%{_libdir}/*.so
e6701c2
%{_libdir}/pkgconfig/*.pc
e6701c2
e6701c2
%files libs
e6701c2
%{_libdir}/*.so.*
e6701c2
e6701c2
%changelog
4f61805
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 35-2
4f61805
- Use efi-rpm-macros instead of defining efi-related macros ourselves
4f61805
a5e2961
* Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 35-1
a5e2961
- Update to efivar 35
a5e2961
- fixes for older compilers
a5e2961
- efi_get_variable_exists()
a5e2961
- Lots of stuff to make CI work.
a5e2961
- use usleep() to avoid hitting the kernel rate limiter on efivarfs
a5e2961
- better EFI_GUID macro
a5e2961
- add efi_guid_fwupdate (0abba7dc-e516-4167-bbf5-4d9d1c739416)
a5e2961
1cf335f
* Tue Feb 27 2018 Peter Jones <pjones@redhat.com> - 34-1
1cf335f
- Update to efivar 34, and include a patch to avoid upstream rate limiting.
1cf335f
c5680d4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33-3
c5680d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c5680d4
8b8d679
* Tue Jan 30 2018 Peter Robinson <pbrobinson@fedoraproject.org> 33-2
8b8d679
- Enable ARMv7, minor spec cleanups
8b8d679
f972553
* Tue Jan 23 2018 Peter Jones <pjones@redhat.com> - 33-1
f972553
- Add NVDIMM support
f972553
- Bump version to 33
f972553
478d24e
* Tue Sep 12 2017 Peter Jones <pjones@redhat.com> - 32-2
478d24e
- Make efi_guid_ux_capsule actually get exported right.
478d24e
5536c3d
* Tue Sep 12 2017 Peter Jones <pjones@redhat.com> - 32-1
5536c3d
- efivar 32
5536c3d
- lots of coverity fixes; mostly leaked memory and fds and the like
5536c3d
- fix sysfs pci path formats
5536c3d
- handle device paths for dns, nfit, bluetooth, wifi, emmc, btle.
5536c3d
- improved abi checking on releases
5536c3d
- Fix failures on EDIT_WRITE in edit_variable() when the variable doesn't exist
5536c3d
- Add efi_guid_ux_capsule_guid to our guids
5536c3d
- Now with %%check
5536c3d
1a1c5ff
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-3
1a1c5ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1a1c5ff
24a147d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-2
24a147d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
24a147d
9af50ad
* Mon Mar 06 2017 Peter Jones <pjones@redhat.com> - 31-1
8893f31
- Update to efivar 31
8893f31
- Work around NVMe EUI sysfs change
8893f31
- Provide some oldish version strings we should have kept.
8893f31
- lots of overflow checking on our pointer math in dp parsing
8893f31
- fix major/minor device number handling in the linux code
8893f31
- Do better formatting checks for MBR partitions
8893f31
- Fixes for gcc 7
8893f31
2654fad
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 30-5
2654fad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2654fad
cec7707
* Mon Oct 17 2016 Peter Jones <pjones@redhat.com> - 30-4
cec7707
- Handle NVMe device attributes paths moving around in sysfs.
cec7707
085352f
* Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 30-3
085352f
- Maybe even provide the *right* old linker deps.
085352f
0352e7b
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-2
0352e7b
- Try not to screw up SONAME stuff quite so badly.
0352e7b
6d4a12e
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-1
6d4a12e
- Fix efidp_*() functions with __pure__ that break with some optimizations
6d4a12e
- Fix NVMe EUI parsing.
6d4a12e
c02bb56
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 29-1
c02bb56
- Use -pie not -PIE in our linker config
c02bb56
- Fix some overflow checks for gcc < 5.x
c02bb56
- Make variable class probes other than the first one actually work
c02bb56
- Move -flto to CFLAGS
c02bb56
- Pack all of the efi device path headers
c02bb56
- Fix redundant decl of efi_guid_zero()
c02bb56
e5557cf
* Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 28-1
e5557cf
- Make our sonames always lib$FOO.1 , not lib$FOO.$VERSION .
e5557cf
e5557cf
* Tue Aug 16 2016 Peter Jones <pjones@redhat.com> - 27-1
83152fa
- Bug fix for 086eeb17 in efivar 26.
83152fa
1026cab
* Wed Aug 10 2016 Peter Jones <pjones@redhat.com> - 26-1
1026cab
- Update to efivar-26 .
1026cab
084ee5f
* Thu Jun 30 2016 Peter Jones <pjones@redhat.com> - 0.24-1
084ee5f
- Update to 0.24
084ee5f
cbfb010
* Mon Feb 15 2016 Peter Jones <pjones@redhat.com> - 0.23-1
cbfb010
- Update to 0.23
cbfb010
1a857a3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-3
1a857a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a857a3
1738bf2
* Mon Nov 02 2015 Peter Jones <pjones@redhat.com> - 0.21-2
1738bf2
- Bump the release here so f22->f23->f24 updates work.
1738bf2
b644d6d
* Mon Jul 13 2015 Peter Jones <pjones@redhat.com> - 0.21-1
b644d6d
- Rename "make test" so packagers don't think it's a good idea to run it
b644d6d
  during builds.
b644d6d
- Error check sizes in vars_get_variable()
b644d6d
- Fix some file size comparisons
b644d6d
- make SONAME reflect the correct values.
283d107
- Fix some uses of "const"
283d107
- Compile with -O2 by default
283d107
- Fix some strict-aliasing violations
283d107
- Fix some of the .pc files and how we do linking to work better.
b644d6d
86856c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
86856c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
86856c9
9837a24
* Tue Jun 02 2015 Peter Jones <pjones@redhat.com> - 0.20-1
9837a24
- Update to 0.20
9837a24
- Make sure tester is build with the right link order for libraries.
9837a24
- Adjust linker order for pkg-config
9837a24
- Work around LocateDevicePath() not grokking PcieRoot() devices properly.
9837a24
- Rectify some missing changelog entries
42633a3
afe010e
* Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.19-1
afe010e
- Update to 0.19
afe010e
- add API from efibootmgr so fwupdate and other tools can use it.
afe010e
afe010e
* Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.15-1
afe010e
- Update to 0.15
afe010e
- Make 32-bit builds set variables' DataSize correctly.
afe010e
d3da480
* Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.14-1
d3da480
- Update to 0.14
d3da480
- add efi_id_guid_to_guid() and efi_guid_to_id_guid(), which support {ID GUID}
d3da480
  as a concept.
d3da480
- Add some vendor specific guids to our guid list.
d3da480
- Call "empty" "zero" now, as many other places do.  References to
d3da480
  efi_guid_is_empty() and efi_guid_empty still exist for ABI compatibility.
d3da480
- add "efivar -L" to the man page.
d3da480
27ee51d
* Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.13-1
27ee51d
- Update to 0.13:
27ee51d
- add efi_symbol_to_guid()
27ee51d
- efi_name_to_guid() will now fall back on efi_symbol_to_guid() as a last
27ee51d
  resort
27ee51d
- "efivar -L" to list all the guids we know about
27ee51d
- better namespacing on libefivar.so (rename well_known_* -> efi_well_known_*)
27ee51d
27ee51d
* Thu Sep 25 2014 Peter Jones <pjones@redhat.com> - 0.12-1
27ee51d
- Update to 0.12
27ee51d
1be10e7
* Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
1be10e7
- Update to 0.11
1be10e7
67f823c
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
67f823c
- Update package to 0.10.
67f823c
- Fixes a build error due to different cflags in the builders vs updstream
67f823c
  makefile.
67f823c
bc1f479
* Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
bc1f479
- Update package to 0.9.
bc1f479
e6701c2
* Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
e6701c2
- Update package to 0.8 as well.
e6701c2
e6701c2
* Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
e6701c2
- Update package to 0.7
e6701c2
- adds --append support to the binary.
e6701c2
e6701c2
* Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
e6701c2
- Update package to 0.6
e6701c2
- fixes to documentation from lersek
e6701c2
- more validation of uefi guids
e6701c2
- use .xz for archives
e6701c2
e6701c2
* Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
e6701c2
- Update to 0.5
e6701c2
e6701c2
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
e6701c2
- Fix ldconfig invocation
e6701c2
e6701c2
* Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
e6701c2
- Initial spec file