From 758b9fb17c077dd7df821b045697479a05899fd2 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 2 Oct 2025 16:34:25 +0200 Subject: [PATCH] test --- .gitea/workflows/build_rhel8.yaml | 4 ++-- .gitea/workflows/build_rhel9.yaml | 6 +++--- Pmodules_bash.spec | 7 +++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build_rhel8.yaml b/.gitea/workflows/build_rhel8.yaml index b0848b4..49d4450 100644 --- a/.gitea/workflows/build_rhel8.yaml +++ b/.gitea/workflows/build_rhel8.yaml @@ -20,8 +20,8 @@ jobs: - name: Build RPM run: | - spectool -g -R Pmodules.spec - rpmbuild -ba Pmodules.spec + # spectool -g -R Pmodules.spec + # rpmbuild -ba Pmodules.spec # spectool -g -R Pmodules_modules.spec # rpmbuild -ba Pmodules_modules.spec diff --git a/.gitea/workflows/build_rhel9.yaml b/.gitea/workflows/build_rhel9.yaml index 6d1274e..cd65f2a 100644 --- a/.gitea/workflows/build_rhel9.yaml +++ b/.gitea/workflows/build_rhel9.yaml @@ -20,14 +20,14 @@ jobs: - name: Build RPM run: | - spectool -g -R Pmodules.spec - rpmbuild -ba Pmodules.spec + # spectool -g -R Pmodules.spec + # rpmbuild -ba Pmodules.spec # spectool -g -R Pmodules_modules.spec # rpmbuild -ba Pmodules_modules.spec # spectool -g -R Pmodules_bash.spec - # rpmbuild -ba Pmodules_bash.spec + rpmbuild -ba Pmodules_bash.spec # list generated rpms find RPMS diff --git a/Pmodules_bash.spec b/Pmodules_bash.spec index f8ae833..36521d6 100644 --- a/Pmodules_bash.spec +++ b/Pmodules_bash.spec @@ -25,6 +25,13 @@ incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. %prep +token=${ACCESSTOKEN:-} +if [ -n "$token" ]; then + curl -L \ + -H "Authorization: token $token" \ + -o %{_topdir}/SOURCES/bash-%{version}.tar.gz \ + "https://gitea.psi.ch/Pmodules/bash/archive/bash-%{version}.tar.gz" +fi %setup -q -n bash-%{version} %build