Changeset 162 for trunk


Ignore:
Timestamp:
04/08/12 21:18:25 (13 years ago)
Author:
kdeugau
Message:

/trunk

Tweak and fiddle %{debdist} generation, since a few new Debian releases
have happened

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r161 r162  
    132132        "4"     => "etch",
    133133        "5"     => "lenny",
    134         "5.0.0" => "squeeze",
     134        "6.0"   => "squeeze",
     135        "7.0"   => "wheezy",    #maybe?
    135136        "99"    => "sid");
    136137# Enh.  There doesn't seem to be any better way to do this...  :(
     
    146147  } else {
    147148
     149# *eyeroll*  there *really* has to be a better way to go about this.  You
     150# can't sanely build packages for multiple distro targets if you can't
     151# programmatically figure out which one you're building on.
     152
     153# note that we care only about major release numbers; tracking minor or point
     154# releases would be...  exponentially more painful.
     155
    148156    # for the lazy copy-paster:  dpkg-query --showformat '${version}\n' -W base-files
    149157    # avoid shellisms
     
    152160      close BASEGETTER;
    153161
    154       if ($basever =~ /^\d\.\d\.\d$/) {
    155         # sarge, possibly squeeze O_o  (5.0.0 as of 2010/02/03)
    156         $basever =~ s/\.\d$//;
    157       }
    158       $basever = 5 if ($basever =~ /lenny/);
     162      ($basever) = ($basever =~ /^(\d(?:\.\d)?)/);
    159163    }
    160164
  • trunk/debbuild.spec

    r144 r162  
    2222%if "%{debdist}" == "lenny"
    2323%define errata 3
     24%endif
     25if "%{debdist}" == "squeeze"
     26%define errata 4
     27%endif
     28if "%{debdist}" == "wheezy"
     29%define errata 5
    2430%endif
    2531%if %{?relnum:0}%{?!relnum:1}
  • trunk/template.spec

    r161 r162  
    2222%if "%{debdist}" == "lenny"
    2323%define errata 3
     24%endif
     25%if "%{debdist}" == "squeeze"
     26%define errata 4
     27%endif
     28%if "%{debdist}" == "wheezy"
     29%define errata 5
    2430%endif
    2531%if %{?relnum:0}%{?!relnum:1}
Note: See TracChangeset for help on using the changeset viewer.