[packages/fwupd] - updated to 1.1.3 - added bashcomp patch (allow to pass bash_completiondir instead of requiring bas

qboosh qboosh at pld-linux.org
Wed Oct 17 17:35:49 CEST 2018


commit 445379a61df0a9b1eecb69ca56e70228ce34bf2f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 17 17:39:22 2018 +0200

    - updated to 1.1.3
    - added bashcomp patch (allow to pass bash_completiondir instead of requiring bash-completion package)

 fwupd-bashcomp.patch |  23 ++++++++
 fwupd.spec           | 151 +++++++++++++++++++++++++++++++++++++++------------
 2 files changed, 138 insertions(+), 36 deletions(-)
---
diff --git a/fwupd.spec b/fwupd.spec
index b63afe8..58b0c37 100644
--- a/fwupd.spec
+++ b/fwupd.spec
@@ -1,73 +1,81 @@
-# TODO: polkit >= 0.114 when available
 #
 # Conditional build:
 %bcond_without	colorhug	# ColorHug support
-%bcond_without	efi		# UEFI (and dell) support
+%bcond_without	efi		# UEFI (and dell, redfish) support
 %bcond_without	thunderbolt	# Thunderbolt support
 
-%ifnarch %{ix86} %{x8664} x32 %{arm} aarch64 ia64
+%ifnarch %{ix86} %{x8664} x32 %{arm} aarch64
 %undefine	with_efi
 %endif
-%if %{without efi}
-%undefine	with_thunderbolt
-%endif
 Summary:	System daemon for installing device firmware
 Summary(pl.UTF-8):	Demon systemowy do instalowania firmware'u urządzeń
 Name:		fwupd
-Version:	1.1.2
+Version:	1.1.3
 Release:	1
 License:	LGPL v2.1+
 Group:		Applications/System
 Source0:	https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
-# Source0-md5:	e384fa6669ba264065458677a7a4ee40
+# Source0-md5:	3f76eadf496d21b547d46299f925ecf3
+Patch0:		%{name}-bashcomp.patch
 URL:		https://github.com/hughsie/fwupd
 BuildRequires:	appstream-glib-devel >= 0.7.4
+%{?with_cairo:BuildRequires:	cairo-devel}
 %{?with_colorhug:BuildRequires:	colord-devel >= 1.2.12}
 BuildRequires:	docbook-dtd41-sgml
 BuildRequires:	docbook-utils
-%{?with_efi:BuildRequires:	efivar-devel}
+%{?with_efi:BuildRequires:	efivar-devel >= 33}
 # pkgconfig(libelf); can be also libelf-devel
 BuildRequires:	elfutils-devel >= 0.166
+%{?with_fontconfig:BuildRequires:	fontconfig-devel}
+%{?with_fontconfig:BuildRequires:	freetype-devel >= 2}
 %{?with_efi:BuildRequires:	fwupdate-devel >= 5}
-BuildRequires:	gcab-devel
+BuildRequires:	gcab-devel >= 1.0
+# C99
+BuildRequires:	gcc >= 5:3.2
 BuildRequires:	gettext-tools >= 0.19.7
-BuildRequires:	glib2-devel >= 1:2.45.8
+BuildRequires:	glib2-devel >= 1:2.55.0
+%{?with_efi:BuildRequires:	gnu-efi}
+BuildRequires:	gnutls-devel >= 3.4.4.1
 BuildRequires:	gobject-introspection-devel >= 0.9.8
 BuildRequires:	gpgme-devel
 BuildRequires:	gtk-doc >= 1.14
 BuildRequires:	intltool >= 0.35.0
+BuildRequires:	json-glib-devel >= 1.1.1
 BuildRequires:	libarchive-devel
 BuildRequires:	libgpg-error-devel
+BuildRequires:	libgudev-devel >= 232
 BuildRequires:	libgusb-devel >= 0.2.9
 # for dell (which depends on fwupdate too)
-%if %{with efi}
-BuildRequires:	gnu-efi
-BuildRequires:	libsmbios-devel >= 2.3.0
-%endif
+%{?with_efi:BuildRequires:	libsmbios-devel >= 2.4.0}
 BuildRequires:	libsoup-devel >= 2.52
-# pkgconfig(libtbtfwu) >= 1
-%{?with_thunderbolt:BuildRequires:	libtbtfwu-devel >= 0-0.2017.01.19}
+BuildRequires:	libuuid-devel
 BuildRequires:	libxslt-progs
-BuildRequires:	meson >= 0.37.0
+# for <linux/nvme_ioctl.h>
+BuildRequires:	linux-libc-headers >= 7:4.4
+BuildRequires:	meson >= 0.43.0
 BuildRequires:	ninja >= 1.6
 BuildRequires:	pkgconfig
-BuildRequires:	polkit-devel >= 0.103
+BuildRequires:	polkit-devel >= 0.114
 BuildRequires:	python3-pillow
 BuildRequires:	python3-pycairo
 BuildRequires:	rpmbuild(macros) >= 1.726
 BuildRequires:	sqlite3-devel >= 3
-BuildRequires:	systemd-units
+BuildRequires:	systemd-units >= 1:211
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	udev-devel
-BuildRequires:	udev-glib-devel
+%{?with_thunderbolt:BuildRequires:	umockdev-devel}
 BuildRequires:	xz
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	appstream-glib >= 0.7.4
 %{?with_colorhug:Requires:	colord-libs >= 1.2.12}
 %{?with_efi:Requires:	fwupdate-libs >= 5}
+Requires:	gcab >= 1.0
+Requires:	gnutls-libs >= 3.4.4.1
+Requires:	libgudev >= 232
 Requires:	libgusb >= 0.2.9
+%{?with_efi:Requires:	libsmbios >= 2.4.0}
 Requires:	libsoup >= 2.52
-Requires:	polkit >= 0.103
+Requires:	polkit >= 0.114
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -82,11 +90,25 @@ firmware'u urządzeń na maszynie lokalnej. Jest zaprojektowany dla
 komputerów osobistych, ale może być interesujący także dla telefonów,
 tabletów i farm serwerów.
 
+%package -n bash-completion-fwupd
+Summary:	Bash completion for fwupd commands
+Summary(pl.UTF-8):	Bashowe dopełnianie składni poleceń fwupd
+Group:		Applications/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	bash-completion >= 2.0
+
+%description -n bash-completion-fwupd
+Bash completion for fwupd commands.
+
+%description -n bash-completion-fwupd -l pl.UTF-8
+Bashowe dopełnianie składni poleceń fwupd.
+
 %package libs
 Summary:	Libraries for fwupd device firmware installing daemon
 Summary(pl.UTF-8):	Biblioteki dla demona fwupd instalującego aktualizacje firmware'u
 Group:		Libraries
-Requires:	glib2-devel >= 1:2.45.8
+Requires:	glib2-devel >= 1:2.55.0
+Requires:	json-glib >= 1.1.1
 
 %description libs
 Libraries for fwupd device firmware installing daemon.
@@ -99,7 +121,7 @@ Summary:	Header files for fwupd libraries
 Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek fwupd
 Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.45.8
+Requires:	glib2-devel >= 1:2.55.0
 Obsoletes:	fwupd-static
 
 %description devel
@@ -122,15 +144,31 @@ API documentation for fwupd libraries.
 %description apidocs -l pl.UTF-8
 Dokumentacja API do bibliotek fwupd.
 
+%package -n vala-fwupd
+Summary:	Vala API for fwupd library
+Summary(pl.UTF-8):	API języka Vala do biblioteki fwupd
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	vala-libsoup >= 2.52
+
+%description -n vala-fwupd
+Vala API for fwupd library.
+
+%description -n vala-fwupd -l pl.UTF-8
+API języka Vala do biblioteki fwupd.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build \
-	-Denable-tests=false \
-	%{!?with_thunderbolt:-Denable-thunderbolt=false} \
-	%{!?with_efi:-Denable-uefi=false} \
-	%{!?with_efi:-Denable-dell=false}
+	-Dbash_completiondir=%{bash_compdir} \
+	%{!?with_efi:-Dplugin_dell=false} \
+	%{!?with_efi:-Dplugin_redfish=false} \
+	%{!?with_thunderbolt:-Dplugin_thunderbolt=false} \
+	%{!?with_efi:-Dplugin_uefi=false} \
+	-Dtests=false
 
 %meson_build -C build
 
@@ -139,6 +177,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %meson_install -C build
 
+for pdoc in plugins/*/README.md ; do
+	pname=$(basename $(dirname $pdoc))
+	cp -p plugins/${pname}/README.md README-${pname}.md
+done
+
 %find_lang %{name}
 
 %clean
@@ -149,10 +192,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS MAINTAINERS NEWS README.md
+%doc AUTHORS MAINTAINERS NEWS README.md README-*.md
 %attr(755,root,root) %{_bindir}/dfu-tool
 %attr(755,root,root) %{_bindir}/fwupdmgr
-%attr(755,root,root) %{_libexecdir}/fwupd
+%dir %{_libexecdir}/fwupd
+%attr(755,root,root) %{_libexecdir}/fwupd/fwupd
+%attr(755,root,root) %{_libexecdir}/fwupd/fwupdate
+%attr(755,root,root) %{_libexecdir}/fwupd/fwupdtool
+%dir %{_libexecdir}/fwupd/efi
+%{_libexecdir}/fwupd/efi/fwupd*.efi
 %dir %{_libdir}/fwupd-plugins-3
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_altos.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_amt.so
@@ -160,19 +208,22 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_csr.so
 %if %{with efi}
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell.so
-%endif
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell_esrt.so
+%endif
+%attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell_dock.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dfu.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_flashrom.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_nitrokey.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_nvme.so
+%if %{with efi}
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_redfish.so
+%endif
+%attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_rts54hid.so
+%attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_rts54hub.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_steelseries.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_superio.so
-%if %{with efi}
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_synapticsmst.so
-%endif
 %if %{with thunderbolt}
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt.so
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so
@@ -186,12 +237,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_wacomhid.so
 %dir %{_sysconfdir}/fwupd
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/daemon.conf
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/uefi.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/redfish.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/uefi.conf
 %dir %{_sysconfdir}/fwupd/remotes.d
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/fwupd.conf
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/vendor.conf
 %dir %{_sysconfdir}/pki/fwupd
 %{_sysconfdir}/pki/fwupd/GPG-KEY-Hughski-Limited
@@ -220,20 +271,44 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml
 %{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
 %{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
+%lang(ca) %{_localedir}/ca/LC_IMAGES
+%lang(cs) %{_localedir}/cs/LC_IMAGES
+%lang(en) %{_localedir}/en/LC_IMAGES
+%lang(fi) %{_localedir}/fi/LC_IMAGES
+%lang(fur) %{_localedir}/fur/LC_IMAGES
+%lang(hr) %{_localedir}/hr/LC_IMAGES
+%lang(hu) %{_localedir}/hu/LC_IMAGES
+%lang(id) %{_localedir}/id/LC_IMAGES
+%lang(it) %{_localedir}/it/LC_IMAGES
+%lang(ko) %{_localedir}/ko/LC_IMAGES
+%lang(pl) %{_localedir}/pl/LC_IMAGES
+%lang(pt_BR) %{_localedir}/pt_BR/LC_IMAGES
+%lang(ru) %{_localedir}/ru/LC_IMAGES
+%lang(sr) %{_localedir}/sr/LC_IMAGES
+%lang(sv) %{_localedir}/sv/LC_IMAGES
+%lang(uk) %{_localedir}/uk/LC_IMAGES
+%lang(zh_CN) %{_localedir}/zh_CN/LC_IMAGES
+%lang(zh_TW) %{_localedir}/zh_TW/LC_IMAGES
 %dir /var/lib/fwupd
 %dir /var/lib/fwupd/builder
 /var/lib/fwupd/builder/README.md
 %{_mandir}/man1/dfu-tool.1*
 %{_mandir}/man1/fwupdmgr.1*
 
+%files -n bash-completion-fwupd
+%defattr(644,root,root,755)
+%{bash_compdir}/fwupdmgr
+%{bash_compdir}/fwupdtool
+
 %files libs
 %defattr(644,root,root,755)
-%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
 %attr(755,root,root) %{_libdir}/libfwupd.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libfwupd.so.2
+%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
 
 %files devel
 %defattr(644,root,root,755)
+%doc libfwupd/README.md
 %attr(755,root,root) %{_libdir}/libfwupd.so
 %{_includedir}/fwupd-1
 %{_datadir}/gir-1.0/Fwupd-2.0.gir
@@ -244,3 +319,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_gtkdocdir}/libfwupd
 
+%files -n vala-fwupd
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/fwupd.deps
+%{_datadir}/vala/vapi/fwupd.vapi
diff --git a/fwupd-bashcomp.patch b/fwupd-bashcomp.patch
new file mode 100644
index 0000000..e433c2c
--- /dev/null
+++ b/fwupd-bashcomp.patch
@@ -0,0 +1,23 @@
+--- fwupd-1.1.3/meson_options.txt.orig	2018-10-12 13:20:10.000000000 +0200
++++ fwupd-1.1.3/meson_options.txt	2018-10-17 17:11:30.171600448 +0200
+@@ -24,3 +24,4 @@
+ option('efi-libdir', type : 'string', description : 'path to the EFI lib directory')
+ option('efi-ldsdir', type : 'string', description : 'path to the EFI lds directory')
+ option('efi-includedir', type : 'string', value : '/usr/include/efi', description : 'path to the EFI header directory')
++option('bash_completiondir', type : 'string', value : '')
+--- fwupd-1.1.3/data/bash-completion/meson.build.orig	2018-10-17 17:20:45.844927437 +0200
++++ fwupd-1.1.3/data/bash-completion/meson.build	2018-10-17 17:20:49.401594061 +0200
+@@ -1,8 +1,12 @@
+-if bashcomp.found()
++tgt = get_option('bash_completiondir')
++
++if tgt == '' and bashcomp.found()
+   tgt = bashcomp.get_pkgconfig_variable('completionsdir',
+                                          define_variable: [ 'prefix', prefix ],
+   )
++endif
+ 
++if tgt != ''
+ 
+ if get_option('daemon')
+     install_data(['fwupdmgr'],
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fwupd.git/commitdiff/445379a61df0a9b1eecb69ca56e70228ce34bf2f



More information about the pld-cvs-commit mailing list