1 Summary: SIP - Python/C++ Bindings Generator
6 #Source0Download: https://pypi.org/project/sip/
7 Source0: https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
8 # Source0-md5: 657c52aff0a180fc0f481e210bc9a2ba
9 URL: https://www.riverbankcomputing.com/software/sip
10 Patch0: python3.10.patch
11 BuildRequires: python3-devel
12 BuildRequires: python3-setuptools
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 SIP is a collection of tools that makes it very easy to create Python
17 bindings for C and C++ libraries. It was originally developed in 1998
18 to create PyQt, the Python bindings for the Qt toolkit, but can be
19 used to create bindings for any C or C++ library. For example it is
20 also used to generate wxPython, the Python bindings for wxWidgets.
23 %setup -q -n sip-%{version}
30 rm -rf $RPM_BUILD_ROOT
33 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/sipbuild/module/source
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
41 %attr(755,root,root) %{_bindir}/sip*
42 %dir %{py3_sitedir}/sipbuild
43 %{py3_sitedir}/sip-%{version}-py*.egg-info
44 %{py3_sitedir}/sipbuild/*.py
45 %attr(755,root,root) %{py3_sitedir}/sipbuild/*.so
46 %{py3_sitedir}/sipbuild/__pycache__
47 %dir %{py3_sitedir}/sipbuild/distinfo
48 %{py3_sitedir}/sipbuild/distinfo/*.py
49 %{py3_sitedir}/sipbuild/distinfo/__pycache__
50 %dir %{py3_sitedir}/sipbuild/legacy
51 %{py3_sitedir}/sipbuild/legacy/*.py
52 %{py3_sitedir}/sipbuild/legacy/__pycache__
53 %dir %{py3_sitedir}/sipbuild/module
54 %{py3_sitedir}/sipbuild/module/*.py
55 %{py3_sitedir}/sipbuild/module/__pycache__
56 %dir %{py3_sitedir}/sipbuild/tools
57 %{py3_sitedir}/sipbuild/tools/*.py
58 %{py3_sitedir}/sipbuild/tools/__pycache__