2023-08-21 16:30:27 +08:00
|
|
|
%global qt_module qt3d
|
|
|
|
|
|
|
|
|
|
%global multilib_archs x86_64 %{ix86} loongarch64 sw_64
|
|
|
|
|
|
|
|
|
|
Summary: Qt5 - Qt3D QML bindings and C++ APIs
|
|
|
|
|
Name: qt5-%{qt_module}
|
|
|
|
|
Version: 5.15.10
|
|
|
|
|
Release: 1
|
|
|
|
|
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2019-12-06 21:30:05 +08:00
|
|
|
Url: http://www.qt.io
|
2021-10-14 11:45:02 +08:00
|
|
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
2023-08-21 16:30:27 +08:00
|
|
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
|
2021-10-14 11:45:02 +08:00
|
|
|
Source1: qt3dcore-config-multilib_p.h
|
2019-12-06 21:30:05 +08:00
|
|
|
|
2021-10-14 11:45:02 +08:00
|
|
|
BuildRequires: make
|
2023-08-21 16:30:27 +08:00
|
|
|
BuildRequires: qt5-rpm-macros >= %{version}
|
2021-10-14 11:45:02 +08:00
|
|
|
BuildRequires: qt5-qtbase-static >= %{version}
|
2023-08-21 16:30:27 +08:00
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
|
|
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel
|
|
|
|
|
BuildRequires: qt5-qtimageformats
|
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
|
BuildRequires: pkgconfig(assimp) >= 3.3.1
|
|
|
|
|
Requires: qt5-qtimageformats%{?_isa} >= %{version}
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
%description
|
2023-08-21 16:30:27 +08:00
|
|
|
Qt 3D provides functionality for near-realtime simulation systems with
|
|
|
|
|
support for 2D and 3D rendering in both Qt C++ and Qt Quick applications).
|
2019-12-06 21:30:05 +08:00
|
|
|
|
2023-08-21 16:30:27 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
|
|
|
%description devel
|
|
|
|
|
%{summary}.
|
2019-12-06 21:30:05 +08:00
|
|
|
|
2023-08-21 16:30:27 +08:00
|
|
|
%package examples
|
|
|
|
|
Summary: Programming examples for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
%description examples
|
|
|
|
|
%{summary}.
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-08-21 16:30:27 +08:00
|
|
|
%setup -q -n %{qt_module}-everywhere-src-%{version}
|
|
|
|
|
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
%build
|
2021-10-14 11:45:02 +08:00
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
|
2019-12-06 21:30:05 +08:00
|
|
|
%{qmake_qt5}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
2023-08-21 16:30:27 +08:00
|
|
|
%ifarch %{multilib_archs}
|
|
|
|
|
# multilib: qt3dcore-config_p.h
|
2021-10-14 11:45:02 +08:00
|
|
|
mv %{buildroot}%{_qt5_headerdir}/Qt3DCore/%{version}/Qt3DCore/private/qt3dcore-config_p.h %{buildroot}%{_qt5_headerdir}/Qt3DCore/%{version}/Qt3DCore/private/qt3dcore-config-%{__isa_bits}_p.h
|
|
|
|
|
install -p -m644 -D %{SOURCE1} %{buildroot}%{_qt5_headerdir}/Qt3DCore/%{version}/Qt3DCore/private/qt3dcore-config_p.h
|
|
|
|
|
%endif
|
|
|
|
|
|
2019-12-06 21:30:05 +08:00
|
|
|
pushd %{buildroot}%{_qt5_libdir}
|
|
|
|
|
for prl_file in libQt5*.prl ; do
|
|
|
|
|
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
|
|
|
|
|
if [ -f "$(basename ${prl_file} .prl).so" ]; then
|
|
|
|
|
rm -fv "$(basename ${prl_file} .prl).la"
|
|
|
|
|
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
2023-08-21 16:30:27 +08:00
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE.GPL* LICENSE.LGPL*
|
|
|
|
|
%{_qt5_libdir}/{libQt53D*.so.5*}
|
|
|
|
|
%{_qt5_qmldir}/{Qt3D/,QtQuick/Scene3D/,QtQuick/Scene2D/}
|
|
|
|
|
%{_qt5_plugindir}/{sceneparsers/,renderplugins/,geometryloaders/}
|
2021-10-14 11:45:02 +08:00
|
|
|
%{_qt5_plugindir}/renderers/
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_qt5_bindir}/qgltf
|
|
|
|
|
%{_qt5_libdir}/{libQt53D*.so}
|
|
|
|
|
%{_qt5_libdir}/{libQt53D*.prl}
|
|
|
|
|
%{_qt5_libdir}/cmake/{Qt53DQuickScene2D,Qt53DQuickAnimation,Qt53DAnimation,Qt53DQuickExtras}
|
|
|
|
|
%{_qt5_libdir}/cmake/{Qt53DExtras,Qt53DQuickInput,Qt53DLogic,Qt53DRender/}
|
|
|
|
|
%{_qt5_libdir}/cmake/{Qt53DQuickRender/,Qt53DInput,Qt53DQuick,Qt53DCore/}
|
|
|
|
|
%{_qt5_includedir}/{Qt3DQuick,Qt3DQuickScene2D,Qt3DQuickAnimation,Qt3DAnimation}
|
|
|
|
|
%{_qt5_includedir}/{Qt3DQuickExtras,Qt3DExtras,Qt3DQuickInput/,Qt3DLogic/}
|
|
|
|
|
%{_qt5_includedir}/{Qt3DRender/,Qt3DQuickRender/,Qt3DCore/,Qt3DInput/}
|
|
|
|
|
%{_qt5_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/*.pri
|
2023-08-21 16:30:27 +08:00
|
|
|
|
|
|
|
|
%files examples
|
2019-12-06 21:30:05 +08:00
|
|
|
%{_qt5_examplesdir}/
|
2023-08-21 16:30:27 +08:00
|
|
|
|
2019-12-06 21:30:05 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-08-21 16:30:27 +08:00
|
|
|
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.10-1
|
|
|
|
|
- update to version 5.15.10-1
|
|
|
|
|
|
2021-10-14 11:45:02 +08:00
|
|
|
* Wed Oct 13 2021 peijiankang <peijiankang@kylinos.cn> - 5.15.2-1
|
|
|
|
|
- update to upstream version 5.15.2
|
|
|
|
|
|
2020-09-14 10:08:24 +08:00
|
|
|
* Mon Sep 14 2020 liuweibo <liuweibo10@huawei.com> - 5.11.1-4
|
|
|
|
|
- Fix Source0
|
|
|
|
|
|
2019-12-06 21:30:05 +08:00
|
|
|
* Tue Dec 3 2019 Tianfei <tianfei16@huawei.com> - 5.11.1-3
|
|
|
|
|
- Package init
|