[packages/treedec] - rel 4, disable python2
baggins
baggins at pld-linux.org
Sun Mar 23 11:40:52 CET 2025
commit 44bc33e76e9ad28d1e756d944bbf01905235f9b2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 23 11:39:05 2025 +0100
- rel 4, disable python2
treedec.spec | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/treedec.spec b/treedec.spec
index 9902f9b..c72ddae 100644
--- a/treedec.spec
+++ b/treedec.spec
@@ -1,7 +1,7 @@
#
# Conditional build:
%bcond_with gala # use gala graph functions (broken build when using gala snapshot 20181110 + boost 1.70)
-%bcond_without python2 # CPython 2.x module
+%bcond_with python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
#
Summary: Tree decomposition algorithms
@@ -11,7 +11,7 @@ Name: treedec
Version: 0.9.2
%define gitref a494876a8b168b50fc1dfca2f26b6e10878158b6
%define snap 20230913
-%define rel 3
+%define rel 4
Release: 1.%{snap}.%{rel}
License: GPL v2, GPL v3
Group: Libraries
@@ -90,9 +90,12 @@ Moduł do rozkładu drzewiastego dla Pythona 3.
%{__autoconf}
%{__autoheader}
%{__automake}
+
+%if %{with python2}
install -d build-py2
cd build-py2
-../%configure \
+%define configuredir ..
+%configure \
--disable-static \
%{!?with_gala:--without-gala} \
--with-python-include-dir=%{py_incdir} \
@@ -100,11 +103,13 @@ cd build-py2
%{__make}
cd ..
+%endif
%if %{with python3}
install -d build-py3
cd build-py3
-../%configure \
+%define configuredir ..
+%configure \
PYTHON=%{__python3} \
--disable-static \
%{!?with_gala:--without-gala} \
@@ -124,11 +129,13 @@ rm -rf $RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/tdlib/cytdlib.la
%endif
+%if %{with python2}
%{__make} -C build-py2 install \
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/tdlib/cytdlib.la
%py_postclean
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/treedec.git/commitdiff/44bc33e76e9ad28d1e756d944bbf01905235f9b2
More information about the pld-cvs-commit
mailing list