Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
stellarium
stellarium.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stellarium.spec of Package stellarium
# # spec file for package stellarium # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global qt_version %(qtpaths --qt-version | awk -F. '{ printf "%02d%02d%02d", $1, $2, $3 }') Name: stellarium Version: 0.21.2 Release: 0 Summary: Astronomical Sky Simulator License: GPL-2.0-or-later Group: Productivity/Scientific/Astronomy URL: http://stellarium.org/ Source0: https://github.com/Stellarium/stellarium/releases/download/v%{version}/stellarium-%{version}.tar.gz Source1: https://github.com/Stellarium/stellarium/releases/download/v%{version}/stellarium-%{version}.tar.gz.asc Source2: %{name}.keyring Patch0: stellarium-remove-qt-5_12-code.patch Patch1: stellarium-minimum-qt-5_9.patch Patch2: stellarium-documentation.patch BuildRequires: cmake >= 2.8.11 BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: libqt5-qtpaths BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Gui) >= 5.9.0 BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5MultimediaWidgets) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5Positioning) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5SerialPort) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5UiTools) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(dri) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(zlib) %if 0%{?is_opensuse} BuildRequires: pkgconfig(libgps) %endif %description Stellarium is a software to render 3D photo-realistic skies in real time, similar to what can be observed with human eyes through binoculars or a small telescope. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build export QT_HASH_SEED=0 %cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POLICY_DEFAULT_CMP0063=NEW \ %if %{qt_version} >= 051500 && %{qt_version} < 051503 && 0%{?suse_version} < 1550 %ifarch i586 -DENABLE_NLS=OFF \ %endif %endif -DCMAKE_CXX_VISIBILITY_PRESET=hidden -DCMAKE_VISIBILITY_INLINES_HIDDEN=1 %if %{qt_version} >= 051500 && %{qt_version} < 051503 && 0%{?suse_version} < 1550 %make_jobs -j1 %else %make_jobs %endif %install %cmake_install %suse_update_desktop_file -c stellarium Stellarium "Planetarium in your computer" stellarium stellarium Science Astronomy mkdir -p %{buildroot}%{_datadir}/%{name}/data/script_internet_update %fdupes %{buildroot}%{_datadir}/%{name} # remove duplicated desktop file rm -f %{buildroot}%{_datadir}/applications/stellarium.desktop # remove all zero size files find %{buildroot}%{_datadir}/%{name}/skycultures -type f -size 0 -delete #%%find_lang %%{name} #%%find_lang %%{name}-skycultures #cat %%{name}-skycultures.lang >> %%{name}.lang %if 0%{?suse_version} < 1500 %post %icon_theme_cache_post %desktop_database_post %postun %icon_theme_cache_postun %desktop_database_postun %endif %files %defattr(-,root,root,755) %license COPYING %doc CREDITS.md ChangeLog README.md %dir %{_datadir}/icons/hicolor/512x512/ %dir %{_datadir}/icons/hicolor/512x512/apps/ %{_bindir}/%{name} %{_datadir}/%{name} %dir %{_datadir}/metainfo %{_datadir}/metainfo/*.appdata.xml %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/mime/packages/%{name}.xml %{_mandir}/man1/%{name}.1%{?ext_man} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor