2670547a8e
Disable it for now to avoid it running at the same time as packagekit's and rebooting in the middle of transaction.
184 lines
5.5 KiB
RPMSpec
184 lines
5.5 KiB
RPMSpec
Summary: Firmware update daemon
|
|
Name: fwupd
|
|
Version: 0.1.5
|
|
Release: 3%{?dist}
|
|
License: GPLv2+
|
|
URL: https://github.com/hughsie/fwupd
|
|
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
|
# Backported from upstream
|
|
Patch0: 0001-Use-the-new-secure-metadata-URI.patch
|
|
|
|
BuildRequires: docbook-utils
|
|
BuildRequires: gettext
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: libgudev1-devel
|
|
BuildRequires: colord-devel >= 1.0.0
|
|
BuildRequires: polkit-devel >= 0.103
|
|
BuildRequires: libgcab1-devel
|
|
BuildRequires: sqlite-devel
|
|
BuildRequires: gpgme-devel
|
|
BuildRequires: systemd
|
|
BuildRequires: libsoup-devel
|
|
BuildRequires: libarchive-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: libappstream-glib-devel >= 0.5.0
|
|
BuildRequires: gcab
|
|
|
|
%ifarch x86_64 %{ix86} aarch64
|
|
BuildRequires: fwupdate-devel >= 0.4
|
|
%endif
|
|
|
|
Requires(post): systemd
|
|
Requires(preun): systemd
|
|
Requires(postun): systemd
|
|
|
|
%description
|
|
fwupd is a daemon to allow session software to update device firmware.
|
|
|
|
%package devel
|
|
Summary: Development package for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Files for development with %{name}.
|
|
|
|
%package sign
|
|
Summary: Firmware signing server
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description sign
|
|
This package provides a signing server suitable for automatically signing
|
|
firmware in .cab archives.
|
|
The values in /etc/fwsignd.conf file should be set before starting the daemon.
|
|
You probably don't need this package unless you're implementing a LVFS clone.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -b .non-beta
|
|
|
|
%build
|
|
%configure \
|
|
--enable-fwsignd \
|
|
--disable-static \
|
|
%ifnarch x86_64 %{ix86} aarch64
|
|
--disable-uefi \
|
|
%endif
|
|
--disable-rpath \
|
|
--disable-silent-rules \
|
|
--disable-dependency-tracking
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
# Disable the fwupd offline update service for now to avoid it running at the
|
|
# same time as packagekit's and rebooting in the middle of transaction
|
|
rm -rf %{buildroot}%{_unitdir}/fwupd-offline-update.service
|
|
rm -rf %{buildroot}%{_unitdir}/system-update.target.wants/
|
|
|
|
%find_lang %{name}
|
|
|
|
%pre sign
|
|
getent group fwsignd >/dev/null || groupadd -r fwsignd
|
|
getent passwd fwsignd >/dev/null || \
|
|
useradd -r -g fwsignd -d /var/lib/fwsignd -s /sbin/nologin \
|
|
-c "User for fwsignd" fwsignd
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%systemd_post fwupd.service
|
|
|
|
%preun
|
|
%systemd_preun fwupd.service
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%systemd_postun_with_restart fwupd.service
|
|
|
|
%files -f %{name}.lang
|
|
%doc README.md AUTHORS NEWS
|
|
%license COPYING
|
|
%config(noreplace)%{_sysconfdir}/fwupd.conf
|
|
%{_libexecdir}/fwupd
|
|
%{_bindir}/fwupdmgr
|
|
%{_sysconfdir}/pki/fwupd
|
|
%{_sysconfdir}/pki/fwupd-metadata
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
%{_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}/man/man1/fwupdmgr.1.gz
|
|
%{_unitdir}/fwupd.service
|
|
%dir %{_localstatedir}/lib/fwupd
|
|
%{_libdir}/lib*.so.*
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
%dir %{_localstatedir}/cache/app-info
|
|
%dir %{_localstatedir}/cache/app-info/icons
|
|
%dir %{_localstatedir}/cache/app-info/xmls
|
|
/usr/lib/udev/rules.d/*.rules
|
|
|
|
%files sign
|
|
%config(noreplace)%{_sysconfdir}/fwsignd.conf
|
|
%{_unitdir}/fwsignd.service
|
|
%{_libexecdir}/fwsignd
|
|
%attr(755,fwsignd,fwsignd) %dir %{_localstatedir}/lib/fwsignd
|
|
|
|
%files devel
|
|
%{_includedir}/fwupd-1
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
%changelog
|
|
* Fri Aug 21 2015 Kalev Lember <klember@redhat.com> 0.1.5-3
|
|
- Disable fwupd offline update service
|
|
|
|
* Wed Aug 19 2015 Richard Hughes <richard@hughsie.com> 0.1.5-2
|
|
- Use the non-beta download URL prefix
|
|
|
|
* Wed Aug 12 2015 Richard Hughes <richard@hughsie.com> 0.1.5-1
|
|
- New upstream release
|
|
- Add a Raspberry Pi firmware provider
|
|
- Fix validation of written firmware
|
|
- Make parsing the option ROM runtime optional
|
|
- Use the AppStream 0.9 firmware specification by default
|
|
|
|
* Sat Jul 25 2015 Richard Hughes <richard@hughsie.com> 0.1.4-1
|
|
- New upstream release
|
|
- Actually parse the complete PCI option ROM
|
|
- Add a 'fwupdmgr update' command to update all devices to latest versions
|
|
- Add a simple signing server that operates on .cab files
|
|
- Add a 'verify' command that verifies the cryptographic hash of device firmware
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Jun 03 2015 Richard Hughes <richard@hughsie.com> 0.1.3-2
|
|
- Compile with libfwupdate for UEFI firmware support.
|
|
|
|
* Thu May 28 2015 Richard Hughes <richard@hughsie.com> 0.1.3-1
|
|
- New upstream release
|
|
- Coldplug the devices before acquiring the well known name
|
|
- Run the offline actions using systemd when required
|
|
- Support OpenHardware devices using the fwupd vendor extensions
|
|
|
|
* Wed Apr 22 2015 Richard Hughes <richard@hughsie.com> 0.1.2-1
|
|
- New upstream release
|
|
- Only allow signed firmware to be upgraded without a password
|
|
|
|
* Mon Mar 23 2015 Richard Hughes <richard@hughsie.com> 0.1.1-1
|
|
- New upstream release
|
|
- Add a 'get-updates' command to fwupdmgr
|
|
- Add and document the offline-update lifecycle
|
|
- Create a libfwupd shared library
|
|
- Create runtime directories if they do not exist
|
|
- Do not crash when there are no devices to return
|
|
|
|
* Mon Mar 16 2015 Richard Hughes <richard@hughsie.com> 0.1.0-1
|
|
- First release
|