mirror of
https://abf.rosa.ru/djam/efivar.git
synced 2025-02-23 18:52:45 +00:00
Updated to v35
This commit is contained in:
parent
52572201f2
commit
40b6f66395
2 changed files with 44 additions and 28 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
0.15.tar.gz: dd4170e4b19d32dff14fa53f0bfe4daffff230b2
|
||||
efivar-35.tar.bz2: 4825d453a9ae810bc61c5bcbf3a12e4ad64d7487
|
||||
|
|
70
efivar.spec
70
efivar.spec
|
@ -1,58 +1,74 @@
|
|||
%define major 0
|
||||
%define major 1
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define develname %mklibname -d %{name}
|
||||
|
||||
Name: efivar
|
||||
Version: 0.15
|
||||
Release: 4
|
||||
Version: 35
|
||||
Release: 1
|
||||
Summary: Tools to manage UEFI variables
|
||||
License: LGPLv2.1
|
||||
Group: System/Kernel and hardware
|
||||
URL: https://github.com/vathpela/efivar
|
||||
Source0: https://github.com/vathpela/%{name}/archive/%{version}.tar.gz
|
||||
URL: https://github.com/rhboot/efivar
|
||||
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/efivar-%{version}.tar.bz2
|
||||
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
BuildRequires: popt-devel
|
||||
Requires: %{libname} = %{EVRD}
|
||||
|
||||
BuildRequires: pkgconfig(popt)
|
||||
BuildRequires: glibc-static-devel
|
||||
|
||||
%description
|
||||
efivar provides a simple command line interface to the UEFI variable facility.
|
||||
|
||||
%files
|
||||
%doc COPYING README.md
|
||||
%{_bindir}/efivar
|
||||
%{_mandir}/man1/*
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: Library for the %name
|
||||
Summary: Library to manage UEFI variables
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname}
|
||||
Library to allow for the simple manipulation of UEFI variables.
|
||||
|
||||
%files -n %{libname}
|
||||
%{_libdir}/*.so.%{major}*
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
%package -n %{develname}
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/C
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
Requires: %{libname} = %{EVRD}
|
||||
Provides: %{name}-devel = %{EVRD}
|
||||
|
||||
%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}.
|
||||
|
||||
%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}
|
||||
%{_mandir}/man3/*
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_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