2018-09-10 11:27:56 +03:00
|
|
|
%define major 1
|
2014-11-06 21:48:04 +03:00
|
|
|
%define libname %mklibname %{name} %{major}
|
|
|
|
%define develname %mklibname -d %{name}
|
2013-11-25 00:50:04 +04:00
|
|
|
|
|
|
|
Name: efivar
|
2018-09-10 11:27:56 +03:00
|
|
|
Version: 35
|
|
|
|
Release: 2
|
2018-09-06 18:51:36 +03:00
|
|
|
Epoch: 1
|
2013-11-25 00:50:04 +04:00
|
|
|
Summary: Tools to manage UEFI variables
|
|
|
|
License: LGPLv2.1
|
2014-11-06 21:48:04 +03:00
|
|
|
Group: System/Kernel and hardware
|
2018-09-10 11:27:56 +03:00
|
|
|
URL: https://github.com/rhboot/efivar
|
|
|
|
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/efivar-%{version}.tar.bz2
|
2013-11-25 00:50:04 +04:00
|
|
|
|
2018-09-06 19:37:50 +03:00
|
|
|
Requires: %{libname} = %{EVRD}
|
2018-09-10 11:27:56 +03:00
|
|
|
|
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
BuildRequires: glibc-static-devel
|
2013-11-25 00:50:04 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
efivar provides a simple command line interface to the UEFI variable facility.
|
|
|
|
|
2018-09-10 11:27:56 +03:00
|
|
|
%files
|
|
|
|
%doc COPYING README.md
|
|
|
|
%{_bindir}/efivar
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2013-11-25 00:50:04 +04:00
|
|
|
%package -n %{libname}
|
2018-09-10 11:27:56 +03:00
|
|
|
Summary: Library to manage UEFI variables
|
2014-11-06 21:48:04 +03:00
|
|
|
Group: System/Libraries
|
2013-11-25 00:50:04 +04:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Library to allow for the simple manipulation of UEFI variables.
|
|
|
|
|
2018-09-10 11:27:56 +03:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/*.so.%{major}*
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2013-11-25 00:50:04 +04:00
|
|
|
%package -n %{develname}
|
2014-11-06 21:48:04 +03:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/C
|
2018-09-06 19:37:50 +03:00
|
|
|
Requires: %{libname} = %{EVRD}
|
|
|
|
Provides: %{name}-devel = %{EVRD}
|
2013-11-25 00:50:04 +04:00
|
|
|
|
|
|
|
%description -n %{develname}
|
2018-09-10 11:27:56 +03:00
|
|
|
%{develname} contains libraries and header files for
|
2013-11-25 00:50:04 +04:00
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2018-09-10 11:27:56 +03:00
|
|
|
%files -n %{develname}
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2013-11-25 00:50:04 +04:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
2018-09-10 11:27:56 +03:00
|
|
|
|
2013-11-25 00:50:04 +04:00
|
|
|
%build
|
2018-09-10 11:27:56 +03:00
|
|
|
make \
|
|
|
|
libdir=%{_libdir} \
|
|
|
|
bindir=%{_bindir} \
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -Wstrict-aliasing=3 -flto" \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS -flto"
|
|
|
|
|
|
|
|
# -Wstring-aliasing=3 enables slower but more accurate detection of
|
|
|
|
# aliasing issues than level 2 used by default, less false positives.
|
2013-11-25 00:50:04 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|