diff options
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -9,10 +9,10 @@ # should be added to /etc/rpm/macros, while per-user configuration should # be added to ~/.rpmmacros. -%_host_vendor Mandriva -%_real_vendor Mandriva +%_host_vendor @RPMVENDOR@ +%_real_vendor @RPMVENDOR@ -%_vendor Mandriva +%_vendor @RPMVENDOR@ %_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}%{?_gnu} @@ -30,6 +30,9 @@ %__gzip /usr/bin/gzip +%_sys_macros_dir @RPMSYSCONFDIR@/macros.d +%build_sysmacrospath() %{_sys_macros_dir}/%{1}.macros + #============================================================================== # ---- Build system path macros. # @@ -49,7 +52,7 @@ # (e.g. per-platform, per-system, per-packager, per-package) macros. # -%_enable_debug_packages 0 +# %_enable_debug_packages %debugcflags %{?_enable_debug_packages:-g} @@ -186,7 +189,9 @@ # (user may copy the following line in specfile) %mdkversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release) -%mkrel(c:) %{-c:0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.*)(\\d+)$/;$rel=$2-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk} +%distsuffix mdk + +%mkrel(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk} %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ |