## ## Global items which are above %global qt5_version 5.15 # define to build docs. undefine if qt5-qttools is not available %global docs 1 Name: neptune3-ui Version: 5.15 # We will move this to autorelease when we move to Fedora Release: 10%{?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 Source1: neptune3-ui.sh BuildRequires: qt5-linguist >= %{qt5_version} BuildRequires: qt5-qt3d-devel >= %{qt5_version} BuildRequires: qt5-qtapplicationmanager-devel >= %{qt5_version} BuildRequires: qt5-qtapplicationmanager-static >= %{qt5_version} 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-qtdeclarative-static >= %{qt5_version} BuildRequires: qt5-qtgamepad-devel >= %{qt5_version} BuildRequires: qt5-qtivi-devel >= %{qt5_version} BuildRequires: qt5-qtivi-static >= %{qt5_version} BuildRequires: qt5-qtmultimedia-devel >= %{qt5_version} BuildRequires: qt5-qtquickcontrols2-devel >= %{qt5_version} BuildRequires: qt5-qtremoteobjects-devel >= %{qt5_version} BuildRequires: qt5-qtwayland-devel >= %{qt5_version} BuildRequires: wayland-devel BuildRequires: libarchive-devel BuildRequires: libyaml-devel BuildRequires: make BuildRequires: python3 BuildRequires: gcc-c++ 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 Neptune 3 UI provides a UI implementation for Qt in In-Vehicle Infotainment (IVI) systems. It demonstrates best practices for developing an Automotive UI with Qt Automotive Suite. Neptune 3 UI supports the following displays: Instrument Cluster, Center Console Display, Head Up Display, Passenger Screens. Currently, the implementation only covers the first three: Instrument Cluster, Center Console Display, and Head Up Display. %if 0%{?docs} %package doc Summary: API documentation for %{name} BuildArch: noarch BuildRequires: qt5-qdoc BuildRequires: qt5-qhelpgenerator BuildRequires: qt5-qtbase-doc Requires: qt5-qtbase-doc %description doc %{summary}. %endif %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 %if 0%{?docs} LANG=C.UTF-8 %make_build docs %endif %install make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} %if 0%{?docs} make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} %endif # Move the main executable in bin mkdir -p %{buildroot}%{_bindir} install -m755 %{SOURCE1} %{buildroot}%{_bindir}/%{name} %ldconfig_scriptlets %files %license LICENSE.* %{_libdir}/qt5/examples/neptune3-ui/ %{_libdir}/neptune3/ %{_bindir}/%{name} %if 0%{?docs} %files doc %{_qt5_docdir}/* %endif %changelog * Fri Jan 7 2022 Stephen Smoogen - 5.15-10 - Add documents as a package - Add in -static packages needed from rebuilds of qtivi and qtapplicationmanager. * Fri Jan 07 2022 Stephen Smoogen - 5.15-9 - Change out the shell script to be one that does an intelligent guess on environment variables * Wed Nov 17 2021 Pierre-Yves Chibon - 5.15-8 - rebuilt * Tue Sep 07 2021 Pierre-Yves Chibon - 5.15-7 - rebuilt * Tue Aug 31 2021 Pierre-Yves Chibon - 5.8-6 - Release bump * Tue Aug 10 2021 Pierre-Yves Chibon - 5.8-5 - Release bump * 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