From 2cb0fcaf447cb66215b370db372da94312f72587 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Sep 23 2021 20:58:12 +0000 Subject: Add "Smallest compressed archive" note to sourceurl page Fixes https://pagure.io/packaging-committee/issue/1021 --- diff --git a/guidelines/modules/ROOT/pages/SourceURL.adoc b/guidelines/modules/ROOT/pages/SourceURL.adoc index 367c8e2..7cebbb5 100644 --- a/guidelines/modules/ROOT/pages/SourceURL.adoc +++ b/guidelines/modules/ROOT/pages/SourceURL.adoc @@ -10,6 +10,14 @@ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-common/2.12/gnome-common-2.12.0.tar.bz2 .... +[NOTE] +.Smallest Compressed Archive +====== +If the upstream source archive is available in multiple compressed formats that our tools can decompress it's best to use the one that is smallest in size. +This ensures the smallest source rpm to save space on the mirrors and downloads of source RPM packages. +====== + + There are several cases where upstream is not providing the source to you in an upstream tarball. In these cases you must document how to generate the tarball used in the rpm either through a spec file comment or a script included as a separate SourceX:. Here are some specific examples: