github.com/fafucoder/cilium@v1.6.11/contrib/packaging/rpm/create_rpm.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  set -x
     5  
     6  source /opt/cilium/env
     7  
     8  envsubst '${VERSION} ${RELEASE} ${COMMIT} ${SHORTCOMMIT}' < \
     9  	/opt/cilium/cilium.spec.envsubst > /opt/cilium/cilium.spec
    10  
    11  sed -i -re '/^Version/s/-//g' /opt/cilium/cilium.spec
    12  
    13  # Install any lingering build requirements
    14  dnf builddep -y /opt/cilium/cilium.spec
    15  
    16  fedpkg --release f28 local
    17  
    18  find /opt/cilium -type f -name 'cilium*.rpm' -exec mv -f "{}" /output/ \;