1
0
forked from pool/kernel-source

GIT Revision: ac568039358d552b509603fb1653f2aac95087e0

OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-source?expand=0&rev=7179
This commit is contained in:
Michal Marek
2011-12-15 06:01:30 +00:00
committed by Git OBS Bridge
parent e4b0b07d4d
commit 0c698e99ba
33 changed files with 139 additions and 20 deletions

13
mkspec
View File

@@ -65,15 +65,22 @@ my $unpack_patches = join(" ", map { "-a $_" } @tarballs);
my $scripts = join(",", grep { is_script($_) }
($sources =~ /\nSource\d+:\s*([^\s]*)/mg));
(my $major_version = $srcversion) =~ s/\..*//;
my $ftp_directory = "pub/linux/kernel/v$major_version.x";
my $tarball_url;
if ($srcversion =~ /^(\d+)(?:\.\d+)*(-rc\d+)?$/) {
$tarball_url = "http://www.kernel.org/pub/linux/kernel/v$1.x/";
$tarball_url .= "testing/" if $2;
} else {
# kernel.org has no tarballs for linux-next or vanilla snapshots
$tarball_url = "";
}
my %macros = (
VARIANT => $variant,
VANILLA_ONLY => $vanilla_only,
SRCVERSION => $srcversion,
PATCHVERSION => $patchversion,
RPMVERSION => $rpmversion,
FTP_DIRECTORY => $ftp_directory,
TARBALL_URL => $tarball_url,
RELEASE => $rpmrelease,
SOURCES => $sources,
NOSOURCE => $nosource,