diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2005-04-28 18:16:48 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2005-04-28 18:16:48 +0000 |
commit | 0476b45b8e1efd8ceba51446bbe5312935726e49 (patch) | |
tree | e0846e8073b0af436887fd5ea022e1dcf8daa6a9 /macros.in | |
parent | db35eb6845a6dfeb1650c23bd1b4a2f40688baeb (diff) | |
download | rpm-setup-0476b45b8e1efd8ceba51446bbe5312935726e49.tar rpm-setup-0476b45b8e1efd8ceba51446bbe5312935726e49.tar.gz rpm-setup-0476b45b8e1efd8ceba51446bbe5312935726e49.tar.bz2 rpm-setup-0476b45b8e1efd8ceba51446bbe5312935726e49.tar.xz rpm-setup-0476b45b8e1efd8ceba51446bbe5312935726e49.zip |
- update mkrel
- include rpm rpmrc in our rpmrc
- minor fixes
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`"; \\\ |