From: Jan Palus Date: Sat, 27 Feb 2021 09:22:52 +0000 (+0100) Subject: fix build without python2 X-Git-Tag: auto/th/python-pycairo-1.16.3-6~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython-pycairo.git;a=commitdiff_plain;h=e206693 fix build without python2 - devel subpackage is python2 exclusive --- diff --git a/python-pycairo.spec b/python-pycairo.spec index 407fd48..0720599 100644 --- a/python-pycairo.spec +++ b/python-pycairo.spec @@ -152,7 +152,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir} %py_postclean %endif -%if %{with python2} +%if %{with python3} %py3_install %endif @@ -171,13 +171,13 @@ rm -rf $RPM_BUILD_ROOT %{py_sitedir}/cairo/__init__.pyi %{py_sitedir}/cairo/include %{py_sitedir}/pycairo-%{version}-py*.egg-info -%endif %files devel %defattr(644,root,root,755) %dir %{_includedir}/pycairo %{_includedir}/pycairo/pycairo.h %{_pkgconfigdir}/pycairo.pc +%endif %if %{with python3} %files -n python3-%{module}