]>
Commit | Line | Data |
---|---|---|
02386607 JR |
1 | %define pypi_name PyQt-builder |
2 | Summary: The PEP 517 compliant PyQt build system | |
3 | Name: python3-PyQt-builder | |
4 | Version: 1.10.1 | |
db96b094 | 5 | Release: 5 |
02386607 JR |
6 | License: BSD |
7 | #Source0Download: https://pypi.org/simple/PyQt-builder | |
8 | Source0: https://files.pythonhosted.org/packages/source/P/PyQt-builder/%{pypi_name}-%{version}.tar.gz | |
9 | # Source0-md5: 1301fa247a5fe3cfa0da05b55100b661 | |
10 | URL: https://www.riverbankcomputing.com/software/pyqt/ | |
11 | BuildRequires: python3-devel | |
12 | BuildRequires: python3-setuptools | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | PyQt-builder is the PEP 517 compliant build system for PyQt and | |
18 | projects that extend PyQt. It extends the sip build system and uses | |
19 | Qt's qmake to perform the actual compilation and installation of | |
20 | extension modules.Projects that use PyQt- builder provide an | |
21 | appropriate pyproject.toml file and an optional project.py. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{pypi_name}-%{version} | |
25 | ||
26 | %{__rm} -r PyQt_builder.egg-info | |
27 | ||
28 | %build | |
29 | %py3_build | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | %py3_install | |
34 | ||
35 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pyqtbuild/bundle/dlls | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %attr(755,root,root) %{_bindir}/pyqt-bundle | |
43 | %attr(755,root,root) %{_bindir}/pyqt-qt-wheel | |
44 | %{py3_sitescriptdir}/pyqtbuild | |
45 | %{py3_sitescriptdir}/PyQt_builder-%{version}-py*.egg-info |