diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:36:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:36:43 +0000 |
commit | 3877608afc35d25d49873a5077b2ec14429486e2 (patch) | |
tree | 719864909b9f4214eb4f238b045198a8f33ebc96 | |
parent | 1a9272644654cddcf348c9ddaada6078ed5e2c7b (diff) |
automatic import of kstarsopeneuler23.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | kstars-2.9.6-fix-compilerflag-exceptions.patch | 13 | ||||
-rw-r--r-- | kstars.spec | 135 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 150 insertions, 0 deletions
@@ -0,0 +1 @@ +/kstars-3.6.2.tar.xz diff --git a/kstars-2.9.6-fix-compilerflag-exceptions.patch b/kstars-2.9.6-fix-compilerflag-exceptions.patch new file mode 100644 index 0000000..68c4f61 --- /dev/null +++ b/kstars-2.9.6-fix-compilerflag-exceptions.patch @@ -0,0 +1,13 @@ +diff -Naur kstars-2.9.6/CMakeLists.txt kstars-2.9.6.fix/CMakeLists.txt +--- kstars-2.9.6/CMakeLists.txt 2018-05-26 08:33:31.000000000 +0200 ++++ kstars-2.9.6.fix/CMakeLists.txt 2018-07-19 09:07:06.206283586 +0200 +@@ -357,6 +357,9 @@ + SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=address,undefined -fno-omit-frame-pointer") + ENDIF () + ++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexceptions -fPIC") ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fPIC") ++ + # Unity build support + SET(UNITY_BUILD OFF CACHE BOOL "Enable Unity Build") + INCLUDE(UnityBuild) diff --git a/kstars.spec b/kstars.spec new file mode 100644 index 0000000..49c4749 --- /dev/null +++ b/kstars.spec @@ -0,0 +1,135 @@ +%undefine __cmake_in_source_build + +Name: kstars +Summary: Desktop Planetarium +Version: 3.6.2 +Release: 1 + +# KStars is no longer part of KDE Applications +# https://community.kde.org/Applications/17.12_Release_Notes#Tarballs_that_we_do_not_ship_anymore +Epoch: 1 + +License: GPLv2+ +URL: http://edu.kde.org/kstars + +%global revision %(echo %{version} | cut -d. -f3) + +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif + +Source0: http://download.kde.org/%{stable}/%{name}/%{name}-%{version}.tar.xz + +Patch0: kstars-2.9.6-fix-compilerflag-exceptions.patch + +BuildRequires: desktop-file-utils +BuildRequires: extra-cmake-modules +BuildRequires: gettext +BuildRequires: kf5-karchive-devel +BuildRequires: kf5-kbookmarks-devel +BuildRequires: kf5-kcodecs-devel +BuildRequires: kf5-kcompletion-devel +BuildRequires: kf5-kconfig-devel +BuildRequires: kf5-kconfigwidgets-devel +BuildRequires: kf5-kcoreaddons-devel +BuildRequires: kf5-kcrash-devel +BuildRequires: kf5-kdbusaddons-devel +BuildRequires: kf5-kdeclarative-devel +BuildRequires: kf5-kdnssd-devel +BuildRequires: kf5-kdoctools-devel +BuildRequires: kf5-kglobalaccel-devel +BuildRequires: kf5-kguiaddons-devel +BuildRequires: kf5-khtml-devel +BuildRequires: kf5-ki18n-devel +BuildRequires: kf5-kiconthemes-devel +BuildRequires: kf5-kinit-devel >= 5.10.0-3 +BuildRequires: kf5-kio-devel +BuildRequires: kf5-kitemviews-devel +BuildRequires: kf5-kjobwidgets-devel +BuildRequires: kf5-knewstuff-devel +BuildRequires: kf5-knotifications-devel +BuildRequires: kf5-knotifyconfig-devel +BuildRequires: kf5-kplotting-devel +BuildRequires: kf5-kservice-devel +BuildRequires: kf5-ktexteditor-devel +BuildRequires: kf5-ktextwidgets-devel +BuildRequires: kf5-kwidgetsaddons-devel +BuildRequires: kf5-kwindowsystem-devel +BuildRequires: kf5-kxmlgui-devel +BuildRequires: kf5-rpm-macros +BuildRequires: libappstream-glib +BuildRequires: libnova-devel +BuildRequires: LibRaw-devel +BuildRequires: pkgconfig(cfitsio) +BuildRequires: pkgconfig(eigen3) +BuildRequires: pkgconfig(gsl) +BuildRequires: pkgconfig(Qt5Gui) pkgconfig(Qt5Qml) pkgconfig(Qt5Quick) pkgconfig(Qt5Xml) pkgconfig(Qt5Sql) +BuildRequires: pkgconfig(Qt5Svg) pkgconfig(Qt5OpenGL) pkgconfig(Qt5Multimedia) pkgconfig(Qt5Test) +BuildRequires: pkgconfig(Qt5DataVisualization) +BuildRequires: pkgconfig(Qt5WebSockets) +BuildRequires: qtkeychain-qt5-devel +BuildRequires: pkgconfig(wcslib) +BuildRequires: zlib-devel +BuildRequires: pkgconfig(libindi) >= 1.5.0 +BuildRequires: stellarsolver-devel >= 1.9 +BuildRequires: xplanet + +Requires: libindi +Suggests: astrometry +Requires: qt5-qtquickcontrols%{?_isa} +Requires: xplanet + +Obsoletes: kdeedu-kstars < 4.7.0-10 +Obsoletes: kdeedu-kstars-libs < 4.7.0-10 +Provides: kdeedu-kstars = %{epoch}:%{version}-%{release} + +%description +KStars is a Desktop Planetarium. It provides an accurate graphical +simulation of the night sky, from any location on Earth, at any date and +time. The display includes up to 100 million stars, 13,000 deep-sky objects, +all 8 planets, the Sun and Moon, and thousands of comets and asteroids. + + +%prep +%setup -q + +%patch0 -p1 -b .fix_cflag_exception + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang %{name} --all-name --with-html + +rm -fv %{buildroot}%{_kf5_libdir}/libhtmesh.a + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.kstars.appdata.xml +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.kstars.desktop + +%files -f %{name}.lang +%license LICENSES/* +%doc AUTHORS ChangeLog README.* TODO +%{_kf5_bindir}/kstars +%{_kf5_metainfodir}/org.kde.kstars.appdata.xml +%{_kf5_datadir}/applications/org.kde.kstars.desktop +%{_kf5_datadir}/config.kcfg/kstars.kcfg +%{_kf5_datadir}/knotifications5/kstars.notifyrc +%{_kf5_datadir}/sounds/KDE-KStars-* +%{_kf5_datadir}/kstars/ +%{_kf5_datadir}/icons/hicolor/*/*/* + + +%changelog +* Mon Dec 19 2022 misaka00251 <liuxin@iscas.ac.cn> - 1:3.6.2-1 +- Init package @@ -0,0 +1 @@ +eace81822cd3c6a20c6e75446cc1a382 kstars-3.6.2.tar.xz |