|
| 1 | +# This file is used by the Packit service. |
| 2 | +# Currently it is used for the gating of pull requests. |
| 3 | +# |
| 4 | +# See the documentation for more information: |
| 5 | +# https://packit.dev/docs/configuration/ |
| 6 | + |
| 7 | +# We need a specfile to build the RPM package. |
| 8 | +# But instead of storing it in this repository, |
| 9 | +# we use the one that exists already in src.fedoraproject.org/rpms/golang. |
| 10 | +# In particular, we use the specfile from the branch `eln`. |
| 11 | +# We'll create the temporary folder .packit_rpm to store the content of the |
| 12 | +# Fedora repository. |
| 13 | +specfile_path: .packit_rpm/golang.spec |
| 14 | + |
| 15 | +# We need to tell Packit which files to sync from the upstream repository. |
| 16 | +files_to_sync: |
| 17 | + - .packit.yaml |
| 18 | + - ./scripts/packit.sh |
| 19 | + - src: .packit_rpm/golang.spec |
| 20 | + dest: golang.spec |
| 21 | + |
| 22 | +srpm_build_deps: |
| 23 | + - golang |
| 24 | + - net-tools |
| 25 | + - openssl-devel |
| 26 | + - glibc-static |
| 27 | + - perl-interpreter |
| 28 | + - procps-ng |
| 29 | + |
| 30 | +# The name of the package in the upstream repository. |
| 31 | +upstream_package_name: golang |
| 32 | +# The name of the package in Fedora. |
| 33 | +downstream_package_name: golang |
| 34 | +# Use a different tag template for the upstream repository. |
| 35 | +#upstream_tag_template: "v{version}" |
| 36 | + |
| 37 | +actions: |
| 38 | + create-archive: |
| 39 | + - "bash ./scripts/packit.sh create-archive" |
| 40 | + post-upstream-clone: |
| 41 | + # Use the Fedora ELN package. |
| 42 | + - "git clone https://src.fedoraproject.org/rpms/golang.git .packit_rpm --branch eln" |
| 43 | + fix-spec-file: |
| 44 | + # Fix the specfile by running the ./scripts/packit.sh script |
| 45 | + # We cannot put the content of the script inside the yaml due to limitations of the format |
| 46 | + - "bash ./scripts/packit.sh" |
| 47 | + |
| 48 | +jobs: |
| 49 | + # Build the package in Fedora ELN when a pull request is opened. |
| 50 | + # It can be requested by adding a comment with the text: /packit copr-build |
| 51 | + # This will run the job in the Copr project `alexsaezm/golang-fips`. |
| 52 | + - job: copr_build |
| 53 | + trigger: pull_request |
| 54 | + owner: alexsaezm |
| 55 | + project: go-fips |
| 56 | + targets: |
| 57 | + - fedora-eln-aarch64 |
| 58 | + - fedora-eln-ppc64le |
| 59 | + - fedora-eln-s390x |
| 60 | + - fedora-eln-x86_64 |
| 61 | + |
0 commit comments