[packages/fwupdate] - updated to 11 - removed obsolete overflow,undefined patches

qboosh qboosh at pld-linux.org
Sat Apr 21 22:45:12 CEST 2018


commit bb6eacd826b570aa7f2e21715d1c93f2796011b4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 21 22:45:26 2018 +0200

    - updated to 11
    - removed obsolete overflow,undefined patches

 fwupdate-overflow.patch  | 11 -----------
 fwupdate-undefined.patch | 11 -----------
 fwupdate.spec            | 26 +++++++++++---------------
 3 files changed, 11 insertions(+), 37 deletions(-)
---
diff --git a/fwupdate.spec b/fwupdate.spec
index 59b3d4c..e164863 100644
--- a/fwupdate.spec
+++ b/fwupdate.spec
@@ -5,23 +5,22 @@
 Summary:	Tools to manage UEFI firmware updates
 Summary(pl.UTF-8):	Narzędzia do zarządzania aktualizacjami firmware'u przez UEFI
 Name:		fwupdate
-Version:	9
-Release:	2
+Version:	11
+Release:	1
 License:	GPL v2
 Group:		Libraries
-Source0:	https://github.com/rhinstaller/fwupdate/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	0ce656b18a60256a7cf9fa42fd5d99de
-Patch0:		%{name}-overflow.patch
-Patch1:		%{name}-undefined.patch
+#Source0Download: https://github.com/rhboot/fwupdate/releases
+Source0:	https://github.com/rhboot/fwupdate/releases/download/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	ec833aea7a59c17128f1bdf521a9ac9f
 URL:		https://github.com/rhinstaller/fwupdate
-BuildRequires:	efivar-devel >= 0.30
-BuildRequires:	gnu-efi
+BuildRequires:	efivar-devel >= 0.33
+BuildRequires:	gnu-efi >= 3.0.5
 BuildRequires:	libsmbios-devel
 %{?with_pesign:BuildRequires:	pesign}
 BuildRequires:	popt-devel
 BuildRequires:	sed >= 4.0
 Requires:	%{name}-libs = %{version}-%{release}
-#Requires(post):	efibootmgr >= 0.12
+#Requires(post):	efibootmgr >= 0.13
 ExclusiveArch:	%{ix86} %{x8664} x32 %{arm} aarch64 ia64
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,7 +38,7 @@ firmware'u przez UEFI.
 Summary:	Library to manage UEFI firmware updates
 Summary(pl.UTF-8):	Biblioteka do zarządzania aktualizacjami firmware'u przez UEFI
 Group:		Libraries
-Requires:	efivar-libs >= 0.30
+Requires:	efivar-libs >= 0.33
 
 %description libs
 Library to manage UEFI firmware updates.
@@ -52,7 +51,7 @@ Summary:	Header files for libfwup library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libfwup
 Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
-Requires:	efivar-devel >= 0.30
+Requires:	efivar-devel >= 0.33
 
 %description devel
 Header files for libfwup library.
@@ -75,8 +74,6 @@ Bashowe uzupełnianie parametrów polecenia fwupdate.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %if %{without pesign}
 %{__sed} -i -e 's/pesign/cp $< $@ \&\& : &/' efi/Makefile
@@ -87,7 +84,7 @@ Bashowe uzupełnianie parametrów polecenia fwupdate.
 %endif
 
 %build
-%{__make} \
+%{__make} -j1 \
 %ifarch x32
 	ARCH=x86_64 \
 %endif
@@ -139,7 +136,6 @@ efibootmgr -C -b 1337 -d /dev/sda -p 1 -l /EFI/%{efidir}/fwupdate.efi -L "Firmwa
 %attr(755,root,root) %{_bindir}/fwupdate
 %dir %{_libexecdir}/fwupdate
 %attr(755,root,root) %{_libexecdir}/fwupdate/cleanup
-%{_datadir}/fwupdate
 %{systemdunitdir}/fwupdate-cleanup.service
 %{_mandir}/man1/fwupdate.1*
 %dir /boot/efi/EFI/%{efidir}
diff --git a/fwupdate-overflow.patch b/fwupdate-overflow.patch
deleted file mode 100644
index 060e1c1..0000000
--- a/fwupdate-overflow.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- fwupdate-8/efi/fwupdate.c.orig	2016-11-15 16:24:00.862246035 +0100
-+++ fwupdate-8/efi/fwupdate.c	2016-11-15 16:24:06.562245972 +0100
-@@ -44,7 +44,7 @@
- #endif
- #ifndef uintn_mult
- #define uintn_mult(a, b, c) ({					\
--		const UINTN _limit = ~0ULL;			\
-+		const UINTN _limit = (UINTN)~0ULL;		\
- 		int _ret = 1;					\
- 		if ((a) != 0 && (b) != 0) {			\
- 			_ret = _limit / (a) < (b);		\
diff --git a/fwupdate-undefined.patch b/fwupdate-undefined.patch
deleted file mode 100644
index 46903b4..0000000
--- a/fwupdate-undefined.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- fwupdate-9/linux/libfwup.c.orig	2017-03-06 21:36:55.000000000 +0100
-+++ fwupdate-9/linux/libfwup.c	2017-06-02 22:26:43.828884242 +0200
-@@ -777,7 +777,7 @@
- 	size_t boot_order_size = 0;
- 	uint32_t attr;
- 	int rc;
--	unsigned int i;
-+	unsigned int i = 0;
- 
- 	rc = efi_get_variable_size(efi_guid_global, "BootOrder",
- 				   &boot_order_size);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fwupdate.git/commitdiff/bb6eacd826b570aa7f2e21715d1c93f2796011b4



More information about the pld-cvs-commit mailing list