From 9900702dbd664d64912aeff8d6ad32caaa87ced3 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Oct 22 2025 09:52:48 +0000 Subject: Add Codeberg repository download link suggestions --- diff --git a/guidelines/modules/ROOT/pages/SourceURL.adoc b/guidelines/modules/ROOT/pages/SourceURL.adoc index 51bb955..dedcbc2 100644 --- a/guidelines/modules/ROOT/pages/SourceURL.adoc +++ b/guidelines/modules/ROOT/pages/SourceURL.adoc @@ -193,6 +193,7 @@ Once the commit hash and git tag are known, you can define them in your spec fil %global shortcommit %(c=%{commit}; echo ${c:0:11}) [Bitbucket] %global shortcommit %(c=%{commit}; echo ${c:0:7}) [GitLab] %global shortcommit %(c=%{commit}; echo ${c:0:8}) [Sourcehut] +%global shortcommit %(c=%{commit}; echo ${c:0:10}) [Codeberg] .... === Commit Revision @@ -204,6 +205,7 @@ Source: https://github.com/OWNER/PROJECT/archive/%{commit}/%{name}-%{shortcommi Source: https://bitbucket.org/OWNER/PROJECT/get/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz [BitBucket] Source: https://gitlab.com/OWNER/PROJECT/-/archive/%{commit}/%{name}-%{shortcommit}.tar.gz [GitLab] Source: https://git.sr.ht/~OWNER/PROJECT/archive/%{shortcommit}.tar.gz#/PROJECT-%{shortcommit}.tar.gz [Sourcehut] +Source: https://codeberg.org/OWNER/PROJECT/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz [Codeberg] ... %prep @@ -211,6 +213,7 @@ Source: https://git.sr.ht/~OWNER/PROJECT/archive/%{shortcommit}.tar.gz#/PROJECT %autosetup -n OWNER-PROJECT-%{shortcommit} [BitBucket] %autosetup -n PROJECT-%{commit} [GitLab] %autosetup -n PROJECT-%{shortcommit} [Sourcehut] +%autosetup -n PROJECT [Codeberg] .... If the release corresponds to a git tag with a sane numeric version, @@ -239,10 +242,11 @@ This is shown in the %prep section example. For the source tarball, you can use the following syntax: .... -Source: https://github.com/OWNER/PROJECT/archive/%{gittag}/%{name}-%{version}.tar.gz [GitHub] -Source: https://bitbucket.org/OWNER/PROJECT/get/%{gittag}.tar.gz#/%{name}-%{version}.tar.gz [BitBucket] -Source: https://gitlab.com/OWNER/PROJECT/-/archive/%{gittag}/%{name}-%{version}.tar.gz [GitLab] -Source: https://git.sr.ht/~OWNER/PROJECT/archive/%{version}.tar.gz#/PROJECT-%{version}.tar.gz [Sourcehut] +Source: https://github.com/OWNER/PROJECT/archive/%{gittag}/%{name}-%{version}.tar.gz [GitHub] +Source: https://bitbucket.org/OWNER/PROJECT/get/%{gittag}.tar.gz#/%{name}-%{version}.tar.gz [BitBucket] +Source: https://gitlab.com/OWNER/PROJECT/-/archive/%{gittag}/%{name}-%{version}.tar.gz [GitLab] +Source: https://git.sr.ht/~OWNER/PROJECT/archive/%{version}.tar.gz#/PROJECT-%{version}.tar.gz [Sourcehut] +Source: https://codeberg.org/OWNER/PROJECT/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz [Codeberg] ... %prep @@ -250,6 +254,7 @@ Source: https://git.sr.ht/~OWNER/PROJECT/archive/%{version}.tar.gz#/PROJECT-%{v %autosetup -n OWNER-PROJECT-%{shortcommit} [BitBucket] %autosetup -n PROJECT-%{version} [GitLab] %autosetup -n PROJECT-%{version} [Sourcehut] +%autosetup -n PROJECT [Codeberg] .... == Using %\{version}