#993 Fix Source0 URL in SPEC template for R packages
Merged 3 years ago by churchyard. Opened 3 years ago by iucar.
iucar/packaging-committee fix/r-source-url  into  master

@@ -41,7 +41,7 @@ 

  

  License:          GPLv2+

  URL:              https://CRAN.R-project.org/package=%{packname}

- Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

+ Source0:          %{url}&version=%{version}#/%{packname}_%{version}.tar.gz

  

  BuildRequires:    R-devel

  BuildRequires:    tex(latex)

The old format is only valid for current releases: as soon as a package is archived, the URL changes. This PR replaces it with a format that is guaranteed to work both for current releases as well as archived ones.

Pull-Request has been merged by churchyard

3 years ago
Metadata