%global qt5_version 5.15 Name: neptune3-ui Version: 5.15 Release: 4%{?dist} Summary: Neptune UI Sample APP Qt Based for Automotive # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions Url: http://www.qt.io Source0: https://code.qt.io/cgit/qt-apps/neptune3-ui.git/neptune3-ui-%{version}.2.tar.gz BuildRequires: qt5-qtbase-devel >= %{qt5_version} BuildRequires: qt5-qtbase-private-devel >= %{qt5_version} BuildRequires: qt5-qtbase-static >= %{qt5_version} BuildRequires: qt5-qtdeclarative-devel >= %{qt5_version} BuildRequires: qt5-qtwayland-devel >= %{qt5_version} BuildRequires: qt5-qtapplicationmanager-devel >= %{qt5_version} BuildRequires: qt5-qtremoteobjects-devel >= %{qt5_version} BuildRequires: qt5-qtquickcontrols2-devel >= %{qt5_version} BuildRequires: qt5-qtgamepad-devel >= %{qt5_version} BuildRequires: qt5-qtmultimedia-devel >= %{qt5_version} BuildRequires: qt5-linguist >= %{qt5_version} BuildRequires: qt5-qtivi-devel >= %{qt5_version} BuildRequires: qt5-qt3d-devel >= %{qt5_version} BuildRequires: wayland-devel BuildRequires: libarchive-devel BuildRequires: libyaml-devel BuildRequires: make BuildRequires: python3 Requires: qt5-qtgamepad >= %{qt5_version} Requires: qt5-qtapplicationmanager >= %{qt5_version} Requires: qt5-qtivi >= %{qt5_version} Requires: qt5-qt3d >= %{qt5_version} Requires: qt5-qtquickcontrols >= %{qt5_version} Requires: qt5-qtquickcontrols2 >= %{qt5_version} Requires: qt5-qtmultimedia >= %{qt5_version} %description Sample Automotive App %prep %setup -q -n neptune3-ui-%{version} sed -i -e "s|/opt|%{_libdir}|" config.pri sed -i -e "s|/opt|%{_libdir}|" src/neptune-cluster-app/neptune-cluster-app.pro %build mkdir %{_target_platform} pushd %{_target_platform} %{qmake_qt5} ../neptune3-ui.pro "CONFIG += git_build" LANG=C.UTF-8 %make_build %install make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} # Move the main executable in bin mkdir -p %{buildroot}%{_bindir} cat > %{name}_bin << EOF #!/usr/bin/bash %{_libdir}/neptune3/%{name} EOF install -m755 %{name}_bin %{buildroot}%{_bindir}/%{name} %ldconfig_scriptlets %files %license LICENSE.* %{_libdir}/qt5/examples/neptune3-ui/ %{_libdir}/neptune3/ %{_bindir}/%{name} %changelog * Tue Jun 01 2021 Pierre-Yves Chibon - 5.8-4 - Improve the wrapper in /usr/bin * Mon May 31 2021 Pierre-Yves Chibon - 5.8-3 - Introduced a wrapper in /usr/bin/ to more easily launch the app * Thu May 27 2021 Pierre-Yves Chibon - 5.8-2 - Move the code to /usr/lib rather than /opt * Wed May 12 2021 Adam Young - 5.8-1 - Initial version