2017-10-27 10:22:48 +02:00
|
|
|
#
|
|
|
|
# spec file for package fwupd
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fwupd
|
2017-10-27 13:53:58 +02:00
|
|
|
Version: 1.0.0
|
2017-10-27 10:22:48 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Allow session software to update device firmware
|
2017-10-27 10:23:17 +02:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2017-10-27 13:53:58 +02:00
|
|
|
Group: System/Management
|
2017-10-27 10:22:48 +02:00
|
|
|
Url: https://pjones.fedorapeople.org/fwupdate/
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-10-27 13:53:58 +02:00
|
|
|
BuildRequires: dejavu-fonts
|
2017-10-27 10:22:48 +02:00
|
|
|
BuildRequires: docbook-utils-minimal
|
|
|
|
BuildRequires: gcab
|
2017-10-27 10:34:16 +02:00
|
|
|
# for certtool
|
2017-10-27 10:33:29 +02:00
|
|
|
BuildRequires: gnutls
|
2017-10-27 10:37:09 +02:00
|
|
|
BuildRequires: gobject-introspection
|
2017-10-27 10:22:48 +02:00
|
|
|
BuildRequires: gpgme-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libelf-devel
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: procps
|
|
|
|
BuildRequires: python3-Pillow
|
|
|
|
BuildRequires: python3-cairo
|
|
|
|
BuildRequires: python3-gobject-Gdk
|
2017-10-27 13:53:58 +02:00
|
|
|
BuildRequires: python3-xml
|
2017-10-27 10:22:48 +02:00
|
|
|
BuildRequires: pkgconfig(appstream-glib) >= 0.5.10
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(colorhug) >= 1.2.12
|
|
|
|
BuildRequires: pkgconfig(efiboot)
|
|
|
|
BuildRequires: pkgconfig(efivar)
|
2017-10-27 10:28:56 +02:00
|
|
|
#!BuildIgnore: shim
|
2017-10-27 10:55:30 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2017-10-27 10:22:48 +02:00
|
|
|
BuildRequires: pkgconfig(fwup) >= 5
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.25.9
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.45.8
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
2017-10-27 10:55:45 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2017-10-27 10:22:48 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk-doc) >= 1.14
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
|
BuildRequires: pkgconfig(gusb) >= 0.2.9
|
|
|
|
BuildRequires: pkgconfig(libarchive)
|
|
|
|
BuildRequires: pkgconfig(libelf)
|
|
|
|
# BuildRequires: pkgconfig(libtbtfwu) >= 1
|
|
|
|
BuildRequires: pkgconfig(libgcab-1.0)
|
|
|
|
BuildRequires: pkgconfig(libsmbios_c) >= 2.3.0
|
|
|
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.51.92
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
|
|
|
BuildRequires: pkgconfig(valgrind)
|
|
|
|
|
|
|
|
%description
|
|
|
|
fwupd is a simple daemon to allow session software to update device firmware on
|
|
|
|
your local machine. It's designed for desktops, but this project is probably
|
|
|
|
quite interesting for phones, tablets and server farms, so I'd be really happy
|
|
|
|
if this gets used on other non-desktop hardware.
|
|
|
|
|
|
|
|
You can either use a GUI software manager like GNOME Software to view and apply
|
|
|
|
updates, the command line tool or the system D-Bus interface directly.
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%package -n libfwupd2
|
2017-10-27 10:22:48 +02:00
|
|
|
Summary: Allow session software to update device firmware
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%description -n libfwupd2
|
2017-10-27 10:22:48 +02:00
|
|
|
fwupd is a simple daemon to allow session software to update device firmware on
|
|
|
|
your local machine. It's designed for desktops, but this project is probably
|
|
|
|
quite interesting for phones, tablets and server farms, so I'd be really happy
|
|
|
|
if this gets used on other non-desktop hardware.
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%package -n typelib-1_0-Fwupd-2_0
|
|
|
|
Summary: GObject-introspection bindings for libfwupd
|
2017-10-27 10:22:48 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%description -n typelib-1_0-Fwupd-2_0
|
|
|
|
fwupd is a simple daemon to allow session software to update device firmware on
|
|
|
|
your local machine. It's designed for desktops, but this project is probably
|
|
|
|
quite interesting for phones, tablets and server farms, so I'd be really happy
|
|
|
|
if this gets used on other non-desktop hardware.
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%package -n dfu-tool
|
|
|
|
Summary: Generic tool Device Firmware Upgrade (DFU) tool
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
|
|
|
|
%description -n dfu-tool
|
|
|
|
A generic tool to upload firmware to USB Devices based on Device Firmware Upgrade (DFU).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Allow session software to update device firmware
|
|
|
|
Group: Development/Languages/C and C++
|
2017-10-27 13:53:58 +02:00
|
|
|
Requires: libfwupd2 = %{version}
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
fwupd is a simple daemon to allow session software to update device firmware on
|
|
|
|
your local machine. It's designed for desktops, but this project is probably
|
|
|
|
quite interesting for phones, tablets and server farms, so I'd be really happy
|
|
|
|
if this gets used on other non-desktop hardware.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-10-27 13:53:58 +02:00
|
|
|
%{meson} \
|
|
|
|
-Denable-tests=false
|
2017-10-27 10:22:48 +02:00
|
|
|
%{meson_build}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{meson_install}
|
2017-10-27 13:53:58 +02:00
|
|
|
# README.md is packaged as doc
|
|
|
|
rm %{buildroot}%{_localstatedir}/lib/fwupd/builder/README.md
|
2017-10-27 10:22:48 +02:00
|
|
|
# Add SUSE specific rcfoo service symlink
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2017-10-27 13:53:58 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcfwupd-offline-update
|
2017-10-27 10:22:48 +02:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%post -n libfwupd2 -p /sbin/ldconfig
|
|
|
|
%postun -n libfwupd2 -p /sbin/ldconfig
|
2017-10-27 10:22:48 +02:00
|
|
|
%preun
|
2017-10-27 13:53:58 +02:00
|
|
|
%service_del_preun %{name}.service fwupd-offline-update.service
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%pre
|
2017-10-27 13:53:58 +02:00
|
|
|
%service_add_pre %{name}.service fwupd-offline-update.service
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%post
|
2017-10-27 13:53:58 +02:00
|
|
|
%service_add_post %{name}.service fwupd-offline-update.service
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%postun
|
2017-10-27 13:53:58 +02:00
|
|
|
%service_del_postun %{name}.service fwupd-offline-update.service
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md COPYING
|
|
|
|
%{_libexecdir}/systemd/system/fwupd.service
|
|
|
|
%{_libexecdir}/systemd/system/fwupd-offline-update.service
|
|
|
|
%%dir %{_libexecdir}/systemd/system/system-update.target.wants/
|
|
|
|
%{_libexecdir}/systemd/system/system-update.target.wants/fwupd-offline-update.service
|
|
|
|
%{_libexecdir}/fwupd
|
|
|
|
%{_bindir}/fwupdmgr
|
|
|
|
%{_sbindir}/rc%{name}
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_sbindir}/rcfwupd-offline-update
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_datadir}/%{name}/
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_mandir}/man1/fwupdmgr.1%{?ext_man}
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
|
|
|
|
%{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
|
2017-10-27 13:53:58 +02:00
|
|
|
%config %{_sysconfdir}/%{name}/
|
2017-10-27 10:22:48 +02:00
|
|
|
%dir %{_sysconfdir}/pki
|
|
|
|
%dir %{_sysconfdir}/pki/fwupd
|
|
|
|
%dir %{_sysconfdir}/pki/fwupd-metadata
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_sysconfdir}/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service
|
|
|
|
%{_sysconfdir}/pki/fwupd-metadata/LVFS-CA.pem
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_sysconfdir}/pki/fwupd/GPG-KEY-Hughski-Limited
|
|
|
|
%{_sysconfdir}/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_sysconfdir}/pki/fwupd/LVFS-CA.pem
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_udevrulesdir}/90-fwupd-devices.rules
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_libdir}/fwupd-plugins-3/
|
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/org.freedesktop.fwupd.metainfo.xml
|
2017-10-27 10:22:48 +02:00
|
|
|
%dir %{_localstatedir}/lib/%{name}/
|
|
|
|
|
|
|
|
%files -n dfu-tool
|
|
|
|
%{_bindir}/dfu-tool
|
|
|
|
%{_mandir}/man1/dfu-tool.1%{?ext_man}
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%files -n libfwupd2
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_libdir}/libfwupd.so.*
|
|
|
|
|
2017-10-27 13:53:58 +02:00
|
|
|
%files -n typelib-1_0-Fwupd-2_0
|
|
|
|
%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2017-10-27 13:53:58 +02:00
|
|
|
%{_datadir}/locale/*/LC_IMAGES/
|
2017-10-27 10:22:48 +02:00
|
|
|
|
|
|
|
%files devel
|
2017-10-27 13:53:58 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/libfwupd/
|
|
|
|
%{_datadir}/gir-1.0/Fwupd-2.0.gir
|
2017-10-27 10:22:48 +02:00
|
|
|
%{_includedir}/fwupd-1/
|
|
|
|
%{_libdir}/pkgconfig/fwupd.pc
|
|
|
|
%{_libdir}/libfwupd.so
|
|
|
|
|
|
|
|
%changelog
|