]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- add %waf (and %__waf for overriding with own flags)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Dec 2006 17:01:53 +0000 (17:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.334

rpm.macros

index 6a24b416db6102291b8a6d86013fcb898d5b3e50..ddc60e253dfbeafaf1c15e380da6400c0a17f4dd 100644 (file)
@@ -142,6 +142,20 @@ CXXFLAGS="%{rpmcxxflags}" \
 cmake \
 }
 
+# waf. see waf.spec
+# override __waf to add -j1 in your ~/.rpmmacros
+%__waf /usr/bin/waf
+%waf { \
+# To install waf directories (.waf-version, .wafcache) in building directory. \
+WAF_HOME="%{buildroot}" \
+CC="%{__cc}" \
+CXX="%{__cxx}" \
+CFLAGS="%{rpmcflags}" \
+CXXFLAGS="%{rpmcxxflags}" \
+%{__waf} \
+       --prefix=%{_prefix} %{?debug:debug=full} \
+}
+
 #----------------------------------------------------------------
 %global configure_cache 0
 %configure_cache_file  %{buildroot}.configure.cache
This page took 0.135898 seconds and 4 git commands to generate.