1190 set +x; VERBOSE "BUILD: Build RPM (RPM Package Manager)"; set -x |
1190 set +x; VERBOSE "BUILD: Build RPM (RPM Package Manager)"; set -x |
1191 |
1191 |
1192 # build RPM |
1192 # build RPM |
1193 ( br=`pwd` |
1193 ( br=`pwd` |
1194 cd rpm-%{V_rpm_major}.%{V_rpm_minor} |
1194 cd rpm-%{V_rpm_major}.%{V_rpm_minor} |
|
1195 |
|
1196 # remove unused and undefined methods |
|
1197 sh $shtool subst \ |
|
1198 -e 's;^\(#include *<[^>][^>]*>\);/*\1*/;g' \ |
|
1199 rpmconstant/rpmconstant.h |
1195 |
1200 |
1196 # provide nonstandard constructs |
1201 # provide nonstandard constructs |
1197 cat > nonstandard.h <<EOF |
1202 cat > nonstandard.h <<EOF |
1198 /* MSvB: define missing nonstandard GCC builtin extensions */ |
1203 /* MSvB: define missing nonstandard GCC builtin extensions */ |
1199 #ifndef __GNUC__ |
1204 #ifndef __GNUC__ |