- Timestamp:
- 04/08/12 21:18:25 (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r161 r162 132 132 "4" => "etch", 133 133 "5" => "lenny", 134 "5.0.0" => "squeeze", 134 "6.0" => "squeeze", 135 "7.0" => "wheezy", #maybe? 135 136 "99" => "sid"); 136 137 # Enh. There doesn't seem to be any better way to do this... :( … … 146 147 } else { 147 148 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 148 156 # for the lazy copy-paster: dpkg-query --showformat '${version}\n' -W base-files 149 157 # avoid shellisms … … 152 160 close BASEGETTER; 153 161 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)?)/); 159 163 } 160 164 -
trunk/debbuild.spec
r144 r162 22 22 %if "%{debdist}" == "lenny" 23 23 %define errata 3 24 %endif 25 if "%{debdist}" == "squeeze" 26 %define errata 4 27 %endif 28 if "%{debdist}" == "wheezy" 29 %define errata 5 24 30 %endif 25 31 %if %{?relnum:0}%{?!relnum:1} -
trunk/template.spec
r161 r162 22 22 %if "%{debdist}" == "lenny" 23 23 %define errata 3 24 %endif 25 %if "%{debdist}" == "squeeze" 26 %define errata 4 27 %endif 28 %if "%{debdist}" == "wheezy" 29 %define errata 5 24 30 %endif 25 31 %if %{?relnum:0}%{?!relnum:1}
Note:
See TracChangeset
for help on using the changeset viewer.