[packages/redland-bindings] - rel 21, disable outdated python and ruby bindings

baggins baggins at pld-linux.org
Tue Apr 28 09:23:56 CEST 2026


commit 917013958980d1a58d3643571e7f0a39bffafdda
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Apr 28 11:23:30 2026 +0200

    - rel 21, disable outdated python and ruby bindings

 redland-bindings.spec | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/redland-bindings.spec b/redland-bindings.spec
index 7e6e6aa..240d900 100644
--- a/redland-bindings.spec
+++ b/redland-bindings.spec
@@ -2,14 +2,15 @@
 # Conditional build:
 %bcond_without	lua	# don't build Lua bindings
 %bcond_with	php	# don't build (any) PHP bindings
-%bcond_without	ruby	# don't build Ruby bindings
+%bcond_with	piython	# don't build Python bindings
+%bcond_with	ruby	# don't build Ruby bindings
 
 %define		php_name	php%{?php_suffix}
 Summary:	Redland RDF Application Framework Bindings
 Summary(pl.UTF-8):	Wiązania szkieletu aplikacji Redland RDF
 Name:		redland-bindings
 Version:	1.0.17.1
-Release:	20
+Release:	21
 License:	LGPL v2.1+ or GPL v2+ or Apache v2.0+
 Group:		Libraries
 Source0:	http://download.librdf.org/source/%{name}-%{version}.tar.gz
@@ -25,7 +26,7 @@ BuildRequires:	libtool
 %{?with_lua:BuildRequires:	lua51-devel >= 5.1}
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	pkgconfig
-BuildRequires:	python-devel
+%{?with_python:BuildRequires:	python-devel}
 BuildRequires:	redland-devel >= 1.0.15
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.344
@@ -153,7 +154,7 @@ Interfejs języka Ruby do biblioteki Redland RDF.
 	PHP_CONFIG=%{_bindir}/php-config \
 	--with-php=%{__php} \
 %endif
-	--with-python \
+	%{?with_python:--with-python} \
 	%{?with_ruby:--with-ruby}
 
 %{__make} \
@@ -172,9 +173,11 @@ rm -rf $RPM_BUILD_ROOT
 	pythondir=%{py_sitedir} \
 	luadir=%{_libdir}/lua/5.1
 
+%if %{with python}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
+%endif
 
 %if %{with lua}
 chmod +x $RPM_BUILD_ROOT%{_libdir}/lua/5.1/*.so
@@ -233,12 +236,14 @@ fi
 %attr(755,root,root) %{php_extensiondir}/redland.so
 %endif
 
+%if %{with python}
 %files -n python-redland
 %defattr(644,root,root,755)
 %doc docs/python.html docs/pydoc
 %{py_sitescriptdir}/RDF.py[co]
 %{py_sitescriptdir}/Redland.py[co]
 %attr(755,root,root) %{py_sitedir}/_Redland.so
+%endif
 
 %if %{with ruby}
 %files -n ruby-redland
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/redland-bindings.git/commitdiff/917013958980d1a58d3643571e7f0a39bffafdda



More information about the pld-cvs-commit mailing list