Sisyphus repositório
Última atualização: 16 outubro 2019 | SRPMs: 17499 | Visitas: 15278089
en ru br
ALT Linux repositórios
S:1.3.2-alt1

Group :: Sistema/Configurações/Hadware
RPM: fwupd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_enable tests
%def_enable dummy

# fwupdate is only available on these arches

%ifarch x86_64 aarch64
%def_enable uefi
%endif

# libsmbios is only available on x86, and fwupdate is available on just x86_64

%ifarch x86_64
%def_enable dell
%endif

Summary: Firmware update daemon
Name: fwupd
Version: 1.3.2
Release: alt1
License: GPLv2+
Group: System/Configuration/Hardware
Url: https://github.com/hughsie/fwupd
Source0: %name-%version.tar
Source2: fwupd.watch
Patch0: %name-%version-alt.patch
ExclusiveArch: %ix86 x86_64 aarch64 ppc64le

BuildRequires: docbook-utils
BuildRequires: gettext
BuildRequires: glib2-devel
BuildRequires: libappstream-glib-devel
BuildRequires: libjson-glib-devel
BuildRequires: libgudev-devel
BuildRequires: libudev-devel
BuildRequires: libgusb-devel
BuildRequires: libsoup-devel
BuildRequires: libsoup-gir-devel
BuildRequires: libcolord-devel
BuildRequires: libpolkit-devel
BuildRequires: libsqlite3-devel
BuildRequires: libsystemd-devel
BuildRequires: libgpgme-devel
BuildRequires: systemd
BuildRequires: libumockdev-devel
BuildRequires: gcab
BuildRequires: libarchive-devel
BuildRequires: gobject-introspection-devel
BuildRequires: libgcab-devel
BuildRequires: valgrind-devel
BuildRequires: libelf-devel
BuildRequires: gtk-doc
BuildRequires: libuuid-devel
BuildRequires: libgnutls-devel
BuildRequires: gnutls-utils
BuildRequires: meson
BuildRequires: vala-tools
BuildRequires: help2man
BuildRequires: libxmlb-devel
BuildRequires: bash-completion
BuildRequires: libtpm2-tss-devel
BuildRequires: cmake

%if_enabled dell
BuildRequires: libsmbios-devel
%endif

%if_enabled uefi
BuildRequires: python3 python3-module-pycairo python3-module-pygobject3 python3-module-Pillow
BuildRequires: libpango-devel
BuildRequires: libcairo-devel libcairo-gobject-devel
BuildRequires: libfreetype-devel
BuildRequires: fontconfig
BuildRequires: fonts-ttf-dejavu
BuildRequires: gnu-efi libefivar-devel
Provides: fwupdate
Obsoletes: fwupdate
%endif

Requires: fwupd-labels = %EVR
Requires: bubblewrap

%description
fwupd is a daemon to allow session software to update device firmware.

%package devel
Summary: Development package for %name
Group: Development/C
Requires: %name = %EVR

%description devel
Files for development with %name.

%package labels
Group: System/Configuration/Hardware
Summary: Rendered labels for display during system firmware updates
# RedHat: BuildArch: noarch is disabled as we can get "different" .BMP files even when
# running the build on the same architecture due to the randomness introduced
# by the TTF files.

%description labels
Rendered labels for display during system firmware updates.

%package tests
Group: System/Configuration/Hardware
Summary: Data files for installed tests
BuildArch: noarch

%description tests
Data files for installed tests.

%prep
%setup
%patch0 -p1

%build
%meson \
   -Dgtkdoc=true \
   -Dman=false \
   -Dlvfs=true \
   -Dplugin_flashrom=false \
%if_enabled tests
   -Dtests=true \
%else
   -Dtests=false \
%endif
%if_enabled dummy
   -Dplugin_dummy=true \
%else
   -Dplugin_dummy=false \
%endif
   -Dplugin_thunderbolt=true \
%if_enabled uefi
   -Dplugin_uefi=true \
   -Dplugin_redfish=true \
   -Dplugin_nvme=true \
%else
   -Dplugin_uefi=false \
   -Dplugin_redfish=false \
   -Dplugin_nvme=false \
%endif
%if_enabled dell
   -Dplugin_dell=true \
   -Dplugin_synaptics=true \
%else
   -Dplugin_dell=false \
   -Dplugin_synaptics=false \
%endif

%meson_build

%if_enabled tests
%check
export LD_LIBRARY_PATH=%buildroot%_libdir
#meson_test
%endif

%install
%meson_install

mkdir -p --mode=0700 %buildroot%_localstatedir/fwupd/gnupg

%find_lang %name

%files -f %name.lang
%doc README.md AUTHORS COPYING
%config(noreplace)%_sysconfdir/fwupd/daemon.conf
%config(noreplace)%_sysconfdir/fwupd/thunderbolt.conf
%dir %_libexecdir/fwupd
%dir %_iconsdir/hicolor/scalable/apps
%_libexecdir/fwupd/fwupd
%_libexecdir/fwupd/fwupdtool
%_libexecdir/fwupd/fwupdagent
%_libexecdir/fwupd/fwupdoffline
%_datadir/bash-completion/completions/*
%_iconsdir/hicolor/scalable/apps/org.freedesktop.fwupd.svg
%if_enabled uefi
%_libexecdir/fwupd/fwupdate
%_libdir/efi/fwupd*.efi
%endif
%_bindir/dfu-tool
%_bindir/fwupdmgr
%dir %_sysconfdir/fwupd
%dir %_sysconfdir/fwupd/remotes.d
%config(noreplace)%_sysconfdir/fwupd/remotes.d/*.conf
%_sysconfdir/pki/fwupd
%_sysconfdir/pki/fwupd-metadata
%_datadir/dbus-1/system.d/org.freedesktop.fwupd.conf
%ifarch x86_64
%_datadir/fwupd/remotes.d/dell-esrt/metadata.xml
%endif
%_datadir/fwupd/remotes.d/vendor/firmware
%_datadir/dbus-1/interfaces/org.freedesktop.fwupd.xml
%_datadir/polkit-1/actions/org.freedesktop.fwupd.policy
%_datadir/polkit-1/rules.d/org.freedesktop.fwupd.rules
%_datadir/dbus-1/system-services/org.freedesktop.fwupd.service
%_datadir/metainfo/org.freedesktop.fwupd.metainfo.xml
%_datadir/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml
%_datadir/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml
%_datadir/fwupd/firmware-packager
%_unitdir/fwupd-offline-update.service
%_unitdir/fwupd.service
%_unitdir/fwupd-refresh.timer
%_unitdir/fwupd-refresh.service
%_unitdir/system-update.target.wants/
/lib/systemd/system-shutdown/fwupd.shutdown
%dir %_localstatedir/fwupd
%dir %_datadir/fwupd/quirks.d
%dir %_localstatedir/fwupd/builder
%_localstatedir/fwupd/builder/README.md
%_datadir/fwupd/quirks.d/*.quirk
%_libdir/libfwupd*.so.*
%_libdir/girepository-1.0/Fwupd-2.0.typelib
/lib/udev/rules.d/*.rules
%dir %_libdir/fwupd-plugins-3
%_libdir/fwupd-plugins-3/libfu_plugin_altos.so
%_libdir/fwupd-plugins-3/libfu_plugin_ata.so
%_libdir/fwupd-plugins-3/libfu_plugin_csr.so
%_libdir/fwupd-plugins-3/libfu_plugin_amt.so
%_libdir/fwupd-plugins-3/libfu_plugin_colorhug.so
%if_enabled dell
%_libdir/fwupd-plugins-3/libfu_plugin_dell.so
%_libdir/fwupd-plugins-3/libfu_plugin_dell_esrt.so
%endif
%_libdir/fwupd-plugins-3/libfu_plugin_dell_dock.so
%_libdir/fwupd-plugins-3/libfu_plugin_dfu.so
%_libdir/fwupd-plugins-3/libfu_plugin_ebitdo.so
%_libdir/fwupd-plugins-3/libfu_plugin_fastboot.so
%_libdir/fwupd-plugins-3/libfu_plugin_nitrokey.so
%_libdir/fwupd-plugins-3/libfu_plugin_rts54hid.so
%_libdir/fwupd-plugins-3/libfu_plugin_rts54hub.so
%_libdir/fwupd-plugins-3/libfu_plugin_superio.so
%_libdir/fwupd-plugins-3/libfu_plugin_solokey.so
%_libdir/fwupd-plugins-3/libfu_plugin_steelseries.so
%_libdir/fwupd-plugins-3/libfu_plugin_synaptics_cxaudio.so
%_libdir/fwupd-plugins-3/libfu_plugin_synaptics_prometheus.so
%if_enabled dell
%_libdir/fwupd-plugins-3/libfu_plugin_synapticsmst.so
%endif
%if_enabled dummy
%_libdir/fwupd-plugins-3/libfu_plugin_test.so
%endif
%_libdir/fwupd-plugins-3/libfu_plugin_thelio_io.so
%_libdir/fwupd-plugins-3/libfu_plugin_thunderbolt.so
%_libdir/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so
%_libdir/fwupd-plugins-3/libfu_plugin_udev.so
%if_enabled uefi
%_libdir/fwupd-plugins-3/libfu_plugin_nvme.so
%_libdir/fwupd-plugins-3/libfu_plugin_uefi.so
%_libdir/fwupd-plugins-3/libfu_plugin_uefi_recovery.so
%_libdir/fwupd-plugins-3/libfu_plugin_redfish.so
%config(noreplace)%_sysconfdir/fwupd/uefi.conf
%config(noreplace)%_sysconfdir/fwupd/redfish.conf
%endif
%_libdir/fwupd-plugins-3/libfu_plugin_unifying.so
%_libdir/fwupd-plugins-3/libfu_plugin_upower.so
%_libdir/fwupd-plugins-3/libfu_plugin_wacom_usb.so
%_libdir/fwupd-plugins-3/libfu_plugin_wacom_raw.so

%ghost %_localstatedir/fwupd/gnupg

%files devel
%_datadir/gir-1.0/Fwupd-2.0.gir
%_datadir/gtk-doc/html/libfwupd
%_includedir/fwupd-1
%_libdir/libfwupd*.so
%_libdir/pkgconfig/fwupd.pc
%_datadir/vala/vapi/fwupd.*

%files labels
%if_enabled uefi
%_datadir/locale/*/LC_IMAGES/fwupd*
%endif

%files tests
%dir %_datadir/installed-tests/fwupd
%_datadir/installed-tests/fwupd/fwupd-tests.xml
%_datadir/installed-tests/fwupd/*.test
%_datadir/installed-tests/fwupd/*.cab
%_datadir/installed-tests/fwupd/*.sh
%_datadir/installed-tests/fwupd/*.py*

%changelog

Todas as alterações você pod ver aqui

 
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