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