Changeset 197


Ignore:
Timestamp:
08/03/15 17:01:32 (9 years ago)
Author:
kdeugau
Message:

/trunk

Commit update to .spec file removing the stack of %if blocks in favour
of a single %define using the newish %dist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild.spec

    r192 r197  
    66# More links may be available from http://www.rpm.org
    77
    8 # A collection of magic to set the release "number" such that dist upgrades will, erm, upgrade.
    9 # NB:  This really only applies to packages built with debbuild.
    10 %if %{?debdist:0}%{?!debdist:1}
    11 %define debdist etch
    12 %endif
    13 %if "%{debdist}" == "sarge"
    14 %define errata 0
    15 %endif
    16 %if "%{debdist}" == "dapper"
    17 %define errata 1
    18 %endif
    19 %if "%{debdist}" == "etch"
    20 %define errata 2
    21 %endif
    22 %if "%{debdist}" == "lenny"
    23 %define errata 3
    24 %endif
    25 if "%{debdist}" == "squeeze"
    26 %define errata 4
    27 %endif
    28 if "%{debdist}" == "wheezy"
    29 %define errata 5
    30 %endif
    31 if "%{debdist}" == "jessie"
    32 %define errata 6
    33 %endif
    34 %if %{?relnum:0}%{?!relnum:1}
    35 %define relnum 1
    36 %endif
    37 
    38 # %{_vendor} is only set to "redhat" on Red Hat (Enterprise) Linux and direct
    39 # derivatives/ancestors (eg Fedora Core).  Upstream rpm (as packaged in Debian,
    40 # for instance) sets it to "rpm".  debbuild sets it to "debbuild".
    41 %if %{_vendor} == "redhat"
    42 %define errata el4
    43 %define release %{relnum}.%{errata}
    44 %else
    45 %define release %{relnum}.%{errata}%{debdist}
    46 %endif
     8%define release %{relnum}.%{dist}
    479
    4810Summary: Build Debian-compatible .deb packages from RPM .spec files
     
    9456
    9557%changelog
     58* Sun Jul 19 2015  Kris Deugau <kdeugau@deepnet.cx>
     59- Remove the stack of %if's determining the Debian dist;  use the recently
     60  refined %{dist} instead
     61
    9662* Thu Feb 28 2008  Kris Deugau <kdeugau@deepnet.cx> -1
    9763- Initial package
Note: See TracChangeset for help on using the changeset viewer.