SHA256
1
0
forked from pool/libqt5-qt3d

Accepting request 849847 from home:Vogtinator:qt5.15

Qt 5.15.2. qt3d on Leap now without assimp

OBS-URL: https://build.opensuse.org/request/show/849847
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qt3d?expand=0&rev=12
This commit is contained in:
Christophe Giboudeaux 2020-11-22 21:09:27 +00:00 committed by Git OBS Bridge
parent 7604476939
commit c65e0b77e2
4 changed files with 40 additions and 12 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Nov 20 12:08:42 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.15.2:
* New bugfix release
* For more details please see:
http://code.qt.io/cgit/qt/qt3d.git/plain/dist/changes-5.15.2/?h=5.15.2
- Use only the system provided assimp, which is only available on TW for now
- Link from Qt bindir into %_bindir, not the other way around to fix
applicationDirPath called from Qt binaries
- Add -qt5 suffix to all binaries in %_bindir
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 10 07:56:59 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de> Thu Sep 10 07:56:59 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>

View File

@ -19,11 +19,12 @@
%define qt5_snapshot 0 %define qt5_snapshot 0
%define libname libQt53DCore5 %define libname libQt53DCore5
%define base_name libqt5 %define base_name libqt5
%define real_version 5.15.1 %define real_version 5.15.2
%define so_version 5.15.1 %define so_version 5.15.2
%define tar_version qt3d-everywhere-src-5.15.1 %define tar_version qt3d-everywhere-src-5.15.2
%global enable_assimp (0%{?suse_version} >= 1550)
Name: libqt5-qt3d Name: libqt5-qt3d
Version: 5.15.1 Version: 5.15.2
Release: 0 Release: 0
Summary: Qt 5 3D Addon Summary: Qt 5 3D Addon
# Legal: some files are GPL-3.0-only WITH Qt-GPL-exception-1.0 # Legal: some files are GPL-3.0-only WITH Qt-GPL-exception-1.0
@ -46,6 +47,9 @@ BuildRequires: perl
%endif %endif
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xz BuildRequires: xz
%if %{enable_assimp}
BuildRequires: pkgconfig(assimp) > 3.3.1
%endif
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
%description %description
@ -395,7 +399,13 @@ the exact Qt version.
#force the configure script to generate the forwarding headers (it checks whether .git directory exists) #force the configure script to generate the forwarding headers (it checks whether .git directory exists)
mkdir .git mkdir .git
%endif %endif
%qmake5 %qmake5 -- \
%if %{enable_assimp}
-system-assimp \
%else
-no-assimp \
%endif
%make_jobs %make_jobs
%install %install
@ -404,15 +414,18 @@ mkdir .git
# kill .la files # kill .la files
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la rm -f %{buildroot}%{_libqt5_libdir}/lib*.la
%fdupes %{buildroot} %if %{enable_assimp}
# put all the binaries to %%_bindir and symlink them back to %%_qt5_bindir # put all the binaries to %%_bindir and symlink them back to %%_qt5_bindir
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_libqt5_bindir} pushd %{buildroot}%{_libqt5_bindir}
for i in * ; do for i in * ; do
mv $i ../../../bin/ ln -s %{libqt5_bindir}/$i %{buildroot}%{_bindir}/${i}-qt5
ln -s ../../../bin/$i . ln -s %{libqt5_bindir}/$i %{buildroot}%{_bindir}/${i}
done done
popd popd
%endif
%fdupes %{buildroot}
%files -n %{libname} %files -n %{libname}
%defattr(-,root,root,755) %defattr(-,root,root,755)
@ -441,7 +454,7 @@ popd
%dir %{_libqt5_libdir}/qt5/plugins/sceneparsers %dir %{_libqt5_libdir}/qt5/plugins/sceneparsers
%{_libqt5_libdir}/qt5/plugins/sceneparsers/libgltfsceneimport.so %{_libqt5_libdir}/qt5/plugins/sceneparsers/libgltfsceneimport.so
%{_libqt5_libdir}/qt5/plugins/sceneparsers/libgltfsceneexport.so %{_libqt5_libdir}/qt5/plugins/sceneparsers/libgltfsceneexport.so
%if 0%{?suse_version} >= 1500 %if %{enable_assimp}
%{_libqt5_libdir}/qt5/plugins/sceneparsers/libassimpsceneimport.so %{_libqt5_libdir}/qt5/plugins/sceneparsers/libassimpsceneimport.so
%endif %endif
%dir %{_libqt5_libdir}/qt5/plugins/geometryloaders %dir %{_libqt5_libdir}/qt5/plugins/geometryloaders
@ -490,8 +503,11 @@ popd
%files tools %files tools
%defattr(-,root,root,755) %defattr(-,root,root,755)
%license LICENSE.* %license LICENSE.*
%if %{enable_assimp}
%{_bindir}/qgltf %{_bindir}/qgltf
%{_bindir}/qgltf-qt5
%{_libqt5_bindir}/qgltf %{_libqt5_bindir}/qgltf
%endif
%files examples %files examples
%defattr(-,root,root,755) %defattr(-,root,root,755)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29aac2c38b6b2fb1e7d54829ff8b4c9aae12a70ffab9707c7388f1e134dd9411
size 81919836

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03ed6a48c813c75296c19f5d721184ab168280b69d2656cf16f877d3d4c55c1d
size 81925416