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:
committed by
Git OBS Bridge
parent
e4b0b07d4d
commit
0c698e99ba
13
mkspec
13
mkspec
@@ -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,
|
||||
|
Reference in New Issue
Block a user