e6701c2
Name:           efivar
428d0b3
Version:        30
34261a2
Release:        4%{?dist}
e6701c2
Summary:        Tools to manage UEFI variables
e6701c2
License:        LGPLv2.1
afe010e
URL:            https://github.com/rhinstaller/efivar
e6701c2
Requires:       %{name}-libs = %{version}-%{release}
9837a24
ExclusiveArch:	%{ix86} x86_64 aarch64
afe010e
0014ed4
BuildRequires:  popt-devel popt-static git glibc-static
afe010e
Source0:        https://github.com/rhinstaller/efivar/releases/download/efivar-%{version}/efivar-%{version}.tar.bz2
c8fe6e7
Patch0001:	0001-lib-provide-LIBEFIVAR_1.28-etc.patch
34261a2
Patch0002:	0001-Check-for-the-NVMe-EUI-in-the-base-sysfs-dir-for-the.patch
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
rm -rf $RPM_BUILD_ROOT
e6701c2
%makeinstall
e6701c2
e6701c2
%clean
e6701c2
rm -rf $RPM_BUILD_ROOT
e6701c2
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
34261a2
* Mon Oct 17 2016 Peter Jones <pjones@redhat.com> - 30-4
34261a2
- Handle NVMe device attributes paths moving around in sysfs.
34261a2
c8fe6e7
* Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 30-3
c8fe6e7
- Maybe even provide the *right* old linker deps.
c8fe6e7
e206cb5
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-2
e206cb5
- Try not to screw up SONAME stuff quite so badly.
e206cb5
428d0b3
* Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-1
428d0b3
- Fix efidp_*() functions with __pure__ that break with some optimizations
428d0b3
- Fix NVMe EUI parsing.
428d0b3
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