-
Bug
-
Resolution: Done
-
Undefined
-
None
-
rhel-9.5
-
None
-
No
-
None
-
rhel-sst-cs-software-management
-
ssg_core_services
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
I tried to update my spec file with Forges. But the upstream name is different
from the downstream name. So I need -n option to define the correct tarball name. e.g.
Name: lldpad %global forgeurl https://github.com/intel/openlldp/ %global branch branch-1.1 %global commit f1dd9eb961fab06723d2bedb2f7e2b81e45ee9ab %global shortcommit %(c=%{commit}; echo ${c:0:7}) %forgemeta -i Version: 1.1.1 Release: 1%{?dist} Summary: Intel LLDP Agent License: GPL-2.0-only URL: http://open-lldp.org/ Source0: %{forgesource}#/%{name}-%{version}.tar.gz ... %prep %forgeautosetup -n openlldp-%{commit}
Without this feature, the build will fail with error
+ cd openlldp-f1dd9eb961fab06723d2bedb2f7e2b81e45ee9ab + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /home/Liu/rpmbuild/BUILD + rm -rf lldpad-1.1.1 + /usr/lib/rpm/rpmuncompress -x /home/Liu/rpmbuild/SOURCES/lldpad-1.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd lldpad-1.1.1 /var/tmp/rpm-tmp.fjzwP8: line 56: cd: lldpad-1.1.1: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.fjzwP8 (%prep)