From 023866078939be9578aee5aba365d5b59bc7ed8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 23 Jun 2021 16:39:23 +0200 Subject: [PATCH] - new --- python3-PyQt-builder.spec | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 python3-PyQt-builder.spec diff --git a/python3-PyQt-builder.spec b/python3-PyQt-builder.spec new file mode 100644 index 0000000..5f85fa7 --- /dev/null +++ b/python3-PyQt-builder.spec @@ -0,0 +1,45 @@ +%define pypi_name PyQt-builder +Summary: The PEP 517 compliant PyQt build system +Name: python3-PyQt-builder +Version: 1.10.1 +Release: 1 +License: BSD +#Source0Download: https://pypi.org/simple/PyQt-builder +Source0: https://files.pythonhosted.org/packages/source/P/PyQt-builder/%{pypi_name}-%{version}.tar.gz +# Source0-md5: 1301fa247a5fe3cfa0da05b55100b661 +URL: https://www.riverbankcomputing.com/software/pyqt/ +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PyQt-builder is the PEP 517 compliant build system for PyQt and +projects that extend PyQt. It extends the sip build system and uses +Qt's qmake to perform the actual compilation and installation of +extension modules.Projects that use PyQt- builder provide an +appropriate pyproject.toml file and an optional project.py. + +%prep +%setup -q -n %{pypi_name}-%{version} + +%{__rm} -r PyQt_builder.egg-info + +%build +%py3_build + +%install +rm -rf $RPM_BUILD_ROOT +%py3_install + +%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pyqtbuild/bundle/dlls + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/pyqt-bundle +%attr(755,root,root) %{_bindir}/pyqt-qt-wheel +%{py3_sitescriptdir}/pyqtbuild +%{py3_sitescriptdir}/PyQt_builder-%{version}-py*.egg-info -- 2.44.0