commit 84870d200d5d82751d63f2d054b9a6454142f51e8c7740b9898c48ef5ce030f7 Author: Luca Beltrame Date: Tue Mar 5 08:57:27 2019 +0000 Accepting request 681557 from home:TheBlackCat:branches:KDE:Qt5 Python bindings for the Qt5 3D framework OBS-URL: https://build.opensuse.org/request/show/681557 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python-qt3d-qt5?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyQt3D_gpl-5.12.tar.gz b/PyQt3D_gpl-5.12.tar.gz new file mode 100644 index 0000000..2955e24 --- /dev/null +++ b/PyQt3D_gpl-5.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a02069872439589080ce1bf3206dd16e328e6db2d8cb67020ae36a327682098a +size 7486962 diff --git a/python-qt3d-qt5.changes b/python-qt3d-qt5.changes new file mode 100644 index 0000000..87222cf --- /dev/null +++ b/python-qt3d-qt5.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Feb 21 21:59:20 UTC 2019 - Todd R + +- Initial version (5.12) + diff --git a/python-qt3d-qt5.spec b/python-qt3d-qt5.spec new file mode 100644 index 0000000..f5f5075 --- /dev/null +++ b/python-qt3d-qt5.spec @@ -0,0 +1,136 @@ +# +# spec file for package python-qt3d-qt5 +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-qt3d-qt5 +Version: 5.12 +Release: 0 +Summary: Python bindings for the Qt5 3D framework +License: GPL-3.0-only +Group: Development/Libraries/Python +URL: https://www.riverbankcomputing.com/software/pyqtchart/intro +Source: https://www.riverbankcomputing.com/static/Downloads/PyQt3D/PyQt3D_gpl-%{version}.tar.gz +BuildRequires: pkgconfig(Qt53DAnimation) +BuildRequires: pkgconfig(Qt53DCore) +BuildRequires: pkgconfig(Qt53DExtras) +BuildRequires: pkgconfig(Qt53DInput) +BuildRequires: pkgconfig(Qt53DLogic) +BuildRequires: pkgconfig(Qt53DRender) +BuildRequires: %{python_module devel} +BuildRequires: %{python_module qt5-devel} +BuildRequires: %{python_module sip-devel >= 4.19.1} +BuildRequires: python-rpm-macros +Requires: python-qt5 +Requires: python-sip(api) = %{python_sip_api_ver} + +%python_subpackages + +%description +PyQt3D is a set of Python bindings for the Qt 3D framework. + +%package -n %{name}-api +Summary: Eric API files for %{name} +Group: Development/Tools/IDE +Provides: %{python_module qt3d-qt5-api = %{version}} +Supplements: packageand(eric:%{python2_prefix}-qt3d-qt5) +Supplements: packageand(eric:python3-qt3d-qt5) +BuildArch: noarch + +%description -n %{name}-api +This package provides Qt5 3D framework API files for the Eric IDE. + +%package -n %{name}-sip +Summary: Sip files for %{name} +Group: Development/Libraries/Python +Provides: %{python_module qt3d-qt5-sip = %{version}} +Supplements: packageand(%{python2_prefix}-sip:%{python2_prefix}-qt3d-qt5) +Supplements: packageand(python3-sip:python3-qt3d-qt5) +BuildArch: noarch + +%description -n %{name}-sip +This package contains sip files used to generate +bindings to the Qt5 3D framework. + +%package -n %{name}-examples +Summary: Examples for %{name} +Group: Documentation/Other +Provides: %{python_module qt3d-qt5-examples = %{version}} +BuildArch: noarch + +%description -n %{name}-examples +This package provides %{name} examples. + +%prep +%setup -q -n PyQt3D_gpl-%{version} +%{python_expand mkdir build_%{$python_bin_suffix} +cp *.py build_%{$python_bin_suffix} +cp -r sip build_%{$python_bin_suffix} +} + +%build +%{python_expand pushd build_%{$python_bin_suffix} +$python configure.py \ + --no-dist-info \ + --no-stubs \ + --qmake=%{_bindir}/qmake-qt5 + +make %{?_smp_mflags} +popd +} + +%install +%{python_expand pushd build_%{$python_bin_suffix} +%make_install INSTALL_ROOT=%{buildroot} +popd +} +mkdir -p %{buildroot}%{_docdir}/%{name} +find examples -type f -executable -exec sed -i '1s=^#!%{_bindir}/\(python\|env python\)3\?=#!%{_bindir}/python3=' {} + +cp -r examples %{buildroot}%{_docdir}/%{name} + +%files %{python_files} +%license LICENSE +%doc NEWS README +%dir %{python_sitearch}/PyQt5/ +%{python_sitearch}/PyQt5/Qt3DAnimation.so +%{python_sitearch}/PyQt5/Qt3DCore.so +%{python_sitearch}/PyQt5/Qt3DExtras.so +%{python_sitearch}/PyQt5/Qt3DInput.so +%{python_sitearch}/PyQt5/Qt3DLogic.so +%{python_sitearch}/PyQt5/Qt3DRender.so +%exclude %{_docdir}/%{name}/examples/ + +%files -n %{name}-api +%license LICENSE +%dir %{_datadir}/qt5/qsci/api/python/ +%{_datadir}/qt5/qsci/api/python/PyQt3D.api + +%files -n %{name}-sip +%license LICENSE +%{_datadir}/sip/PyQt5/Qt3DAnimation/ +%{_datadir}/sip/PyQt5/Qt3DCore/ +%{_datadir}/sip/PyQt5/Qt3DExtras/ +%{_datadir}/sip/PyQt5/Qt3DInput/ +%{_datadir}/sip/PyQt5/Qt3DLogic/ +%{_datadir}/sip/PyQt5/Qt3DRender/ + +%files -n %{name}-examples +%license LICENSE +%dir %{_docdir}/%{name}/ +%{_docdir}/%{name}/examples/ + +%changelog