[packages/openbabel] - rel 19, switch to python3

baggins baggins at pld-linux.org
Tue Dec 1 23:20:52 CET 2026


commit 5c5970bc95362daaef4e0b2717185c06c9aa9221
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 1 23:20:33 2026 +0100

    - rel 19, switch to python3

 openbabel.spec | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/openbabel.spec b/openbabel.spec
index 1416dba..ec7003b 100644
--- a/openbabel.spec
+++ b/openbabel.spec
@@ -10,7 +10,7 @@ Summary:	A cross-platform chemistry program and library designed to convert file
 Summary(pl.UTF-8):	Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
 Name:		openbabel
 Version:	2.4.1
-Release:	18
+Release:	19
 License:	GPL v2
 Group:		Libraries
 #Source0Download: https://github.com/openbabel/openbabel/releases
@@ -34,8 +34,8 @@ BuildRequires:	libstdc++-devel
 BuildRequires:	libxml2-devel >= 1:2.6.5
 %{?with_mono:BuildRequires:	mono-csharp}
 BuildRequires:	perl-devel
-BuildRequires:	python
-BuildRequires:	python-modules
+BuildRequires:	python3
+BuildRequires:	python3-modules
 BuildRequires:	rpm-perlprov
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.605
@@ -43,6 +43,7 @@ BuildRequires:	ruby-devel
 BuildRequires:	swig >= 2.0
 BuildRequires:	wxGTK3-unicode-devel
 BuildRequires:	zlib-devel
+Obsoletes:	python-openbabel < 2.4.1-19
 Requires:	inchi-libs >= 1.0.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -108,16 +109,16 @@ Perl binding for OpenBabel.
 %description -n perl-Chemistry-OpenBabel -l pl.UTF-8
 Wiązanie Perla do biblioteki OpenBabel.
 
-%package -n python-openbabel
+%package -n python3-openbabel
 Summary:	Python binding for OpenBabel
 Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki OpenBabel
 Group:		Libraries/Python
 Requires:	%{name} = %{version}-%{release}
 
-%description -n python-openbabel
+%description -n python3-openbabel
 Python binding for OpenBabel.
 
-%description -n python-openbabel -l pl.UTF-8
+%description -n python3-openbabel -l pl.UTF-8
 Wiązanie Pythona do biblioteki OpenBabel.
 
 %package -n ruby-openbabel
@@ -155,7 +156,7 @@ Wiązanie języka Ruby do biblioteki OpenBabel.
 	-DOBPERL_INSTALLDIRS="vendor" \
 	-DPERL_BINDINGS=ON \
 	-DPYTHON_BINDINGS=ON \
-	-DPYTHON_EXECUTABLE:PATH="%{__python}" \
+	-DPYTHON_EXECUTABLE:PATH="%{__python3}" \
 	-DRUBY_BINDINGS=ON \
 	-DRUN_SWIG=ON \
 	-DOPENBABEL_USE_SYSTEM_INCHI=ON \
@@ -257,11 +258,12 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{perl_vendorarch}/auto/Chemistry/OpenBabel
 %attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
 
-%files -n python-openbabel
+%files -n python3-openbabel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/_openbabel.so
-%{py_sitedir}/openbabel.py[co]
-%{py_sitedir}/pybel.py[co]
+%attr(755,root,root) %{py3_sitedir}/_openbabel.so
+%{py3_sitedir}/__pycache__/*.py*
+%{py3_sitedir}/openbabel.py
+%{py3_sitedir}/pybel.py
 #%{py_sitedir}/openbabel-1.7-py*.egg-info
 
 %files -n ruby-openbabel
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openbabel.git/commitdiff/5c5970bc95362daaef4e0b2717185c06c9aa9221



More information about the pld-cvs-commit mailing list