From f8372d9df4db4b98313bfd028f718142c3365d6a Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Wed, 27 May 2026 14:43:16 -0300 Subject: [PATCH] Fix Source0 URL fragment for consistent tarball naming GitHub archive URLs without a filename fragment download as just the version number (e.g. 6.6.4.tar.gz), which confuses %setup when it tries to cd into the expected %{name}-%{version} directory. Add #/%{name}-%{version}.tar.gz suffix to ensure correct local filenames matching the extracted directory names. --- sonic-interface-libraries.spec | 2 +- sonic-workspace.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-interface-libraries.spec b/sonic-interface-libraries.spec index e7d5bbb..5faf34c 100644 --- a/sonic-interface-libraries.spec +++ b/sonic-interface-libraries.spec @@ -8,7 +8,7 @@ Summary: Foundation of the SonicDE user interface (fork of libplasma) License: LGPL-2.0-or-later URL: https://github.com/Sonic-DE/sonic-interface-libraries -Source0: %{url}/archive/refs/tags/%{version}.tar.gz +Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz %global plasma_version %(echo %{version} | cut -d. -f1-3) diff --git a/sonic-workspace.spec b/sonic-workspace.spec index 4c9d524..8e5bfb7 100644 --- a/sonic-workspace.spec +++ b/sonic-workspace.spec @@ -8,7 +8,7 @@ Summary: Core workspace components for SonicDE (fork of plasma-workspace) License: GPL-2.0-or-later URL: https://github.com/Sonic-DE/sonic-workspace -Source0: %{url}/archive/refs/tags/%{version}.tar.gz +Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz %global plasma_version %(echo %{version} | cut -d. -f1-3)