Ana Guerrero 2024-01-09 19:48:32 +00:00 committed by Git OBS Bridge
commit 8d2c7b887b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 28 02:27:35 UTC 2023 - Yifan Jiang <yfjiang@suse.com>
- Do not use _distconfdir on SLE/Leap less than version 16.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 15 09:33:16 UTC 2023 - Christophe Marin <christophe@krop.fr> Fri Dec 15 09:33:16 UTC 2023 - Christophe Marin <christophe@krop.fr>

View File

@ -1,7 +1,7 @@
# #
# spec file for package gnome-software # spec file for package gnome-software
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -119,9 +119,11 @@ the GNOME software store.
# Remove any piece of doc that ends up in non-standard locations and use the doc macro instead # Remove any piece of doc that ends up in non-standard locations and use the doc macro instead
rm %{buildroot}%{_datadir}/doc/%{name}/README.md rm %{buildroot}%{_datadir}/doc/%{name}/README.md
%if !0%{?sle_version} || 0%{?sle_version} >= 160000
# Move autostart file to /usr/etc # Move autostart file to /usr/etc
mkdir -p %{buildroot}%{_distconfdir}/xdg/autostart mkdir -p %{buildroot}%{_distconfdir}/xdg/autostart
mv %{buildroot}%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop %{buildroot}%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop mv %{buildroot}%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop %{buildroot}%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%endif
cat >> %{buildroot}%{_datadir}/glib-2.0/schemas/20_org.gnome.software-opensuse.gschema.override << FOE cat >> %{buildroot}%{_datadir}/glib-2.0/schemas/20_org.gnome.software-opensuse.gschema.override << FOE
[org.gnome.software] [org.gnome.software]
@ -152,7 +154,11 @@ FOE
%{_libexecdir}/gnome-software-cmd %{_libexecdir}/gnome-software-cmd
%{_libexecdir}/gnome-software-restarter %{_libexecdir}/gnome-software-restarter
%{_mandir}/man1/%{name}.1%{?ext_man} %{_mandir}/man1/%{name}.1%{?ext_man}
%if !0%{?sle_version} || 0%{?sle_version} >= 160000
%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop %{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%else
%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop
%endif
%dir %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/ %dir %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_dpkg.so %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_dpkg.so