From cd5f3c2aaf15588e4ec32b80b8fb1b861b9091dd Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Oct 31 2024 10:39:41 +0000 Subject: Using %{pypi_source} without argument is deprecated Being explicit about the first argument will improve the quality of the specfiles. --- diff --git a/guidelines/modules/ROOT/pages/SourceURL.adoc b/guidelines/modules/ROOT/pages/SourceURL.adoc index 51bb955..7b3ea90 100644 --- a/guidelines/modules/ROOT/pages/SourceURL.adoc +++ b/guidelines/modules/ROOT/pages/SourceURL.adoc @@ -139,10 +139,11 @@ tar -czvf libfoo-$VERSION-nopatents.tar.gz libfoo-$VERSION As PyPI has moved to storing files in directories which change depending on the file being stored, it is rather unpleasant to use in a `Source:` URL. -Instead, files.pythonhosted.org can be used trough the `+%{pypi_source}+` macro. +Instead, files.pythonhosted.org can be used trough the `+%{pypi_source}+` macro, +followed by the project name. .... -Source: %{pypi_source} +Source: %{pypi_source foo} .... See more about the macro in the xref:Python.adoc#_source_files_from_pypi[Python guidelines].