[packages/python-pycairo] fix build without python2

atler atler at pld-linux.org
Sat Feb 27 10:23:58 CET 2021


commit e2066932e95d84b756c6406cc9a935b85c8f40d1
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Feb 27 10:22:52 2021 +0100

    fix build without python2
    
    - devel subpackage is python2 exclusive

 python-pycairo.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycairo.git/commitdiff/e2066932e95d84b756c6406cc9a935b85c8f40d1



More information about the pld-cvs-commit mailing list