]>
Commit | Line | Data |
---|---|---|
3037d1e8 | 1 | # TODO: |
3037d1e8 | 2 | # - use gtk4-update-icon-cache |
c869853b JB |
3 | # |
4 | # Conditional build: | |
efe4a798 JB |
5 | %bcond_without flatpak # Flatpak support |
6 | %bcond_without fwupd # firmware support via fwupd | |
94b428f8 | 7 | %bcond_with eos # Endless OS updater support |
3bccb867 | 8 | %bcond_with libsoup2 # libsoup 2 instead of libsoup3 (must match flatpak if flatpak uses libsoup) |
afc3a3ea JB |
9 | %bcond_without malcontent # parental control via libmalcontent |
10 | %bcond_with mogwai # metered data support using Mogwai | |
11 | %bcond_without packagekit # PackageKit support | |
efe4a798 JB |
12 | %bcond_with rpm # rpm-ostree support |
13 | %bcond_with snap # Snap support | |
14 | %bcond_with ext_appstream # external appstream support | |
8e06b5cb | 15 | %bcond_with sysprof # sysprof-capture support for profiling |
c869853b | 16 | # |
ceef2885 JB |
17 | Summary: GNOME Software - install and update applications and system extensions |
18 | Summary(pl.UTF-8): GNOME Software - instalowanie i uaktualnianie aplikacji oraz rozszerzeń systemu | |
19 | Name: gnome-software | |
4971a774 | 20 | Version: 45.1 |
66958488 | 21 | Release: 1 |
ceef2885 JB |
22 | License: GPL v2+ |
23 | Group: X11/Applications | |
4971a774 JB |
24 | Source0: https://download.gnome.org/sources/gnome-software/45/%{name}-%{version}.tar.xz |
25 | # Source0-md5: 45818ae09ef40855487278d35dc0f43e | |
ceef2885 | 26 | URL: https://wiki.gnome.org/Apps/Software |
4e0c5ee2 | 27 | BuildRequires: AppStream-devel >= 0.14.0 |
66958488 | 28 | %{?with_packagekit:BuildRequires: PackageKit-devel >= 1.2.5} |
efe4a798 | 29 | BuildRequires: docbook-style-xsl-nons |
3037d1e8 JB |
30 | %{?with_flatpak:BuildRequires: flatpak-devel >= 1.9.1} |
31 | %{?with_fwupd:BuildRequires: fwupd-devel >= 1.5.6} | |
efe4a798 JB |
32 | BuildRequires: gdk-pixbuf2-devel >= 2.32.0 |
33 | BuildRequires: gettext-its-metainfo | |
34 | BuildRequires: gettext-tools >= 0.19.7 | |
06d26da2 | 35 | BuildRequires: glib2-devel >= 1:2.70.0 |
efe4a798 | 36 | BuildRequires: gnome-online-accounts-devel |
4e0c5ee2 | 37 | BuildRequires: gsettings-desktop-schemas-devel >= 3.18.0 |
4971a774 | 38 | BuildRequires: gtk4-devel >= 4.10.0 |
efe4a798 JB |
39 | BuildRequires: gtk-doc >= 1.11 |
40 | BuildRequires: gspell-devel | |
3037d1e8 | 41 | BuildRequires: json-glib-devel >= 1.6.0 |
66958488 | 42 | BuildRequires: libadwaita-devel >= 1.3 |
efe4a798 | 43 | %{?with_rpm:BuildRequires: libdnf-devel} |
afc3a3ea | 44 | %{?with_malcontent:BuildRequires: libmalcontent-devel >= 0.3.0} |
3bccb867 JB |
45 | %{?with_libsoup2:BuildRequires: libsoup-devel >= 2.52.0} |
46 | %{!?with_libsoup2:BuildRequires: libsoup3-devel >= 3.0} | |
efe4a798 | 47 | BuildRequires: libxmlb-devel >= 0.1.7 |
ceef2885 | 48 | BuildRequires: libxslt-progs |
06d26da2 | 49 | BuildRequires: meson >= 0.58.0 |
afc3a3ea JB |
50 | # mogwai-schedule-client-0 |
51 | %{?with_mogwai:BuildRequires: mogwai-devel >= 0.2.0} | |
efe4a798 JB |
52 | BuildRequires: ninja >= 1.5 |
53 | %if %{with eos} || %{with rpm} | |
54 | BuildRequires: ostree-devel | |
55 | %endif | |
ceef2885 JB |
56 | BuildRequires: pkgconfig |
57 | BuildRequires: polkit-devel | |
44bb5c2a | 58 | BuildRequires: rpm-build >= 4.6 |
efe4a798 | 59 | %{?with_rpm:BuildRequires: rpm-ostree-devel >= 2019.3} |
5e93ad7e | 60 | BuildRequires: rpmbuild(macros) >= 1.752 |
3bccb867 JB |
61 | %if %{with snap} |
62 | %{?with_libsoup2:BuildRequires: snapd-glib-devel >= 1.50} | |
66958488 | 63 | %{!?with_libsoup2:BuildRequires: snapd-glib-2-devel >= 1.62} |
06d26da2 | 64 | %endif |
8e06b5cb | 65 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.37.2} |
ceef2885 | 66 | BuildRequires: tar >= 1:1.22 |
efe4a798 | 67 | BuildRequires: udev-glib-devel |
ceef2885 | 68 | BuildRequires: xz |
06d26da2 | 69 | Requires(post,postun): glib2 >= 1:2.70.0 |
ceef2885 | 70 | Requires(post,postun): gtk-update-icon-cache |
4e0c5ee2 | 71 | Requires: AppStream >= 0.14.0 |
66958488 | 72 | %{?with_packagekit:Requires: PackageKit >= 1.2.5} |
3037d1e8 JB |
73 | %{?with_flatpak:Requires: flatpak-libs >= 1.9.1} |
74 | %{?with_fwupd:Requires: fwupd-libs >= 1.5.6} | |
efe4a798 | 75 | Requires: gdk-pixbuf2 >= 2.32.0 |
06d26da2 | 76 | Requires: glib2 >= 1:2.70.0 |
4e0c5ee2 | 77 | Requires: gsettings-desktop-schemas >= 3.18.0 |
4971a774 | 78 | Requires: gtk4 >= 4.10.0 |
ceef2885 | 79 | Requires: hicolor-icon-theme |
3037d1e8 | 80 | Requires: json-glib >= 1.6.0 |
66958488 | 81 | Requires: libadwaita >= 1.3 |
afc3a3ea | 82 | %{?with_malcontent:Requires: libmalcontent >= 0.3.0} |
3bccb867 JB |
83 | %{?with_libsoup2:Requires: libsoup >= 2.52} |
84 | %{!?with_libsoup2:Requires: libsoup3 >= 3.0} | |
efe4a798 | 85 | Requires: libxmlb >= 0.1.7 |
afc3a3ea | 86 | %{?with_mogwai:Requires: mogwai >= 0.2.0} |
ceef2885 JB |
87 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
88 | ||
66958488 JB |
89 | %define abiver 20 |
90 | %define gs_plugins_dir %{_libdir}/gnome-software/plugins-%{abiver} | |
efe4a798 | 91 | |
ceef2885 JB |
92 | %description |
93 | GNOME Software lets you install and update applications and system | |
94 | extensions. | |
95 | ||
96 | %description -l pl.UTF-8 | |
97 | GNOME Software pozwala instalować i uaktualniać aplikacje oraz | |
98 | rozszerzenia systemu. | |
99 | ||
efe4a798 JB |
100 | %package devel |
101 | Summary: Header files for GNOME Software plugins development | |
102 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek GNOME Software | |
103 | Group: Development/Libraries | |
104 | # doesn't require base | |
4e0c5ee2 | 105 | Requires: AppStream-devel >= 0.14.0 |
efe4a798 | 106 | Requires: atk-devel |
06d26da2 | 107 | Requires: glib2-devel >= 1:2.70.0 |
4971a774 | 108 | Requires: gtk4-devel >= 4.10.0 |
3bccb867 JB |
109 | %{?with_libsoup2:Requires: libsoup-devel >= 2.52.0} |
110 | %{!?with_libsoup3:Requires: libsoup3-devel >= 3.0} | |
efe4a798 JB |
111 | |
112 | %description devel | |
113 | Header files for GNOME Software plugins development. | |
114 | ||
115 | %description devel -l pl.UTF-8 | |
116 | Pliki nagłówkowe do tworzenia wtyczek GNOME Software. | |
117 | ||
118 | %package apidocs | |
119 | Summary: GNOME Software plugin API documentation | |
120 | Summary(pl.UTF-8): Dokumentacja API wtyczek GNOME Software | |
121 | Group: Documentation | |
50eade14 | 122 | BuildArch: noarch |
efe4a798 JB |
123 | |
124 | %description apidocs | |
125 | GNOME Software plugin API documentation. | |
126 | ||
127 | %description apidocs -l pl.UTF-8 | |
128 | Dokumentacja API wtyczek GNOME Software. | |
129 | ||
ceef2885 JB |
130 | %prep |
131 | %setup -q | |
132 | ||
133 | %build | |
efe4a798 | 134 | %meson build \ |
4e0c5ee2 | 135 | --default-library=shared \ |
efe4a798 JB |
136 | %{?with_ext_appstream:-Dexternal_appstream=true} \ |
137 | %{!?with_flatpak:-Dflatpak=false} \ | |
138 | %{!?with_fwupd:-Dfwupd=false} \ | |
139 | %{?with_eos:-Deos_updater=true} \ | |
afc3a3ea JB |
140 | %{!?with_malcontent:-Dmalcontent=false} \ |
141 | %{?with_mogwai:-Dmogwai=true} \ | |
142 | %{?with_packagekit:-Dpackagekit=true} \ | |
efe4a798 | 143 | %{?with_rpm:-Drpm_ostree=true} \ |
8e06b5cb | 144 | %{?with_snap:-Dsnap=true} \ |
3bccb867 | 145 | %{?with_libsoup2:-Dsoup2=true} \ |
f9088ba3 | 146 | %{!?with_sysprof:-Dsysprof=disabled} |
efe4a798 | 147 | # packagekit_autoremove? |
efe4a798 JB |
148 | |
149 | %ninja_build -C build | |
ceef2885 JB |
150 | |
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
efe4a798 | 154 | %ninja_install -C build |
ceef2885 | 155 | |
efe4a798 JB |
156 | # packaged as %doc |
157 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnome-software | |
ceef2885 | 158 | |
38f756ae JB |
159 | # not supported by glibc (as of 2.37) |
160 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
161 | ||
ceef2885 JB |
162 | %find_lang %{name} |
163 | ||
164 | %clean | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
167 | %post | |
168 | %update_icon_cache hicolor | |
169 | %glib_compile_schemas | |
170 | ||
171 | %postun | |
172 | %update_icon_cache hicolor | |
173 | %glib_compile_schemas | |
174 | ||
175 | %files -f %{name}.lang | |
176 | %defattr(644,root,root,755) | |
4e0c5ee2 | 177 | %doc AUTHORS NEWS README.md |
ceef2885 | 178 | %attr(755,root,root) %{_bindir}/gnome-software |
3037d1e8 | 179 | /etc/xdg/autostart/org.gnome.Software.desktop |
efe4a798 JB |
180 | %attr(755,root,root) %{_libexecdir}/gnome-software-cmd |
181 | %attr(755,root,root) %{_libexecdir}/gnome-software-restarter | |
4e0c5ee2 | 182 | %dir %{_libdir}/gnome-software |
66958488 | 183 | %attr(755,root,root) %{_libdir}/gnome-software/libgnomesoftware.so.%{abiver} |
efe4a798 JB |
184 | %dir %{gs_plugins_dir} |
185 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_appstream.so | |
efe4a798 JB |
186 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_dpkg.so |
187 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_dummy.so | |
06d26da2 | 188 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_epiphany.so |
afc3a3ea | 189 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_fedora-langpacks.so |
efe4a798 | 190 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_fedora-pkgdb-collections.so |
efe4a798 | 191 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_generic-updates.so |
8e06b5cb | 192 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_hardcoded-blocklist.so |
efe4a798 | 193 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_icons.so |
efe4a798 | 194 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_modalias.so |
efe4a798 JB |
195 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_os-release.so |
196 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_provenance.so | |
197 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_provenance-license.so | |
198 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_repos.so | |
ceef2885 JB |
199 | %{_datadir}/dbus-1/services/org.gnome.Software.service |
200 | %{_datadir}/glib-2.0/schemas/org.gnome.software.gschema.xml | |
efe4a798 | 201 | %{_datadir}/gnome-shell/search-providers/org.gnome.Software-search-provider.ini |
06d26da2 JB |
202 | %{_datadir}/metainfo/org.gnome.Software.metainfo.xml |
203 | %{_datadir}/metainfo/org.gnome.Software.Plugin.Epiphany.metainfo.xml | |
3037d1e8 JB |
204 | %dir %{_datadir}/swcatalog |
205 | %dir %{_datadir}/swcatalog/xml | |
06d26da2 JB |
206 | %{_datadir}/swcatalog/xml/gnome-pwa-list-foss.xml |
207 | %{_datadir}/swcatalog/xml/gnome-pwa-list-proprietary.xml | |
208 | %{_datadir}/swcatalog/xml/org.gnome.Software.Curated.xml | |
3037d1e8 | 209 | %{_datadir}/swcatalog/xml/org.gnome.Software.Featured.xml |
efe4a798 JB |
210 | %if %{with eos} |
211 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_eos-updater.so | |
212 | %endif | |
4e0c5ee2 | 213 | %if %{with ext_appstream} |
efe4a798 | 214 | %attr(755,root,root) %{_libexecdir}/gnome-software-install-appstream |
efe4a798 JB |
215 | %{_datadir}/polkit-1/actions/org.gnome.software.external-appstream.policy |
216 | %endif | |
217 | %if %{with flatpak} | |
218 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_flatpak.so | |
219 | %{_datadir}/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml | |
06d26da2 | 220 | %{_desktopdir}/gnome-software-local-file-flatpak.desktop |
efe4a798 JB |
221 | %endif |
222 | %if %{with fwupd} | |
223 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_fwupd.so | |
224 | %{_datadir}/metainfo/org.gnome.Software.Plugin.Fwupd.metainfo.xml | |
06d26da2 | 225 | %{_desktopdir}/gnome-software-local-file-fwupd.desktop |
efe4a798 | 226 | %endif |
afc3a3ea JB |
227 | %if %{with malcontent} |
228 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_malcontent.so | |
229 | %endif | |
efe4a798 JB |
230 | %if %{with packagekit} |
231 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_packagekit.so | |
efe4a798 | 232 | %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service |
06d26da2 | 233 | %{_desktopdir}/gnome-software-local-file-packagekit.desktop |
efe4a798 JB |
234 | %endif |
235 | %if %{with rpm} | |
236 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_rpm-ostree.so | |
237 | %endif | |
238 | %if %{with snap} | |
239 | %attr(755,root,root) %{gs_plugins_dir}/libgs_plugin_snap.so | |
240 | %{_datadir}/metainfo/org.gnome.Software.Plugin.Snap.metainfo.xml | |
06d26da2 | 241 | %{_desktopdir}/gnome-software-local-file-snap.desktop |
efe4a798 | 242 | %endif |
ceef2885 | 243 | %{_desktopdir}/org.gnome.Software.desktop |
c27aee02 | 244 | %{_iconsdir}/hicolor/scalable/actions/app-remove-symbolic.svg |
efe4a798 | 245 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Software.svg |
efe4a798 | 246 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Software-symbolic.svg |
ceef2885 | 247 | %{_mandir}/man1/gnome-software.1* |
efe4a798 JB |
248 | |
249 | %files devel | |
250 | %defattr(644,root,root,755) | |
c27aee02 | 251 | %attr(755,root,root) %{_libdir}/gnome-software/libgnomesoftware.so |
efe4a798 JB |
252 | %{_includedir}/gnome-software |
253 | %{_pkgconfigdir}/gnome-software.pc | |
254 | ||
255 | %files apidocs | |
256 | %defattr(644,root,root,755) | |
257 | %{_gtkdocdir}/gnome-software |