]>
Commit | Line | Data |
---|---|---|
d1aca093 | 1 | # TODO: polkit >= 0.114 when available |
8dceaca0 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without colorhug # ColorHug support | |
e5466782 | 5 | %bcond_without efi # UEFI (and dell) support |
9d82ffc9 | 6 | %bcond_without thunderbolt # Thunderbolt support |
dad21322 | 7 | |
93e1aa15 | 8 | %ifnarch %{ix86} %{x8664} x32 %{arm} aarch64 ia64 |
8dceaca0 JB |
9 | %undefine with_efi |
10 | %endif | |
579e28a9 JR |
11 | %if %{without efi} |
12 | %undefine with_thunderbolt | |
13 | %endif | |
8dceaca0 JB |
14 | Summary: System daemon for installing device firmware |
15 | Summary(pl.UTF-8): Demon systemowy do instalowania firmware'u urządzeń | |
16 | Name: fwupd | |
724b701c | 17 | Version: 1.1.0 |
e5466782 | 18 | Release: 1 |
bd3466ff | 19 | License: LGPL v2.1+ |
8dceaca0 | 20 | Group: Applications/System |
2a7d50df | 21 | Source0: https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz |
724b701c | 22 | # Source0-md5: 545d1a204307a27f41ef9ed7b197b45f |
8dceaca0 | 23 | URL: https://github.com/hughsie/fwupd |
96a0ebe8 | 24 | BuildRequires: appstream-glib-devel >= 0.7.4 |
fdff42f4 | 25 | %{?with_colorhug:BuildRequires: colord-devel >= 1.2.12} |
579e28a9 | 26 | BuildRequires: docbook-dtd41-sgml |
f29fd781 | 27 | BuildRequires: docbook-utils |
e5466782 JB |
28 | %{?with_efi:BuildRequires: efivar-devel} |
29 | # pkgconfig(libelf); can be also libelf-devel | |
30 | BuildRequires: elfutils-devel >= 0.166 | |
31 | %{?with_efi:BuildRequires: fwupdate-devel >= 5} | |
8dceaca0 | 32 | BuildRequires: gcab-devel |
bd3466ff | 33 | BuildRequires: gettext-tools >= 0.19.7 |
67e55b6b | 34 | BuildRequires: glib2-devel >= 1:2.45.8 |
8dceaca0 | 35 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
868d82b7 | 36 | BuildRequires: gpgme-devel |
fdff42f4 | 37 | BuildRequires: gtk-doc >= 1.14 |
8dceaca0 | 38 | BuildRequires: intltool >= 0.35.0 |
91b560a2 | 39 | BuildRequires: libarchive-devel |
868d82b7 | 40 | BuildRequires: libgpg-error-devel |
ce16a536 | 41 | BuildRequires: libgusb-devel >= 0.2.9 |
e5466782 | 42 | # for dell (which depends on fwupdate too) |
a6e1577d AM |
43 | %if %{with efi} |
44 | BuildRequires: gnu-efi | |
45 | BuildRequires: libsmbios-devel >= 2.3.0 | |
46 | %endif | |
67e55b6b | 47 | BuildRequires: libsoup-devel >= 2.52 |
9d82ffc9 JB |
48 | # pkgconfig(libtbtfwu) >= 1 |
49 | %{?with_thunderbolt:BuildRequires: libtbtfwu-devel >= 0-0.2017.01.19} | |
8dceaca0 | 50 | BuildRequires: libxslt-progs |
bd3466ff | 51 | BuildRequires: meson >= 0.37.0 |
579e28a9 | 52 | BuildRequires: ninja >= 1.6 |
8dceaca0 JB |
53 | BuildRequires: pkgconfig |
54 | BuildRequires: polkit-devel >= 0.103 | |
bfd8ba8d AM |
55 | BuildRequires: python3-pillow |
56 | BuildRequires: python3-pycairo | |
57 | BuildRequires: rpmbuild(macros) >= 1.726 | |
8dceaca0 | 58 | BuildRequires: sqlite3-devel >= 3 |
bd3466ff | 59 | BuildRequires: systemd-units |
8dceaca0 | 60 | BuildRequires: tar >= 1:1.22 |
bd3466ff | 61 | BuildRequires: udev-devel |
8dceaca0 JB |
62 | BuildRequires: udev-glib-devel |
63 | BuildRequires: xz | |
64 | Requires: %{name}-libs = %{version}-%{release} | |
96a0ebe8 | 65 | Requires: appstream-glib >= 0.7.4 |
fdff42f4 | 66 | %{?with_colorhug:Requires: colord-libs >= 1.2.12} |
e5466782 | 67 | %{?with_efi:Requires: fwupdate-libs >= 5} |
ce16a536 | 68 | Requires: libgusb >= 0.2.9 |
67e55b6b | 69 | Requires: libsoup >= 2.52 |
8dceaca0 JB |
70 | Requires: polkit >= 0.103 |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %description | |
74 | fwupd is a simple daemon to allow session software to update device | |
75 | firmware on your local machine. It's designed for desktops, but this | |
76 | project is probably quite interesting for phones, tablets and server | |
77 | farms. | |
78 | ||
79 | %description -l pl.UTF-8 | |
80 | fwupd to prosty demon pozwalający programom sesyjnym na aktualizację | |
81 | firmware'u urządzeń na maszynie lokalnej. Jest zaprojektowany dla | |
82 | komputerów osobistych, ale może być interesujący także dla telefonów, | |
83 | tabletów i farm serwerów. | |
84 | ||
85 | %package libs | |
fdff42f4 JB |
86 | Summary: Libraries for fwupd device firmware installing daemon |
87 | Summary(pl.UTF-8): Biblioteki dla demona fwupd instalującego aktualizacje firmware'u | |
8dceaca0 | 88 | Group: Libraries |
67e55b6b | 89 | Requires: glib2-devel >= 1:2.45.8 |
8dceaca0 JB |
90 | |
91 | %description libs | |
fdff42f4 | 92 | Libraries for fwupd device firmware installing daemon. |
8dceaca0 JB |
93 | |
94 | %description libs -l pl.UTF-8 | |
fdff42f4 | 95 | Biblioteki dla demona fwupd instalującego aktualizacje firmware'u. |
8dceaca0 JB |
96 | |
97 | %package devel | |
fdff42f4 JB |
98 | Summary: Header files for fwupd libraries |
99 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek fwupd | |
8dceaca0 JB |
100 | Group: Development/Libraries |
101 | Requires: %{name}-libs = %{version}-%{release} | |
67e55b6b | 102 | Requires: glib2-devel >= 1:2.45.8 |
bd3466ff | 103 | Obsoletes: fwupd-static |
8dceaca0 JB |
104 | |
105 | %description devel | |
fdff42f4 | 106 | Header files for fwupd libraries. |
8dceaca0 JB |
107 | |
108 | %description devel -l pl.UTF-8 | |
fdff42f4 | 109 | Pliki nagłówkowe bibliotek fwupd. |
8dceaca0 | 110 | |
fdff42f4 JB |
111 | %package apidocs |
112 | Summary: API documentation for fwupd libraries | |
113 | Summary(pl.UTF-8): Dokumentacja API do bibliotek fwupd | |
114 | Group: Documentation | |
dad21322 ER |
115 | %if "%{_rpmversion}" >= "5" |
116 | BuildArch: noarch | |
117 | %endif | |
fdff42f4 JB |
118 | |
119 | %description apidocs | |
120 | API documentation for fwupd libraries. | |
121 | ||
122 | %description apidocs -l pl.UTF-8 | |
123 | Dokumentacja API do bibliotek fwupd. | |
8dceaca0 JB |
124 | |
125 | %prep | |
126 | %setup -q | |
127 | ||
128 | %build | |
2317379a | 129 | %meson build \ |
bd3466ff JB |
130 | -Denable-tests=false \ |
131 | %{!?with_thunderbolt:-Denable-thunderbolt=false} \ | |
579e28a9 | 132 | %{!?with_efi:-Denable-uefi=false} \ |
2317379a | 133 | %{!?with_efi:-Denable-dell=false} |
bd3466ff | 134 | |
bfd8ba8d | 135 | %meson_build -C build |
8dceaca0 JB |
136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
bfd8ba8d | 140 | %meson_install -C build |
8dceaca0 | 141 | |
8dceaca0 JB |
142 | %find_lang %{name} |
143 | ||
144 | %clean | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post libs -p /sbin/ldconfig | |
148 | %postun libs -p /sbin/ldconfig | |
149 | ||
150 | %files -f %{name}.lang | |
151 | %defattr(644,root,root,755) | |
152 | %doc AUTHORS MAINTAINERS NEWS README.md | |
fdff42f4 | 153 | %attr(755,root,root) %{_bindir}/dfu-tool |
8dceaca0 JB |
154 | %attr(755,root,root) %{_bindir}/fwupdmgr |
155 | %attr(755,root,root) %{_libexecdir}/fwupd | |
bfd8ba8d AM |
156 | %dir %{_libdir}/fwupd-plugins-3 |
157 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_altos.so | |
158 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_amt.so | |
159 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_colorhug.so | |
f477a3c7 | 160 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_csr.so |
e5466782 | 161 | %if %{with efi} |
bfd8ba8d | 162 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell.so |
e5466782 | 163 | %endif |
724b701c | 164 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dell_esrt.so |
bfd8ba8d AM |
165 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_dfu.so |
166 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so | |
fe740e41 | 167 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_nitrokey.so |
724b701c | 168 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_redfish.so |
bfd8ba8d | 169 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_steelseries.so |
579e28a9 | 170 | %if %{with efi} |
bfd8ba8d | 171 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_synapticsmst.so |
579e28a9 | 172 | %endif |
9d82ffc9 | 173 | %if %{with thunderbolt} |
bfd8ba8d AM |
174 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt.so |
175 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so | |
9d82ffc9 | 176 | %endif |
bfd8ba8d | 177 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_udev.so |
e5466782 | 178 | %if %{with efi} |
bfd8ba8d | 179 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_uefi.so |
e5466782 | 180 | %endif |
bfd8ba8d AM |
181 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_unifying.so |
182 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_upower.so | |
f29fd781 | 183 | %attr(755,root,root) %{_libdir}/fwupd-plugins-3/libfu_plugin_wacomhid.so |
bfd8ba8d AM |
184 | %dir %{_sysconfdir}/fwupd |
185 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/daemon.conf | |
efa03d59 | 186 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/uefi.conf |
bfd8ba8d AM |
187 | %dir %{_sysconfdir}/fwupd/remotes.d |
188 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/fwupd.conf | |
189 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf | |
190 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/lvfs.conf | |
191 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fwupd/remotes.d/vendor.conf | |
f29fd781 AM |
192 | %dir %{_sysconfdir}/pki/fwupd |
193 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Hughski-Limited | |
194 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware | |
195 | %{_sysconfdir}/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service | |
196 | %{_sysconfdir}/pki/fwupd/LVFS-CA.pem | |
197 | %dir %{_sysconfdir}/pki/fwupd-metadata | |
198 | %{_sysconfdir}/pki/fwupd-metadata/GPG-KEY-Linux-Foundation-Metadata | |
199 | %{_sysconfdir}/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service | |
200 | %{_sysconfdir}/pki/fwupd-metadata/LVFS-CA.pem | |
8dceaca0 | 201 | %{systemdunitdir}/fwupd.service |
a557ad5c JB |
202 | %{systemdunitdir}/fwupd-offline-update.service |
203 | %{systemdunitdir}/system-update.target.wants/fwupd-offline-update.service | |
91b560a2 | 204 | /lib/udev/rules.d/90-fwupd-devices.rules |
8dceaca0 JB |
205 | /etc/dbus-1/system.d/org.freedesktop.fwupd.conf |
206 | %{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service | |
bfd8ba8d AM |
207 | %dir %{_datadir}/fwupd |
208 | %attr(755,root,root) %{_datadir}/fwupd/firmware-packager | |
f477a3c7 | 209 | %{_datadir}/fwupd/quirks.d |
bfd8ba8d AM |
210 | %dir %{_datadir}/fwupd/remotes.d |
211 | %{_datadir}/fwupd/remotes.d/fwupd | |
212 | %{_datadir}/fwupd/remotes.d/vendor | |
213 | %{_datadir}/metainfo/org.freedesktop.fwupd.metainfo.xml | |
f29fd781 AM |
214 | %dir %{_datadir}/fwupd/metainfo |
215 | %{_datadir}/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml | |
216 | %{_datadir}/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml | |
8dceaca0 JB |
217 | %{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy |
218 | %{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules | |
219 | %dir /var/lib/fwupd | |
bfd8ba8d AM |
220 | %dir /var/lib/fwupd/builder |
221 | /var/lib/fwupd/builder/README.md | |
fdff42f4 | 222 | %{_mandir}/man1/dfu-tool.1* |
8dceaca0 JB |
223 | %{_mandir}/man1/fwupdmgr.1* |
224 | ||
225 | %files libs | |
226 | %defattr(644,root,root,755) | |
bfd8ba8d | 227 | %{_libdir}/girepository-1.0/Fwupd-2.0.typelib |
8dceaca0 | 228 | %attr(755,root,root) %{_libdir}/libfwupd.so.*.*.* |
bfd8ba8d | 229 | %attr(755,root,root) %ghost %{_libdir}/libfwupd.so.2 |
8dceaca0 JB |
230 | |
231 | %files devel | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/libfwupd.so | |
234 | %{_includedir}/fwupd-1 | |
bfd8ba8d | 235 | %{_datadir}/gir-1.0/Fwupd-2.0.gir |
8dceaca0 JB |
236 | %{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml |
237 | %{_pkgconfigdir}/fwupd.pc | |
238 | ||
fdff42f4 JB |
239 | %files apidocs |
240 | %defattr(644,root,root,755) | |
ce16a536 | 241 | %{_gtkdocdir}/libfwupd |
f29fd781 | 242 |