change specfile to allow building without python bindings again
authorMichael Schroeder <mls@suse.de>
Tue, 23 Apr 2013 15:36:14 +0000 (17:36 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 23 Apr 2013 15:36:14 +0000 (17:36 +0200)
package/libsolv.spec.in

index babdb323cf687715c8b406ec67e68ce7f2b33e1c..e96d1537e5e6c1dfb1a0f8e905f4918800d8ec08 100644 (file)
@@ -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"