mirror of
https://abf.rosa.ru/djam/efivar.git
synced 2025-02-23 18:52:45 +00:00
Update to v35 again
This commit is contained in:
parent
c2f91234d6
commit
dd04335dfc
2 changed files with 41 additions and 25 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
0.15.tar.gz: dd4170e4b19d32dff14fa53f0bfe4daffff230b2
|
efivar-35.tar.bz2: 4825d453a9ae810bc61c5bcbf3a12e4ad64d7487
|
||||||
|
|
64
efivar.spec
64
efivar.spec
|
@ -1,30 +1,44 @@
|
||||||
%define major 0
|
%define major 1
|
||||||
%define libname %mklibname %{name} %{major}
|
%define libname %mklibname %{name} %{major}
|
||||||
%define develname %mklibname -d %{name}
|
%define develname %mklibname -d %{name}
|
||||||
|
|
||||||
Name: efivar
|
Name: efivar
|
||||||
Version: 0.15
|
Version: 35
|
||||||
Release: 5
|
Release: 2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Tools to manage UEFI variables
|
Summary: Tools to manage UEFI variables
|
||||||
License: LGPLv2.1
|
License: LGPLv2.1
|
||||||
Group: System/Kernel and hardware
|
Group: System/Kernel and hardware
|
||||||
URL: https://github.com/vathpela/efivar
|
URL: https://github.com/rhboot/efivar
|
||||||
Source0: https://github.com/vathpela/%{name}/archive/%{version}.tar.gz
|
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/efivar-%{version}.tar.bz2
|
||||||
|
|
||||||
Requires: %{libname} = %{EVRD}
|
Requires: %{libname} = %{EVRD}
|
||||||
BuildRequires: popt-devel
|
|
||||||
|
BuildRequires: pkgconfig(popt)
|
||||||
|
BuildRequires: glibc-static-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
efivar provides a simple command line interface to the UEFI variable facility.
|
efivar provides a simple command line interface to the UEFI variable facility.
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc COPYING README.md
|
||||||
|
%{_bindir}/efivar
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Library for the %name
|
Summary: Library to manage UEFI variables
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
Library to allow for the simple manipulation of UEFI variables.
|
Library to allow for the simple manipulation of UEFI variables.
|
||||||
|
|
||||||
|
%files -n %{libname}
|
||||||
|
%{_libdir}/*.so.%{major}*
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
%package -n %{develname}
|
%package -n %{develname}
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/C
|
Group: Development/C
|
||||||
|
@ -32,28 +46,30 @@ Requires: %{libname} = %{EVRD}
|
||||||
Provides: %{name}-devel = %{EVRD}
|
Provides: %{name}-devel = %{EVRD}
|
||||||
|
|
||||||
%description -n %{develname}
|
%description -n %{develname}
|
||||||
The %{name}-devel package contains libraries and header files for
|
%{develname} contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{name}-%{version}
|
|
||||||
|
|
||||||
%build
|
|
||||||
make libdir=%{_libdir} bindir=%{_bindir} OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
||||||
|
|
||||||
%install
|
|
||||||
%makeinstall
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc COPYING README
|
|
||||||
%{_bindir}/efivar
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
|
|
||||||
%files -n %{develname}
|
%files -n %{develname}
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%files -n %{libname}
|
#---------------------------------------------------------------------------
|
||||||
%{_libdir}/*.so.%{major}*
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
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.
|
||||||
|
|
||||||
|
%install
|
||||||
|
%makeinstall
|
||||||
|
|
Loading…
Add table
Reference in a new issue