Sisyphus repositório
Última atualização: 17 outubro 2019 | SRPMs: 17500 | Visitas: 15287963
en ru br
ALT Linux repositórios
S:11-alt2

Group :: Sistema/Kernel e hardware
RPM: fwupdate

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: fwupdate-11-alt.patch
Download


 .gear/fwupdate-install                             |  34 ++++
 .gear/fwupdate.spec                                | 178 +++++++++++++++++++++
 .gear/rules                                        |   4 +
 .../tags/cbd1529f336b4535e313bda1f6c348e55e65c34a  |  25 +++
 .gear/tags/list                                    |   1 +
 .gitignore                                         |   1 -
 linux/Makefile                                     |   1 +
 linux/libfwup.map.in                               |   4 +-
 8 files changed, 245 insertions(+), 3 deletions(-)
diff --git a/.gear/fwupdate-install b/.gear/fwupdate-install
new file mode 100755
index 0000000..1af409d
--- /dev/null
+++ b/.gear/fwupdate-install
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+DISTRIBUTOR=altlinux
+
+efi_vars_dir=/sys/firmware/efi/vars
+efi_fwupdir=/usr/lib64/efi/fw
+esp_dir=/boot/efi/EFI
+
+if [ ! -d "$efi_vars_dir" ]; then
+  echo "System not running in EFI mode, not installing to EFI system partition."
+  exit 0
+fi
+
+
+for BINARY in $(find "$efi_fwupdir" -name '*.efi' -printf "%f\n"); do
+  ESP="$esp_dir/$DISTRIBUTOR"
+  ESP_FILE="$ESP/$BINARY"
+  NEW_FILE="$efi_fwupdir/$BINARY"
+
+  if [ -f "$ESP_FILE" ]; then
+    ESP_MD5=$(md5sum "$ESP_FILE" | sed 's, .*,,')
+  fi
+
+  mkdir -p "$ESP/fw"
+
+  if [ -n "$NEW_FILE" ]; then
+  	COMPARE_MD5=$(md5sum "$NEW_FILE" | sed 's, .*,,')
+  	if [ "$COMPARE_MD5" != "$ESP_MD5" ]; then
+          rm -f "$ESP_FILE"
+          echo "Installing $BINARY to EFI system partition."
+          cp "$NEW_FILE" "$ESP_FILE"
+  	fi
+  fi
+done
diff --git a/.gear/fwupdate.spec b/.gear/fwupdate.spec
new file mode 100644
index 0000000..6192a50
--- /dev/null
+++ b/.gear/fwupdate.spec
@@ -0,0 +1,178 @@
+%define RELEASE altlinux
+%global soversion 1
+Name: fwupdate
+Version: 11
+Release: alt2
+Summary: Tools to manage UEFI firmware updates
+License: GPLv2+
+Url: https://github.com/rhinstaller/fwupdate
+Group: System/Kernel and hardware
+Requires: %name-efi = %EVR
+BuildRequires: libefivar-devel
+BuildRequires: gnu-efi
+BuildRequires: elfutils libpopt-devel gettext pkgconfig
+BuildRequires: systemd
+BuildRequires: pesign
+BuildRequires: rpm-macros-uefi
+BuildRequires(pre): rpm-build-ubt
+%ifarch x86_64
+BuildRequires: libsmbios-devel
+%endif
+ExclusiveArch: x86_64 aarch64
+Source0: %name-%version.tar
+Source1: %name-install
+Patch0: %name-%version-alt.patch
+
+%ifarch x86_64
+%global efiarch x64
+%global efialtarch ia32
+%endif
+%ifarch aarch64
+%global efiarch aa64
+%endif
+
+%global efidir altlinux
+
+%description
+fwupdate provides a simple command line interface to the UEFI firmware updates.
+
+%package common
+Summary: Scripts and services for %name
+Group: System/Kernel and hardware
+
+%description common
+Scripts and services for %name
+
+%package -n lib%name%soversion
+Summary: Library to manage UEFI firmware updates
+Group: System/Kernel and hardware
+%ifarch %ix86
+Requires: shim-signed
+%endif
+Requires: %name-efi = %EVR
+
+%description -n lib%name%soversion
+Library to allow for the simple manipulation of UEFI firmware updates.
+
+%package devel
+Summary: Development headers for libfwup
+Requires: lib%name%soversion = %EVR
+Requires: libefivar-devel
+Group: System/Kernel and hardware
+
+%description devel
+development headers required to use libfwup.
+
+%package efi
+Summary: UEFI binaries used by libfwupdate
+Requires: lib%name%soversion = %EVR
+Requires: %name-common = %EVR
+Group: System/Kernel and hardware
+
+%description efi
+UEFI binaries used by libfwupdate.
+
+%prep
+%setup
+%patch0 -p1
+mkdir build-%efiarch
+%ifarch x86_64
+mkdir build-%efialtarch
+%endif
+
+%build
+cd build-%efiarch
+make TOPDIR=.. -f ../Makefile OPT_FLAGS="$RPM_OPT_FLAGS" \
+     libdir=%_libdir bindir=%_bindir \
+     libexecdir=%_libexecdir \
+     EFIDIR=%efidir  GNUEFIDIR=%_libdir
+cd ..
+
+%ifarch x86_64
+cd build-%efialtarch
+setarch linux32 -B make TOPDIR=.. -f ../Makefile ARCH=%efialtarch \
+                        OPT_FLAGS="$RPM_OPT_FLAGS" \
+                        libdir=%_libdir bindir=%_bindir \
+			libexecdir=%_libexecdir \
+                        EFIDIR=%efidir GNUEFIDIR=%_prefix/lib
+cd ..
+%endif
+
+%install
+cd build-%efiarch
+%makeinstall_std TOPDIR=.. -f ../Makefile \
+              EFIDIR=%efidir RPMARCH=%_arch RELEASE=%RELEASE \
+              libdir=%_libdir bindir=%_bindir mandir=%_mandir \
+	      libdatadir=/lib \
+              localedir=%_datadir/locale/ includedir=%_includedir \
+              libexecdir=%_libexecdir datadir=%_datadir \
+              sharedstatedir=%_sharedstatedir 
+cd ..
+install -pDm755 %SOURCE1 %buildroot%_libexecdir/fwupdate/install
+
+%ifarch x86_64
+cd build-%efialtarch
+setarch linux32 -B %makeinstall_std ARCH=%efialtarch TOPDIR=.. -f ../Makefile \
+                                 EFIDIR=%efidir RPMARCH=%_arch \
+                                 RELEASE=%RELEASE libdir=%_libdir \
+                                 bindir=%_bindir mandir=%_mandir \
+                                 localedir=%_datadir/locale/ \
+				 libdatadir=/lib \
+                                 includedir=%_includedir \
+                                 libexecdir=%_libexecdir \
+                                 datadir=%_datadir \
+                                 sharedstatedir=%_sharedstatedir
+cd ..
+%endif
+touch %buildroot%_sharedstatedir/fwupdate/done
+mkdir -p %buildroot/%_libdir/efi/fw/
+mv %buildroot/boot/efi/EFI/%efidir/fwup* %buildroot/%_libdir/efi/fw/
+
+%post efi
+%_libexecdir/fwupdate/install 
+%_libexecdir/fwupdate/cleanup
+
+%files
+%doc COPYING
+%_bindir/fwupdate
+%doc %_mandir/man1/*
+%dir %_datadir/bash-completion/completions
+%_datadir/bash-completion/completions/fwupdate
+
+%files devel
+%doc %_mandir/man3/*
+%_includedir/*
+%_libdir/*.so
+%_libdir/pkgconfig/*.pc
+
+%files common
+%_unitdir/fwupdate-cleanup.service
+%attr(0755,root,root) %dir %_sharedstatedir/fwupdate/
+%config(noreplace) %ghost %_sharedstatedir/fwupdate/done
+%attr(0755,root,root) %dir %_libexecdir/fwupdate
+%_libexecdir/fwupdate/cleanup
+%_libexecdir/fwupdate/install
+
+%files -n lib%name%soversion
+%_libdir/*.so.%{soversion}*
+
+%files efi
+%dir %_libdir/efi/fw
+%_libdir/efi/fw/fw*
+
+%changelog
+* Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 11-alt2
+- NMU: remove %ubt from release
+
+* Fri Apr 27 2018 Anton Farygin <rider@altlinux.ru> 11-alt1%ubt
+- new version
+
+* Wed Mar 28 2018 Anton Farygin <rider@altlinux.ru> 10-alt3
+- rebuilt with new gnu-efi
+- small improvement of the installation script
+
+* Tue Mar 27 2018 Anton Farygin <rider@altlinux.ru> 10-alt2
+- fixed efi files location in install script
+
+* Mon Mar 05 2018 Anton Farygin <rider@altlinux.ru> 10-alt1
+- first build for ALT, based on RH spec
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..88c40ea
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+spec: .gear/fwupdate.spec
+tar: @version@:.
+diff: @version@:. . name=@name@-@version@-alt.patch
+copy: .gear/fwupdate-install
diff --git a/.gear/tags/cbd1529f336b4535e313bda1f6c348e55e65c34a b/.gear/tags/cbd1529f336b4535e313bda1f6c348e55e65c34a
new file mode 100644
index 0000000..5ab65cb
--- /dev/null
+++ b/.gear/tags/cbd1529f336b4535e313bda1f6c348e55e65c34a
@@ -0,0 +1,25 @@
+object c720ccf002c39cb9b2380e99f009e08ae6679114
+type commit
+tag 11
+tagger Peter Jones <pjones@redhat.com> 1523299478 -0400
+
+fwupdate 11
+
+- lots of fixes from cov-scan and clang analyzer
+- support for Lenovo machines
+-----BEGIN PGP SIGNATURE-----
+
+iQIcBAABCgAGBQJay7SaAAoJEO7SZrcPT+8QHyMP+wRot84L/pRdxVH7cD83kumw
+/Sz2n3VWbwHfgejQq7ik2MgmONhX6dXkEve6NYTqSs6GKcvu+AXVZt7bFoqpz/0J
+z2MAxgzw6Er08eBL0TKO/ofEWA4E3CnJ7kRi2BQHscKTVvfqKy9G5tvYPnyhEyHW
+KuE3pqf5bbHmXo65iEFJBIjGdYYvwkrxIpIKF2KnTO5oJGxghlbXPoyh5fYMSwTw
+bb2kGHTun+If3g1p1BVsDkUATKZu/AV/i/BNQ6HyTfmNg+64KZ/2JqKRUpS7r35t
+RH02zx8wPhPq8hy7TE7Up/6p6X3CPDWR9uWRNPqpfdwArs/3oYcI+JUyy0IzRlp3
+YHqeMNgDJ2/VsWp60LPVuXUFhzjFMnLHbnLq76pbWjmVw0W6GYb4cZxWgesEcJTy
+TK78qqYB4ORZOLh3xsT3HIfnr4M9AKL2k04MJpFS73lZPQexBJvYA86GDOkvJ2Qt
+SI2NMcMy9CjziKyoChocN743Qf7OKoHN6wSdvJianNYy7NnMgnyYK2PT3kJl/GN9
+41mHXBmCBi0wE3DUdkODflg1VWiCDd8AzlRHvHMT27PAWuHzC2Z934RniGcbvD3Q
+a+BbJoWVsZTzpSg7wbggLoaOAgWfTbgkrnTpKuQybjeU7Z1lgEu0S9UjWfVf/Y/e
+incdzGyMxAhCOdlVaY0S
+=NvNk
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..eaa4786
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+cbd1529f336b4535e313bda1f6c348e55e65c34a 11
diff --git a/.gitignore b/.gitignore
index d0ff2f0..ead2d43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,6 @@
 *.a
 *.E
 *.pc
-*.spec
 *.tar.*
 .*.sw?
 linux/include/fwup-version.h
diff --git a/linux/Makefile b/linux/Makefile
index 3c5f490..a286811 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -60,6 +60,7 @@ include-dir :
 		$(INSTALL) -d -m 755 include ; \
 	fi
 
+fwupdate.c : | include/fwup.h
 libfwup.c : | include/fwup.h
 include/fwup.h : | include/fwup-version.h
 include/fwup-version.h : | include-dir
diff --git a/linux/libfwup.map.in b/linux/libfwup.map.in
index 8746b7a..279b7df 100644
--- a/linux/libfwup.map.in
+++ b/linux/libfwup.map.in
@@ -1,4 +1,4 @@
-libfwup.so.1 {
+LIBFWUP_1.1 {
 	global: fwup_clear_status;
 		fwup_enable_esrt;
 		fwup_esrt_disabled;
@@ -29,4 +29,4 @@ libfwup.so.1 {
 LIBFWUP_1.11 {
 	global: fwup_set_guid_forced;
 		fwup_resource_free;
-} libfwup.so.1;
+} LIBFWUP_1.1;
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009