File project.diff of Package stellarium

--- stellarium.changes.orig
+++ stellarium.changes
@@ -148,6 +148,12 @@ Sun Dec 25 16:21:02 UTC 2022 - Arjen de
   * Added Chinese and Bahai calendars (Calendars plugin)
 
 -------------------------------------------------------------------
+Sun Dec  4 22:10:17 UTC 2022 - Michal Kubecek <mkubecek@suse.cz>
+
+- add an explicit dependency on ShowMySky-Qt%{qtver}-devel to
+  prevent download attempts
+
+-------------------------------------------------------------------
 Mon Oct 31 20:19:48 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
 
 - update to 1.1:
@@ -164,6 +170,24 @@ Mon Oct 31 20:19:48 UTC 2022 - Arjen de
   - make-support-XLSX-files-optional.patch
 
 -------------------------------------------------------------------
+Thu Oct 13 11:10:54 UTC 2022 - Michal Kubecek <mkubecek@suse.cz>
+
+- allow build on Leap 15.3 (with Qt5)
+
+-------------------------------------------------------------------
+Thu Oct 13 08:20:26 UTC 2022 - Michal Kubecek <mkubecek@suse.cz>
+
+- use Qt6 also on Leap 15.4
+- pick upstream fix for ShowMySky related build failure:
+  * Add-support-for-the-versioned-variant-of-ShowMySky-l.patch
+  * Fix-bundling-for-the-versioned-variant-of-ShowMySky-.patch
+  * Fix-crash-in-AtmosphereShowMySky-constructor-when-Op.patch
+  * More-graceful-handling-in-ShowMySky-is-not-found-by-.patch
+- refresh:
+  * use-QString-instead-of-QByteArray.patch
+  * make-support-XLSX-files-optional.patch
+
+-------------------------------------------------------------------
 Sun Oct  9 20:29:19 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
 
 - update to 1.0:
--- stellarium.spec.orig
+++ stellarium.spec
@@ -18,8 +18,18 @@
 
 %if 0%{?suse_version} > 1500
 %bcond_with     Qt5
+%define qtver       6
+%define qt6nopkgcfg 0
+%else
+%if 0%{?sle_version} >= 150400
+%bcond_with     Qt5
+%define qtver       6
+%define qt6nopkgcfg 1
 %else
 %bcond_without  Qt5
+%define qtver       5
+%define qt6nopkgcfg 0
+%endif
 %endif
 
 Name:           stellarium
@@ -40,7 +50,12 @@ BuildRequires:  cmake >= 3.16.0
 BuildRequires:  cmake(FastFloat)
 %endif
 BuildRequires:  fdupes
-BuildRequires:  gcc-c++ >= 7
+%if %{with Qt5} || %{qt6nopkgcfg}
+BuildRequires:  gcc11-PIE
+BuildRequires:  gcc11-c++
+%else
+BuildRequires:  gcc-c++ >= 11
+%endif
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  libnova-devel
 BuildRequires:  libxkbcommon-devel >= 0.5.0
@@ -73,6 +88,23 @@ BuildRequires:  pkgconfig(Qt5Widgets)
 %else
 BuildRequires:  qt6-core-private-devel >= 6.2.0
 BuildRequires:  qt6-gui-private-devel >= 6.2.0
+%if %{qt6nopkgcfg}
+BuildRequires:  qt6-charts-devel
+BuildRequires:  qt6-concurrent-devel
+BuildRequires:  qt6-gui-devel
+BuildRequires:  qt6-linguist-devel
+BuildRequires:  qt6-multimedia-devel
+BuildRequires:  qt6-multimediawidgets-devel
+BuildRequires:  qt6-network-devel
+BuildRequires:  qt6-opengl-devel
+BuildRequires:  qt6-positioning-devel
+BuildRequires:  qt6-printsupport-devel
+BuildRequires:  qt6-qml-devel
+BuildRequires:  qt6-serialport-devel
+BuildRequires:  qt6-test-devel
+BuildRequires:  qt6-uitools-devel
+BuildRequires:  qt6-widgets-devel
+%else
 BuildRequires:  pkgconfig(Qt6Charts)
 BuildRequires:  pkgconfig(Qt6Concurrent)
 BuildRequires:  pkgconfig(Qt6Gui)
@@ -93,10 +125,12 @@ BuildRequires:  pkgconfig(Qt6WebEngineWi
 %endif
 Requires:       qt6-multimedia
 %endif
+%endif
 %if 0%{?is_opensuse}
 BuildRequires:  pkgconfig(Qgpsmm)
 BuildRequires:  pkgconfig(libgps)
 %endif
+BuildRequires:  ShowMySky-Qt%{qtver}-devel
 
 %description
 Stellarium is a software to render 3D photo-realistic skies in real
@@ -110,10 +144,13 @@ binoculars or a small telescope.
 # Require at least 4000 MB of memory per job
 %limit_build -m 4000
 export QT_HASH_SEED=0
+%if %{with Qt5} || %{qt6nopkgcfg}
+export CXX=g++-11
+export CXXFLAGS="%{optflags} -fPIC"
+%endif
 %cmake	-DCMAKE_BUILD_TYPE=Release \
 	-DCPM_USE_LOCAL_PACKAGES=yes \
 	-DBUILD_SHARED_LIBS=OFF \
-	-DENABLE_SHOWMYSKY=OFF \
 	-DENABLE_XLSX=OFF
 %cmake_build
 
openSUSE Build Service is sponsored by