[packages/efivar] - updated to 0.20 - added link patch

qboosh qboosh at pld-linux.org
Mon Jun 29 16:42:37 CEST 2015


commit 9d7df3aa88b1feb623666449613561c0d5eb0e7a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 29 16:44:17 2015 +0200

    - updated to 0.20
    - added link patch

 efivar-link.patch | 19 +++++++++++++++++++
 efivar.spec       | 20 ++++++++++++--------
 2 files changed, 31 insertions(+), 8 deletions(-)
---
diff --git a/efivar.spec b/efivar.spec
index b260009..b98ddcd 100644
--- a/efivar.spec
+++ b/efivar.spec
@@ -5,14 +5,13 @@
 Summary:	Tools to manage UEFI variables
 Summary(pl.UTF-8):	Narzędzia do zarządzania zmiennymi UEFI
 Name:		efivar
-Version:	0.17
-# unfortunately the last tagged version is 0.15; for later, look changelog of dp branch
-%define	gitref	a49b223a42e07989f775aca55eb7f2e9d1b6e82b
+Version:	0.20
 Release:	1
 License:	LGPL v2.1
 Group:		Applications/System
-Source0:	https://github.com/rhinstaller/efivar/archive/%{gitref}/%{name}-%{version}.tar.gz
-# Source0-md5:	390dd8192e288116fc17597fbe4baef4
+Source0:	https://github.com/rhinstaller/efivar/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	2982f1e1df35f214c17288137f15312f
+Patch0:		%{name}-link.patch
 URL:		https://github.com/rhinstaller/efivar
 BuildRequires:	popt-devel
 Requires:	%{name}-libs = %{version}-%{release}
@@ -63,13 +62,14 @@ Static efivar library.
 Statyczna biblioteka efivar.
 
 %prep
-%setup -q -n %{name}-%{gitref}
+%setup -q
+%patch0 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags}" \
-	%{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \
+	%{?with_static_libs:LIBTARGETS="libefivar.so.0 libefiboot.so.0 libefivar.a libefiboot.a"} \
 	libdir=%{_libdir}
 
 %install
@@ -77,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
-	%{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \
+	%{?with_static_libs:LIBTARGETS="libefivar.so.0 libefiboot.so.0 libefivar.a libefiboot.a"} \
 	libdir=%{_libdir}
 
 %clean
@@ -94,17 +94,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libefiboot.so.0
 %attr(755,root,root) %{_libdir}/libefivar.so.0
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libefiboot.so
 %attr(755,root,root) %{_libdir}/libefivar.so
 %{_includedir}/efivar
+%{_pkgconfigdir}/efiboot.pc
 %{_pkgconfigdir}/efivar.pc
 %{_mandir}/man3/efi_*.3*
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
+%{_libdir}/libefiboot.a
 %{_libdir}/libefivar.a
 %endif
diff --git a/efivar-link.patch b/efivar-link.patch
new file mode 100644
index 0000000..81017af
--- /dev/null
+++ b/efivar-link.patch
@@ -0,0 +1,19 @@
+--- efivar-0.20/src/Makefile.orig	2015-06-02 20:32:44.000000000 +0200
++++ efivar-0.20/src/Makefile	2015-06-28 20:25:30.902448688 +0200
+@@ -36,10 +36,15 @@
+ 
+ libefivar.so.$(SONAME_VERSION) :: $(EFIVAR_OBJECTS)
+ 
++libefivar.so.$(SONAME_VERSION) : LIBS+=$(EFIVAR_LIBS)
++
+ libefiboot.a :: $(EFIBOOT_OBJECTS)
+ 
+-libefiboot.so.$(SONAME_VERSION) :: $(EFIBOOT_OBJECTS)
++libefiboot.so.$(SONAME_VERSION) :: $(EFIBOOT_OBJECTS) libefivar.so
+ 
++libefiboot.so.$(SONAME_VERSION) : LIBS+=efivar
++libefiboot.so.$(SONAME_VERSION) : LIBFLAGS+=-L.
++
+ efivar : efivar.o libefivar.so
+ 	$(CCLD) $(ccldflags) -L. -lefivar -o $@ $^ \
+ 		-lpopt $(foreach lib,$(EFIVAR_LIBS),-l$(lib))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/efivar.git/commitdiff/9d7df3aa88b1feb623666449613561c0d5eb0e7a



More information about the pld-cvs-commit mailing list