fwupd/fwupd.spec

316 lines
10 KiB
RPMSpec
Raw Normal View History

%global libglib2_version 2.45.8
%global libappstream_version 0.5.10
%global libgusb_version 0.2.9
%global libsoup_version 2.51.92
2015-03-16 20:48:34 +00:00
Summary: Firmware update daemon
Name: fwupd
2016-06-13 12:33:19 +00:00
Version: 0.7.2
Release: 5%{?dist}
2015-03-16 20:48:34 +00:00
License: GPLv2+
URL: https://github.com/hughsie/fwupd
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
2016-08-11 17:29:39 +00:00
# backported from master, use a more scalable CDN.
Patch0: 0001-Switch-to-the-Amazon-S3-CDN-for-firmware-metadata.patch
2015-03-16 20:48:34 +00:00
BuildRequires: docbook-utils
BuildRequires: gettext
BuildRequires: glib2-devel >= %{glib2_version}
2015-03-16 20:48:34 +00:00
BuildRequires: intltool
BuildRequires: libappstream-glib-devel >= %{libappstream_version}
2015-03-16 20:48:34 +00:00
BuildRequires: libgudev1-devel
BuildRequires: libgusb-devel >= %{libgusb_version}
BuildRequires: libsoup-devel >= %{libsoup_version}
2015-03-16 20:48:34 +00:00
BuildRequires: colord-devel >= 1.0.0
BuildRequires: polkit-devel >= 0.103
BuildRequires: libgcab1-devel
BuildRequires: sqlite-devel
2015-04-22 14:24:34 +00:00
BuildRequires: gpgme-devel
2015-03-16 20:48:34 +00:00
BuildRequires: systemd
2015-08-12 08:55:18 +00:00
BuildRequires: libarchive-devel
2015-03-23 13:27:29 +00:00
BuildRequires: gobject-introspection-devel
2015-08-12 08:55:18 +00:00
BuildRequires: gcab
2016-04-01 13:45:29 +00:00
BuildRequires: valgrind
%ifarch x86_64 %{ix86} aarch64
BuildRequires: fwupdate-devel >= 7
%endif
2015-03-16 20:48:34 +00:00
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
2016-07-14 09:39:37 +00:00
Requires: libdfu%{?_isa} = %{version}-%{release}
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: libappstream-glib%{?_isa} >= %{libappstream_version}
Requires: libgusb%{?_isa} >= %{libgusb_version}
Requires: libsoup%{?_isa} >= %{libsoup_version}
Obsoletes: fwupd-sign < 0.1.6
2015-09-10 08:35:07 +00:00
2015-03-16 20:48:34 +00:00
%description
fwupd is a daemon to allow session software to update device firmware.
2015-03-23 12:04:07 +00:00
%package devel
Summary: Development package for %{name}
2016-07-14 09:39:37 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2015-03-23 12:04:07 +00:00
%description devel
Files for development with %{name}.
2016-04-01 13:45:29 +00:00
%package -n libdfu
Summary: A library for DFU
%description -n libdfu
A library for updating USB devices using DFU.
%package -n libdfu-devel
Summary: Development package for libdfu
2016-07-14 09:39:37 +00:00
Requires: libdfu%{?_isa} = %{version}-%{release}
2016-04-01 13:45:29 +00:00
%description -n libdfu-devel
Files for development with libdfu.
2015-03-16 20:48:34 +00:00
%prep
%setup -q
2016-08-11 17:29:39 +00:00
%patch0 -p1 -b .new-cdn
2015-03-16 20:48:34 +00:00
%build
%configure \
--disable-static \
%ifnarch x86_64 %{ix86} aarch64
--disable-uefi \
%endif
2015-03-16 20:48:34 +00:00
--disable-rpath \
--disable-silent-rules \
--disable-dependency-tracking
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
2015-03-23 12:04:07 +00:00
find %{buildroot} -name '*.la' -exec rm -f {} ';'
2015-03-16 20:48:34 +00:00
%find_lang %{name}
2016-04-01 13:45:29 +00:00
%check
make check VERBOSE=1
2015-03-16 20:48:34 +00:00
%post
2015-03-23 12:04:07 +00:00
/sbin/ldconfig
2015-03-16 20:48:34 +00:00
%systemd_post fwupd.service
%preun
%systemd_preun fwupd.service
%postun
2015-03-23 12:04:07 +00:00
/sbin/ldconfig
2015-03-16 20:48:34 +00:00
%systemd_postun_with_restart fwupd.service
%files -f %{name}.lang
%doc README.md AUTHORS NEWS
%license COPYING
2015-08-12 08:55:18 +00:00
%config(noreplace)%{_sysconfdir}/fwupd.conf
2015-09-10 08:35:07 +00:00
%dir %{_libexecdir}/fwupd
%{_libexecdir}/fwupd/fwupd
2015-03-16 20:48:34 +00:00
%{_bindir}/fwupdmgr
2015-04-22 14:24:34 +00:00
%{_sysconfdir}/pki/fwupd
2015-07-25 13:59:41 +00:00
%{_sysconfdir}/pki/fwupd-metadata
2015-03-16 20:48:34 +00:00
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
2016-03-14 09:35:43 +00:00
%{_datadir}/app-info/xmls/org.freedesktop.fwupd.xml
2015-03-16 20:48:34 +00:00
%{_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
2015-09-10 08:35:07 +00:00
%{_unitdir}/fwupd-offline-update.service
2015-07-25 13:59:41 +00:00
%{_unitdir}/fwupd.service
%{_unitdir}/system-update.target.wants/
2015-03-16 20:48:34 +00:00
%dir %{_localstatedir}/lib/fwupd
2016-04-01 13:45:29 +00:00
%{_libdir}/libfwupd*.so.*
%{_libdir}/girepository-1.0/Fwupd-1.0.typelib
2015-07-25 13:59:41 +00:00
%dir %{_localstatedir}/cache/app-info
%dir %{_localstatedir}/cache/app-info/icons
%dir %{_localstatedir}/cache/app-info/xmls
/usr/lib/udev/rules.d/*.rules
2016-03-14 09:35:43 +00:00
%dir %{_libdir}/fwupd-plugins-1
%{_libdir}/fwupd-plugins-1/*.so
2015-07-25 13:59:41 +00:00
2015-03-23 12:04:07 +00:00
%files devel
2016-04-01 13:45:29 +00:00
%{_datadir}/gir-1.0/Fwupd-1.0.gir
%{_datadir}/gtk-doc/html/libfwupd
2015-03-23 12:04:07 +00:00
%{_includedir}/fwupd-1
2016-04-01 13:45:29 +00:00
%{_libdir}/libfwupd*.so
%{_libdir}/pkgconfig/fwupd.pc
%files -n libdfu
%{_bindir}/dfu-tool
%{_datadir}/man/man1/dfu-tool.1.gz
%{_libdir}/girepository-1.0/Dfu-1.0.typelib
%{_libdir}/libdfu*.so.*
%files -n libdfu-devel
%{_datadir}/gir-1.0/Dfu-1.0.gir
%{_datadir}/gtk-doc/html/libdfu
%dir %{_includedir}/libdfu
%{_includedir}/dfu.h
%{_includedir}/libdfu/*.h
%{_libdir}/libdfu*.so
%{_libdir}/pkgconfig/dfu.pc
2015-03-16 20:48:34 +00:00
%changelog
* Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 0.7.2-5
- rebuild against new efivar and fwupdate
* Fri Aug 12 2016 Adam Williamson <awilliam@redhat.com> - 0.7.2-4
- rebuild against new efivar and fwupdate
2016-08-11 17:29:39 +00:00
* Thu Aug 11 2016 Richard Hughes <richard@hughsie.com> 0.7.2-3
- Use the new CDN for firmware metadata
2016-07-14 09:39:37 +00:00
* Thu Jul 14 2016 Kalev Lember <klember@redhat.com> - 0.7.2-2
- Tighten subpackage dependencies
2016-06-13 12:33:19 +00:00
* Mon Jun 13 2016 Richard Hughes <richard@hughsie.com> 0.7.2-1
- New upstream release
- Allow devices to have multiple assigned GUIDs
- Allow metainfo files to match only specific revisions of devices
- Only claim the DFU interface when required
- Only return updatable devices from GetDevices()
- Show the DFU protocol version in 'dfu-tool list'
2016-05-13 13:56:59 +00:00
* Fri May 13 2016 Richard Hughes <richard@hughsie.com> 0.7.1-1
- New upstream release
- Add device-added, device-removed and device-changed signals
- Add for a new device field "Flashes Left"
- Fix a critical warning when restarting the daemon
- Fix BE issues when reading and writing DFU files
- Make the device display name nicer
- Match the AppStream metadata after a device has been added
- Return all update descriptions newer than the installed version
- Set the device description when parsing local firmware files
2016-04-01 13:45:29 +00:00
* Fri Apr 01 2016 Richard Hughes <richard@hughsie.com> 0.7.0-1
- New upstream release
- Add Alienware to the version quirk table
- Add a version plugin for SteelSeries hardware
- Do not return updates that require AC when on battery
- Return the device flags when getting firmware details
2016-03-14 09:35:43 +00:00
* Mon Mar 14 2016 Richard Hughes <richard@hughsie.com> 0.6.3-1
- New upstream release
- Add an unlock method for devices
- Add ESRT enable method into UEFI provider
- Correct the BCD version number for DFU 1.1
- Ignore the DFU runtime on the DW1820A
- Only read PCI OptionROM firmware when devices are manually unlocked
- Require AC power before scheduling some types of firmware update
2016-02-12 16:54:14 +00:00
* Fri Feb 12 2016 Richard Hughes <richard@hughsie.com> 0.6.2-1
- New upstream release
- Add 'Created' and 'Modified' properties on managed devices
- Fix get-results for UEFI provider
- Support vendor-specific UEFI version encodings
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-19 13:01:39 +00:00
* Tue Jan 19 2016 Richard Hughes <richard@hughsie.com> 0.6.1-1
- New upstream release
- Do not misdetect different ColorHug devices
- Only dump the profiling data when run with --verbose
2016-08-18 06:32:48 +00:00
* Mon Dec 07 2015 Richard Hughes <richard@hughsie.com> 0.6.0-1
2015-12-07 16:25:04 +00:00
- New upstream release
- Add support for automatically updating USB DFU-capable devices
- Emit the changed signal after doing an update
- Export the AppStream ID when returning device results
- Use the same device identification string format as Microsoft
2015-11-18 20:19:28 +00:00
* Wed Nov 18 2015 Richard Hughes <richard@hughsie.com> 0.5.4-1
- New upstream release
- Use API available in fwupdate 0.5 to avoid writing temp files
- Fix compile error against fwupdate 0.5 due to API bump
2015-11-05 10:59:51 +00:00
* Thu Nov 05 2015 Richard Hughes <richard@hughsie.com> 0.5.3-1
- New upstream release
- Avoid seeking when reading the file magic during refresh
- Do not assume that the compressed XML data will be NUL terminated
- Use the correct user agent string for fwupdmgr
2015-10-28 10:03:10 +00:00
* Wed Oct 28 2015 Richard Hughes <richard@hughsie.com> 0.5.2-1
- New upstream release
- Add the update description to the GetDetails results
- Clear the in-memory firmware store only after parsing a valid XML file
- Ensure D-Bus remote errors are registered at fwupdmgr startup
- Fix verify-update to produce components with the correct provide values
- Show the dotted-decimal representation of the UEFI version number
- Support cabinet archives files with more than one firmware
* Mon Sep 21 2015 Richard Hughes <richard@hughsie.com> 0.5.1-1
- Update to 0.5.1 to fix a bug in the offline updater
2015-09-15 10:10:56 +00:00
* Tue Sep 15 2015 Richard Hughes <richard@hughsie.com> 0.5.0-1
- New upstream release
- Do not reboot if racing with the PackageKit offline update mechanism
* Thu Sep 10 2015 Richard Hughes <richard@hughsie.com> 0.1.6-3
- Do not merge the existing firmware metadata with the submitted files
* Thu Sep 10 2015 Kalev Lember <klember@redhat.com> 0.1.6-2
- Own system-update.target.wants directory
- Make fwupd-sign obsoletes versioned
2015-09-10 08:35:07 +00:00
* Thu Sep 10 2015 Richard Hughes <richard@hughsie.com> 0.1.6-1
- New upstream release
- Add application metadata when getting the updates list
- Remove fwsignd, we have the LVFS now
* Fri Aug 21 2015 Kalev Lember <klember@redhat.com> 0.1.5-3
- Disable fwupd offline update service
2015-08-19 19:34:00 +00:00
* Wed Aug 19 2015 Richard Hughes <richard@hughsie.com> 0.1.5-2
- Use the non-beta download URL prefix
2015-08-12 08:55:18 +00:00
* 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
2015-07-25 13:59:41 +00:00
* 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.
2015-05-28 08:51:09 +00:00
* 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
2015-04-22 14:24:34 +00:00
* 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
2015-03-23 12:04:07 +00:00
* 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
2015-03-16 20:48:34 +00:00
* Mon Mar 16 2015 Richard Hughes <richard@hughsie.com> 0.1.0-1
- First release