Commit 65ef617a authored by Sebastien Moretti's avatar Sebastien Moretti

Use new canonical CRAN URLs

parent 6d66ac36
......@@ -4,9 +4,9 @@ use strict;
use warnings;
use diagnostics;
# Sebastien Moretti from the Vital-IT (http://www.vital-it.ch) Center
# Sebastien Moretti from the Vital-IT (https://www.vital-it.ch) Center
# for high-performance computing of the SIB Swiss Institute of Bioinformatics.
my $VERSION = '0.1.8';
my $VERSION = '0.1.9';
use Cwd 'abs_path';
use DateTime;
......@@ -301,6 +301,7 @@ sub format_license {
'LGPL-2' => 'LGPLv2',
'LGPL-2.1' => 'LGPLv2+',
'LGPL-3' => 'LGPLv3',
'LGPL-3 | Apache License 2.0' => 'LGPLv3 and AGPLv2',
'MIT' => 'MIT',
'MIT + file LICENSE' => 'MIT with advertising',
'Unlimited' => 'Public Use',
......@@ -361,7 +362,7 @@ sub get_template {
: '';
my $URL = $Source eq 'bioc' ? 'http://www.bioconductor.org/packages/__RELEASE__/bioc/html/%{_realname}.html'
: $Source eq 'cran' ? 'http://cran.r-project.org/web/packages/%{_realname}/'
: $Source eq 'cran' ? 'https://cran.r-project.org/package=%{_realname}'
: $Source eq 'data-annotation' ? 'http://www.bioconductor.org/packages/__RELEASE__/data/annotation/html/%{_realname}.html'
: $Source eq 'data-experiment' ? 'http://www.bioconductor.org/packages/__RELEASE__/data/experiment/html/%{_realname}.html'
: $Source eq 'extra' ? 'http://www.bioconductor.org/packages/__RELEASE__/extra/html/%{_realname}.html'
......@@ -369,7 +370,7 @@ sub get_template {
: '';
my $Source0 = $Source eq 'bioc' ? 'http://www.bioconductor.org/packages/__RELEASE__/bioc/src/contrib/%{_realname}_%{version}.tar.gz'
: $Source eq 'cran' ? "http://cran.r-project.org/src/contrib/${package}_$original_version.tar.gz"
: $Source eq 'cran' ? "https://cran.r-project.org/src/contrib/${package}_$original_version.tar.gz"
: $Source eq 'data-annotation' ? 'http://www.bioconductor.org/packages/__RELEASE__/data/annotation/src/contrib/%{_realname}_%{version}.tar.gz'
: $Source eq 'data-experiment' ? 'http://www.bioconductor.org/packages/__RELEASE__/data/experiment/src/contrib/%{_realname}_%{version}.tar.gz'
: $Source eq 'extra' ? 'http://www.bioconductor.org/packages/__RELEASE__/extra/src/contrib/%{_realname}_%{version}.tar.gz'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment