- build perl bindings with -Wno-nonnull for SLE 11 SP1
authorMichael Schroeder <mls@suse.de>
Mon, 18 Jul 2011 14:52:09 +0000 (16:52 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 18 Jul 2011 14:52:09 +0000 (16:52 +0200)
bindings/perl/CMakeLists.txt
package/libsolv.spec.in

index 8f86cf8..65d14a6 100644 (file)
@@ -24,7 +24,7 @@ ADD_CUSTOM_COMMAND (
     VERBATIM
 )
 
-ADD_DEFINITIONS(${PERL_CCFLAGS} -Wno-unused)
+ADD_DEFINITIONS(${PERL_CCFLAGS} -Wno-unused -Wno-nonnull)
 LINK_DIRECTORIES (${PERL_CORE_DIR})
 INCLUDE_DIRECTORIES (${PERL_INCLUDE_PATH} ${PERL_CORE_DIR})
 
index f76819c..9bc7685 100644 (file)
@@ -136,7 +136,9 @@ Group:          Development/Languages/Ruby
 Ruby bindings for sat solver.
 
 %package -n python-solv
+%if 0{?py_requires}
 %py_requires
+%endif
 Summary:        Python bindings for the libsolv library
 Group:          Development/Languages/Python