diff --git a/gnome-software.changes b/gnome-software.changes index 342f46b..0c558b4 100644 --- a/gnome-software.changes +++ b/gnome-software.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 28 02:27:35 UTC 2023 - Yifan Jiang + +- Do not use _distconfdir on SLE/Leap less than version 16. + ------------------------------------------------------------------- Fri Dec 15 09:33:16 UTC 2023 - Christophe Marin diff --git a/gnome-software.spec b/gnome-software.spec index 7ef49e8..ef0e956 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -1,7 +1,7 @@ # # 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 # 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 rm %{buildroot}%{_datadir}/doc/%{name}/README.md +%if !0%{?sle_version} || 0%{?sle_version} >= 160000 # Move autostart file to /usr/etc mkdir -p %{buildroot}%{_distconfdir}/xdg/autostart 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 [org.gnome.software] @@ -152,7 +154,11 @@ FOE %{_libexecdir}/gnome-software-cmd %{_libexecdir}/gnome-software-restarter %{_mandir}/man1/%{name}.1%{?ext_man} +%if !0%{?sle_version} || 0%{?sle_version} >= 160000 %{_distconfdir}/xdg/autostart/org.gnome.Software.desktop +%else +%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop +%endif %dir %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/ %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_dpkg.so