Changeset 316 in MondoRescue for branches/2.06/mondo/mondo.spec


Ignore:
Timestamp:
Jan 13, 2006, 8:44:05 PM (15 years ago)
Author:
bcornec
Message:

Preparation to support official mandriva builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo.spec

    r315 r316  
    1111%define version VVV
    1212%define mrel    RRR
     13# if mandriva official build (rpm --with is_official)
     14%{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}}
    1315%define src     %{name}-%{version}.tgz
    1416%define grp     Archiving/Backup
    1517%define addreqb mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1
    16 
    17 # define the mkrel macro if it is not already defined
    18 %{?!mkrel:%define 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}}
    1918
    2019%if %is_redhat
Note: See TracChangeset for help on using the changeset viewer.