fix build without python2
authorJan Palus <atler@pld-linux.org>
Sat, 27 Feb 2021 09:22:52 +0000 (10:22 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 27 Feb 2021 09:22:52 +0000 (10:22 +0100)
- devel subpackage is python2 exclusive

python-pycairo.spec

index 407fd484f38f4833be8d237eb42d06db253a3ab7..0720599936f455ea1cf5f42a04cc168fbbf4f932 100644 (file)
@@ -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}
This page took 0.336433 seconds and 4 git commands to generate.