]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- 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 8f86cf8906070d23481860d963918045921e9861..65d14a669d252e7640e1d9f39296d140ca191667 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 f76819c6cf93fd1b8903a1035c87f5d7d0d29ab0..9bc7685bbbdbe498c593417a1e442dfcbf007e0c 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