Testing Workflow

This commit is contained in:
Christian Tosta
2025-04-18 05:00:09 -03:00
parent 39f0345952
commit 62ed07d606
2 changed files with 4 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ jobs:
- name: Set environment variables - name: Set environment variables
run: | run: |
echo " \ echo "\
PKG_NAME=ca-certificates-brazil \ PKG_NAME=ca-certificates-brazil \
PKG_VERSION=$(grep \ PKG_VERSION=$(grep \
-m1 -iPo '.*CPACK_PACKAGE_VERSION [\"]*\K[\S]*[^(\"\))]' \ -m1 -iPo '.*CPACK_PACKAGE_VERSION [\"]*\K[\S]*[^(\"\))]' \
@@ -46,9 +46,8 @@ jobs:
- name: Copy SOURCES and SPEC file - name: Copy SOURCES and SPEC file
run: | run: |
echo "${{ env.PKG_NAME }} = ${{ env.PKG_VERSION }}" cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec
sed "s/__VERSION__/${{ env.PKG_VERSION }}/g" packaging/pkg.spec.in \ rpmdev-bumpspec -n ${PKG_VERSION} ~/rpmbuild/SPECS/${PKG_NAME}.spec
> ~/rpmbuild/SPECS/${{ env.PKG_NAME }}.spec
cp dist/*.src.tar.gz ~/rpmbuild/SOURCES/ cp dist/*.src.tar.gz ~/rpmbuild/SOURCES/
- name: Build RPM - name: Build RPM

View File

@@ -1,12 +1,10 @@
%global debug_package %{nil} %global debug_package %{nil}
%global source_date_epoch_from_changelog 0 %global source_date_epoch_from_changelog 0
%global version __VERSION__
%define __openssl %{_bindir}/openssl %define __openssl %{_bindir}/openssl
Name: ca-certificates-brazil Name: ca-certificates-brazil
Version: %{version} Version: __VERSION__
Release: %{autorelease} Release: %{autorelease}
Summary: The ICP-Brasil root certificate bundle Summary: The ICP-Brasil root certificate bundle