[packages/python-sqlalchemy] fix files when building without python2
atler
atler at pld-linux.org
Tue Mar 25 13:42:38 CET 2025
commit 5edbdd6a1738a9bdc651a70fead77d6033229171
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Mar 25 12:47:33 2025 +0100
fix files when building without python2
python-sqlalchemy.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec
index eaea605..0e4464c 100644
--- a/python-sqlalchemy.spec
+++ b/python-sqlalchemy.spec
@@ -162,6 +162,7 @@ cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%files
%defattr(644,root,root,755)
%doc AUTHORS CHANGES LICENSE README.rst
@@ -183,6 +184,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{py_sitedir}/sqlalchemy/cresultproxy.so
%{py_sitedir}/sqlalchemy/*.py[co]
%{py_sitedir}/SQLAlchemy-%{version}-py*.egg-info
+%endif
%if %{with python3}
%files -n python3-%{module}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sqlalchemy.git/commitdiff/2cf78b48cda4f581cfeffcaa267bc49e15302b82
More information about the pld-cvs-commit
mailing list