]>
Commit | Line | Data |
---|---|---|
8dceaca0 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without colorhug # ColorHug support | |
445379a6 | 4 | %bcond_without efi # UEFI (and dell, redfish) support |
9d82ffc9 | 5 | %bcond_without thunderbolt # Thunderbolt support |
dad21322 | 6 | |
445379a6 | 7 | %ifnarch %{ix86} %{x8664} x32 %{arm} aarch64 |
8dceaca0 JB |
8 | %undefine with_efi |
9 | %endif | |
10 | Summary: System daemon for installing device firmware | |
11 | Summary(pl.UTF-8): Demon systemowy do instalowania firmware'u urządzeń | |
12 | Name: fwupd | |
445379a6 | 13 | Version: 1.1.3 |
e5466782 | 14 | Release: 1 |
bd3466ff | 15 | License: LGPL v2.1+ |
8dceaca0 | 16 | Group: Applications/System |
2a7d50df | 17 | Source0: https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz |
445379a6 JB |
18 | # Source0-md5: 3f76eadf496d21b547d46299f925ecf3 |
19 | Patch0: %{name}-bashcomp.patch | |
8dceaca0 | 20 | URL: https://github.com/hughsie/fwupd |
96a0ebe8 | 21 | BuildRequires: appstream-glib-devel >= 0.7.4 |
445379a6 | 22 | %{?with_cairo:BuildRequires: cairo-devel} |
fdff42f4 | 23 | %{?with_colorhug:BuildRequires: colord-devel >= 1.2.12} |
579e28a9 | 24 | BuildRequires: docbook-dtd41-sgml |
f29fd781 | 25 | BuildRequires: docbook-utils |
445379a6 | 26 | %{?with_efi:BuildRequires: efivar-devel >= 33} |
e5466782 JB |
27 | # pkgconfig(libelf); can be also libelf-devel |
28 | BuildRequires: elfutils-devel >= 0.166 | |
445379a6 JB |
29 | %{?with_fontconfig:BuildRequires: fontconfig-devel} |
30 | %{?with_fontconfig:BuildRequires: freetype-devel >= 2} | |
e5466782 | 31 | %{?with_efi:BuildRequires: fwupdate-devel >= 5} |
445379a6 JB |
32 | BuildRequires: gcab-devel >= 1.0 |
33 | # C99 | |
34 | BuildRequires: gcc >= 5:3.2 | |
bd3466ff | 35 | BuildRequires: gettext-tools >= 0.19.7 |
445379a6 JB |
36 | BuildRequires: glib2-devel >= 1:2.55.0 |
37 | %{?with_efi:BuildRequires: gnu-efi} | |
38 | BuildRequires: gnutls-devel >= 3.4.4.1 | |
8dceaca0 | 39 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
868d82b7 | 40 | BuildRequires: gpgme-devel |
fdff42f4 | 41 | BuildRequires: gtk-doc >= 1.14 |
8dceaca0 | 42 | BuildRequires: intltool >= 0.35.0 |
445379a6 | 43 | BuildRequires: json-glib-devel >= 1.1.1 |
91b560a2 | 44 | BuildRequires: libarchive-devel |
868d82b7 | 45 | BuildRequires: libgpg-error-devel |
445379a6 | 46 | BuildRequires: libgudev-devel >= 232 |
ce16a536 | 47 | BuildRequires: libgusb-devel >= 0.2.9 |
e5466782 | 48 | # for dell (which depends on fwupdate too) |
445379a6 | 49 | %{?with_efi:BuildRequires: libsmbios-devel >= 2.4.0} |
67e55b6b | 50 | BuildRequires: libsoup-devel >= 2.52 |
445379a6 | 51 | BuildRequires: libuuid-devel |
8dceaca0 | 52 | BuildRequires: libxslt-progs |
445379a6 JB |
53 | # for <linux/nvme_ioctl.h> |
54 | BuildRequires: linux-libc-headers >= 7:4.4 | |
55 | BuildRequires: meson >= 0.43.0 | |
579e28a9 | 56 | BuildRequires: ninja >= 1.6 |
8dceaca0 | 57 | BuildRequires: pkgconfig |
445379a6 | 58 | BuildRequires: polkit-devel >= 0.114 |
bfd8ba8d AM |
59 | BuildRequires: python3-pillow |
60 | BuildRequires: python3-pycairo | |
61 | BuildRequires: rpmbuild(macros) >= 1.726 | |
8dceaca0 | 62 | BuildRequires: sqlite3-devel >= 3 |
445379a6 | 63 | BuildRequires: systemd-units >= 1:211 |
8dceaca0 | 64 | BuildRequires: tar >= 1:1.22 |
bd3466ff | 65 | BuildRequires: udev-devel |
445379a6 | 66 | %{?with_thunderbolt:BuildRequires: umockdev-devel} |
8dceaca0 JB |
67 | BuildRequires: xz |
68 | Requires: %{name}-libs = %{version}-%{release} | |
96a0ebe8 | 69 | Requires: appstream-glib >= 0.7.4 |
fdff42f4 | 70 | %{?with_colorhug:Requires: colord-libs >= 1.2.12} |
e5466782 | 71 | %{?with_efi:Requires: fwupdate-libs >= 5} |
445379a6 JB |
72 | Requires: gcab >= 1.0 |
73 | Requires: gnutls-libs >= 3.4.4.1 | |
74 | Requires: libgudev >= 232 | |
ce16a536 | 75 | Requires: libgusb >= 0.2.9 |
445379a6 | 76 | %{?with_efi:Requires: libsmbios >= 2.4.0} |
67e55b6b | 77 | Requires: libsoup >= 2.52 |
445379a6 | 78 | Requires: polkit >= 0.114 |
8dceaca0 JB |
79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80 | ||
81 | %description | |
82 | fwupd is a simple daemon to allow session software to update device | |
83 | firmware on your local machine. It's designed for desktops, but this | |
84 | project is probably quite interesting for phones, tablets and server | |
85 | farms. | |
86 | ||
87 | %description -l pl.UTF-8 | |
88 | fwupd to prosty demon pozwalający programom sesyjnym na aktualizację | |
89 | firmware'u urządzeń na maszynie lokalnej. Jest zaprojektowany dla | |
90 | komputerów osobistych, ale może być interesujący także dla telefonów, | |
91 | tabletów i farm serwerów. | |
92 | ||
445379a6 JB |
93 | %package -n bash-completion-fwupd |
94 | Summary: Bash completion for fwupd commands | |
95 | Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń fwupd | |
96 | Group: Applications/Shells | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | Requires: bash-completion >= 2.0 | |
99 | ||
100 | %description -n bash-completion-fwupd | |
101 | Bash completion for fwupd commands. | |
102 | ||
103 | %description -n bash-completion-fwupd -l pl.UTF-8 | |
104 | Bashowe dopełnianie składni poleceń fwupd. | |
105 | ||
8dceaca0 | 106 | %package libs |
fdff42f4 JB |
107 | Summary: Libraries for fwupd device firmware installing daemon |
108 | Summary(pl.UTF-8): Biblioteki dla demona fwupd instalującego aktualizacje firmware'u | |
8dceaca0 | 109 | Group: Libraries |
445379a6 JB |
110 | Requires: glib2-devel >= 1:2.55.0 |
111 | Requires: json-glib >= 1.1.1 | |
8dceaca0 JB |
112 | |
113 | %description libs | |
fdff42f4 | 114 | Libraries for fwupd device firmware installing daemon. |
8dceaca0 JB |
115 | |
116 | %description libs -l pl.UTF-8 | |
fdff42f4 | 117 | Biblioteki dla demona fwupd instalującego aktualizacje firmware'u. |
8dceaca0 JB |
118 | |
119 | %package devel | |
fdff42f4 JB |
120 | Summary: Header files for fwupd libraries |
121 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek fwupd | |
8dceaca0 JB |
122 | Group: Development/Libraries |
123 | Requires: %{name}-libs = %{version}-%{release} | |
445379a6 | 124 | Requires: glib2-devel >= 1:2.55.0 |
bd3466ff | 125 | Obsoletes: fwupd-static |
8dceaca0 JB |
126 | |
127 | %description devel | |
fdff42f4 | 128 | Header files for fwupd libraries. |
8dceaca0 JB |
129 | |
130 | %description devel -l pl.UTF-8 | |
fdff42f4 | 131 | Pliki nagłówkowe bibliotek fwupd. |
8dceaca0 | 132 | |
fdff42f4 JB |
133 | %package apidocs |
134 | Summary: API documentation for fwupd libraries | |
135 | Summary(pl.UTF-8): Dokumentacja API do bibliotek fwupd | |
136 | Group: Documentation | |
dad21322 ER |
137 | %if "%{_rpmversion}" >= "5" |
138 | BuildArch: noarch | |
139 | %endif | |
fdff42f4 JB |
140 | |
141 | %description apidocs | |
142 | API documentation for fwupd libraries. | |
143 | ||
144 | %description apidocs -l pl.UTF-8 | |
145 | Dokumentacja API do bibliotek fwupd. | |
8dceaca0 | 146 | |
445379a6 JB |
147 | %package -n vala-fwupd |
148 | Summary: Vala API for fwupd library | |
149 | Summary(pl.UTF-8): API języka Vala do biblioteki fwupd | |
150 | Group: Development/Libraries | |
151 | Requires: %{name}-devel = %{version}-%{release} | |
152 | Requires: vala-libsoup >= 2.52 | |
153 | ||
154 | %description -n vala-fwupd | |
155 | Vala API for fwupd library. | |
156 | ||
157 | %description -n vala-fwupd -l pl.UTF-8 | |
158 | API języka Vala do biblioteki fwupd. | |
159 | ||
8dceaca0 JB |
160 | %prep |
161 | %setup -q | |
445379a6 | 162 | %patch0 -p1 |
8dceaca0 JB |
163 | |
164 | %build | |
2317379a | 165 | %meson build \ |
445379a6 JB |
166 | -Dbash_completiondir=%{bash_compdir} \ |
167 | %{!?with_efi:-Dplugin_dell=false} \ | |
168 | %{!?with_efi:-Dplugin_redfish=false} \ | |
169 | %{!?with_thunderbolt:-Dplugin_thunderbolt=false} \ | |
170 | %{!?with_efi:-Dplugin_uefi=false} \ | |
171 | -Dtests=false | |
bd3466ff | 172 | |
bfd8ba8d | 173 | %meson_build -C build |
8dceaca0 JB |
174 | |
175 | %install | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
bfd8ba8d | 178 | %meson_install -C build |
8dceaca0 | 179 | |
445379a6 JB |
180 | for pdoc in plugins/*/README.md ; do |
181 | pname=$(basename $(dirname $pdoc)) | |
182 | cp -p plugins/${pname}/README.md README-${pname}.md | |
183 | done | |
184 | ||
8dceaca0 JB |
185 | %find_lang %{name} |
186 | ||
187 | %clean | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %post libs -p /sbin/ldconfig | |
191 | %postun libs -p /sbin/ldconfig | |
192 | ||
193 | %files -f %{name}.lang | |
194 | %defattr(644,root,root,755) | |
445379a6 | 195 | %doc AUTHORS MAINTAINERS NEWS README.md README-*.md |
fdff42f4 | 196 | %attr(755,root,root) %{_bindir}/dfu-tool |
8dceaca0 | 197 | %attr(755,root,root) %{_bindir}/fwupdmgr |
445379a6 JB |
198 | %dir %{_libexecdir}/fwupd |
199 | %attr(755,root,root) %{_libexecdir}/fwupd/fwupd | |
200 | %attr(755,root,root) %{_libexecdir}/fwupd/fwupdate | |
201 | %attr(755,root,root) %{_libexecdir}/fwupd/fwupdtool | |
202 | %dir %{_libexecdir}/fwupd/efi | |
203 | %{_libexecdir}/fwupd/efi/fwupd*.efi | |
bfd8ba8d AM |
204 | %dir %{_libdir}/fwupd-plugins-3 |
205 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_altos.so | |
206 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_amt.so | |
207 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_colorhug.so | |
f477a3c7 | 208 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_csr.so |
e5466782 | 209 | %if %{with efi} |
bfd8ba8d | 210 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell.so |
724b701c | 211 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell_esrt.so |
445379a6 JB |
212 | %endif |
213 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell_dock.so | |
bfd8ba8d AM |
214 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dfu.so |
215 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so | |
cb6a27e9 | 216 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_flashrom.so |
fe740e41 | 217 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_nitrokey.so |
cb6a27e9 | 218 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_nvme.so |
445379a6 | 219 | %if %{with efi} |
724b701c | 220 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_redfish.so |
445379a6 JB |
221 | %endif |
222 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_rts54hid.so | |
223 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_rts54hub.so | |
bfd8ba8d | 224 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_steelseries.so |
cb6a27e9 | 225 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_superio.so |
bfd8ba8d | 226 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_synapticsmst.so |
9d82ffc9 | 227 | %if %{with thunderbolt} |
bfd8ba8d AM |
228 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt.so |
229 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so | |
9d82ffc9 | 230 | %endif |
bfd8ba8d | 231 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_udev.so |
e5466782 | 232 | %if %{with efi} |
bfd8ba8d | 233 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_uefi.so |
e5466782 | 234 | %endif |
bfd8ba8d AM |
235 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_unifying.so |
236 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_upower.so | |
f29fd781 | 237 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_wacomhid.so |
bfd8ba8d AM |
238 | %dir %{_sysconfdir}/fwupd |
239 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/daemon.conf | |
cb6a27e9 | 240 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/redfish.conf |
445379a6 | 241 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/uefi.conf |
bfd8ba8d AM |
242 | %dir %{_sysconfdir}/fwupd/remotes.d |
243 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/fwupd.conf | |
bfd8ba8d | 244 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs.conf |
445379a6 | 245 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf |
bfd8ba8d | 246 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/vendor.conf |
f29fd781 AM |
247 | %dir %{_sysconfdir}/pki/fwupd |
248 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Hughski-Limited | |
249 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware | |
250 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service | |
251 | %{_sysconfdir}/pki/fwupd/LVFS-CA.pem | |
252 | %dir %{_sysconfdir}/pki/fwupd-metadata | |
253 | %{_sysconfdir}/pki/fwupd-metadata/GPG-KEY-Linux-Foundation-Metadata | |
254 | %{_sysconfdir}/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service | |
255 | %{_sysconfdir}/pki/fwupd-metadata/LVFS-CA.pem | |
8dceaca0 | 256 | %{systemdunitdir}/fwupd.service |
a557ad5c JB |
257 | %{systemdunitdir}/fwupd-offline-update.service |
258 | %{systemdunitdir}/system-update.target.wants/fwupd-offline-update.service | |
91b560a2 | 259 | /lib/udev/rules.d/90-fwupd-devices.rules |
8dceaca0 JB |
260 | /etc/dbus-1/system.d/org.freedesktop.fwupd.conf |
261 | %{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service | |
bfd8ba8d AM |
262 | %dir %{_datadir}/fwupd |
263 | %attr(755,root,root) %{_datadir}/fwupd/firmware-packager | |
f477a3c7 | 264 | %{_datadir}/fwupd/quirks.d |
bfd8ba8d AM |
265 | %dir %{_datadir}/fwupd/remotes.d |
266 | %{_datadir}/fwupd/remotes.d/fwupd | |
267 | %{_datadir}/fwupd/remotes.d/vendor | |
268 | %{_datadir}/metainfo/org.freedesktop.fwupd.metainfo.xml | |
f29fd781 AM |
269 | %dir %{_datadir}/fwupd/metainfo |
270 | %{_datadir}/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml | |
271 | %{_datadir}/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml | |
8dceaca0 JB |
272 | %{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy |
273 | %{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules | |
445379a6 JB |
274 | %lang(ca) %{_localedir}/ca/LC_IMAGES |
275 | %lang(cs) %{_localedir}/cs/LC_IMAGES | |
276 | %lang(en) %{_localedir}/en/LC_IMAGES | |
277 | %lang(fi) %{_localedir}/fi/LC_IMAGES | |
278 | %lang(fur) %{_localedir}/fur/LC_IMAGES | |
279 | %lang(hr) %{_localedir}/hr/LC_IMAGES | |
280 | %lang(hu) %{_localedir}/hu/LC_IMAGES | |
281 | %lang(id) %{_localedir}/id/LC_IMAGES | |
282 | %lang(it) %{_localedir}/it/LC_IMAGES | |
283 | %lang(ko) %{_localedir}/ko/LC_IMAGES | |
284 | %lang(pl) %{_localedir}/pl/LC_IMAGES | |
285 | %lang(pt_BR) %{_localedir}/pt_BR/LC_IMAGES | |
286 | %lang(ru) %{_localedir}/ru/LC_IMAGES | |
287 | %lang(sr) %{_localedir}/sr/LC_IMAGES | |
288 | %lang(sv) %{_localedir}/sv/LC_IMAGES | |
289 | %lang(uk) %{_localedir}/uk/LC_IMAGES | |
290 | %lang(zh_CN) %{_localedir}/zh_CN/LC_IMAGES | |
291 | %lang(zh_TW) %{_localedir}/zh_TW/LC_IMAGES | |
8dceaca0 | 292 | %dir /var/lib/fwupd |
bfd8ba8d AM |
293 | %dir /var/lib/fwupd/builder |
294 | /var/lib/fwupd/builder/README.md | |
fdff42f4 | 295 | %{_mandir}/man1/dfu-tool.1* |
8dceaca0 JB |
296 | %{_mandir}/man1/fwupdmgr.1* |
297 | ||
445379a6 JB |
298 | %files -n bash-completion-fwupd |
299 | %defattr(644,root,root,755) | |
300 | %{bash_compdir}/fwupdmgr | |
301 | %{bash_compdir}/fwupdtool | |
302 | ||
8dceaca0 JB |
303 | %files libs |
304 | %defattr(644,root,root,755) | |
305 | %attr(755,root,root) %{_libdir}/libfwupd.so.*.*.* | |
bfd8ba8d | 306 | %attr(755,root,root) %ghost %{_libdir}/libfwupd.so.2 |
445379a6 | 307 | %{_libdir}/girepository-1.0/Fwupd-2.0.typelib |
8dceaca0 JB |
308 | |
309 | %files devel | |
310 | %defattr(644,root,root,755) | |
445379a6 | 311 | %doc libfwupd/README.md |
8dceaca0 JB |
312 | %attr(755,root,root) %{_libdir}/libfwupd.so |
313 | %{_includedir}/fwupd-1 | |
bfd8ba8d | 314 | %{_datadir}/gir-1.0/Fwupd-2.0.gir |
8dceaca0 JB |
315 | %{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml |
316 | %{_pkgconfigdir}/fwupd.pc | |
317 | ||
fdff42f4 JB |
318 | %files apidocs |
319 | %defattr(644,root,root,755) | |
ce16a536 | 320 | %{_gtkdocdir}/libfwupd |
f29fd781 | 321 | |
445379a6 JB |
322 | %files -n vala-fwupd |
323 | %defattr(644,root,root,755) | |
324 | %{_datadir}/vala/vapi/fwupd.deps | |
325 | %{_datadir}/vala/vapi/fwupd.vapi |