From: Jan Rękorajski Date: Wed, 23 Jun 2021 14:39:23 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/python3-PyQt-builder-1.10.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=023866078939be9578aee5aba365d5b59bc7ed8c;p=packages%2Fpython3-PyQt-builder.git - new --- 023866078939be9578aee5aba365d5b59bc7ed8c 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