From 17e78ff9180750da4d830a88dc9b4a68d3e29b5a Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 23 Apr 2013 17:36:14 +0200 Subject: [PATCH] change specfile to allow building without python bindings again --- package/libsolv.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index babdb32..e96d153 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -135,7 +135,7 @@ Group: Development/Languages/Ruby Ruby bindings for sat solver. %package -n python-solv -%if 0%{?py_requires:1} +%if 0%{?py_requires:1} && %{with python_binding} %py_requires %endif Summary: Python bindings for the libsolv library @@ -192,8 +192,10 @@ python -O %py_libdir/py_compile.py *.py popd %endif %endif +%if %{with disable_shared} # we want to leave the .a file untouched export NO_BRP_STRIP_DEBUG=true +%endif %clean rm -rf "$RPM_BUILD_ROOT" -- 2.7.4