3 %bcond_without colorhug # ColorHug support
4 %bcond_without efi # UEFI support
5 %bcond_without static_libs # static library
7 %ifnarch %{ix86} %{x8664} arm aarch64 ia64
10 Summary: System daemon for installing device firmware
11 Summary(pl.UTF-8): Demon systemowy do instalowania firmware'u urządzeń
16 Group: Applications/System
17 Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
18 # Source0-md5: 81551ee30bc062257583393474f375c4
19 Patch0: %{name}-sh.patch
20 URL: https://github.com/hughsie/fwupd
21 BuildRequires: appstream-glib-devel >= 0.5.0
22 BuildRequires: autoconf >= 2.63
23 BuildRequires: automake >= 1:1.9
24 %{?with_colorhug:BuildRequires: colord-devel >= 1.2.9}
25 BuildRequires: docbook-utils
26 %{?with_efi:BuildRequires: fwupdate-devel}
27 BuildRequires: gcab-devel
28 BuildRequires: gettext-tools >= 0.17
29 BuildRequires: glib2-devel >= 1:2.36.0
30 BuildRequires: gobject-introspection-devel >= 0.9.8
31 BuildRequires: gpgme-devel
32 BuildRequires: intltool >= 0.35.0
33 BuildRequires: libarchive-devel
34 BuildRequires: libgpg-error-devel
35 BuildRequires: libgusb-devel >= 0.2.2
36 BuildRequires: libsoup-devel >= 2.42
37 BuildRequires: libtool
38 BuildRequires: libxslt-progs
39 BuildRequires: pkgconfig
40 BuildRequires: polkit-devel >= 0.103
41 BuildRequires: rpmbuild(macros) >= 1.644
42 BuildRequires: sqlite3-devel >= 3
43 BuildRequires: tar >= 1:1.22
44 BuildRequires: udev-glib-devel
46 Requires: %{name}-libs = %{version}-%{release}
47 Requires: appstream-glib >= 0.5.0
48 %{?with_colorhug:Requires: colord-libs >= 1.2.9}
49 Requires: libgusb >= 0.2.2
50 Requires: polkit >= 0.103
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 fwupd is a simple daemon to allow session software to update device
55 firmware on your local machine. It's designed for desktops, but this
56 project is probably quite interesting for phones, tablets and server
59 %description -l pl.UTF-8
60 fwupd to prosty demon pozwalający programom sesyjnym na aktualizację
61 firmware'u urządzeń na maszynie lokalnej. Jest zaprojektowany dla
62 komputerów osobistych, ale może być interesujący także dla telefonów,
63 tabletów i farm serwerów.
66 Summary: Library for fwupd device firmware installing daemon
67 Summary(pl.UTF-8): Biblioteka dla demona fwupd instalującego aktualizacje firmware'u
69 Requires: glib2-devel >= 1:2.36.0
72 Library for fwupd device firmware installing daemon.
74 %description libs -l pl.UTF-8
75 Biblioteka dla demona fwupd instalującego aktualizacje firmware'u.
78 Summary: Header files for fwupd library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fwupd
80 Group: Development/Libraries
81 Requires: %{name}-libs = %{version}-%{release}
82 Requires: glib2-devel >= 1:2.36.0
85 Header files for fwupd library.
87 %description devel -l pl.UTF-8
88 Pliki nagłówkowe biblioteki fwupd.
91 Summary: Static fwupd library
92 Summary(pl.UTF-8): Statyczna biblioteka fwupd
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
99 %description static -l pl.UTF-8
100 Statyczna biblioteka fwupd.
113 --disable-silent-rules \
114 %{!?with_static_libs:--disable-static} \
115 %{!?with_efi:--disable-uefi} \
116 --with-systemdsystemunitdir=%{systemdunitdir}
120 rm -rf $RPM_BUILD_ROOT
123 DESTDIR=$RPM_BUILD_ROOT
125 # obsoleted by pkg-config
126 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfwupd.la
128 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{hi_IN,hi}
133 rm -rf $RPM_BUILD_ROOT
135 %post libs -p /sbin/ldconfig
136 %postun libs -p /sbin/ldconfig
138 %files -f %{name}.lang
139 %defattr(644,root,root,755)
140 %doc AUTHORS MAINTAINERS NEWS README.md
141 %attr(755,root,root) %{_bindir}/fwupdmgr
142 %attr(755,root,root) %{_libexecdir}/fwupd
143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd.conf
145 /etc/pki/fwupd/GPG-KEY-Hughski-Limited
146 /etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service
147 %dir /etc/pki/fwupd-metadata
148 /etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service
149 %{systemdunitdir}/fwupd.service
150 %{systemdunitdir}/fwupd-offline-update.service
151 %{systemdunitdir}/system-update.target.wants/fwupd-offline-update.service
152 /lib/udev/rules.d/90-fwupd-devices.rules
153 /etc/dbus-1/system.d/org.freedesktop.fwupd.conf
154 %{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service
155 %{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
156 %{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
158 %{_mandir}/man1/fwupdmgr.1*
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libfwupd.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libfwupd.so.1
164 %{_libdir}/girepository-1.0/Fwupd-1.0.typelib
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/libfwupd.so
169 %{_includedir}/fwupd-1
170 %{_datadir}/gir-1.0/Fwupd-1.0.gir
171 %{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
172 %{_pkgconfigdir}/fwupd.pc
174 %if %{with static_libs}
176 %defattr(644,root,root,755)
177 %{_libdir}/libfwupd.a