/
githubmirror
/
authselect
Обзор
Документация
Войти
/
githubmirror
/
authselect
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.packit.yaml
70 строк
2 KB
Pavel Březina
packit: keep spec file in rpm folder to make sources available
03 июн 2026, 22:11
03 июн 2026, 22:11
a4ec1f8
Код
Авторство
О чём код?
--- upstream_project_url: https://github.com/authselect/authselect issue_repository: https://github.com/authselect/authselect upstream_package_name: authselect # Prepare the spec file to be consumed by packit. # We replace the configure script placeholders, the version and release is # then set by packit to correct values. packages: upstream: specfile_path: rpm/authselect.spec actions: post-upstream-clone: - cp rpm/authselect.spec.in rpm/authselect.spec - sed -i "s/@PACKAGE_VERSION@/0/g" rpm/authselect.spec - sed -i "s/@RELEASE_NUMBER@/99/g" rpm/authselect.spec get-current-version: - bash -c 'grep "VERSION_NUMBER" version.m4 | sed -E "s/.+, ([0-9].+).+/\\1/"' downstream: specfile_path: rpm/authselect.spec actions: # Switch to %autorelease and enable gpg verification. post-upstream-clone: - cp rpm/authselect.spec.in rpm/authselect.spec - sed -i "s/@PACKAGE_VERSION@/0/g" rpm/authselect.spec - sed -i "s/@RELEASE_NUMBER@%{?dist}/%autorelease/g" rpm/authselect.spec jobs: # Produce COPR builds on push - job: copr_build trigger: commit packages: - upstream targets: - fedora-all - centos-stream-10 # Produce COPR build on each pull request - job: copr_build trigger: pull_request packages: - upstream targets: - fedora-all - centos-stream-10 # Create Fedora pull request on release - job: propose_downstream trigger: release packages: - downstream dist_git_branches: - fedora-all # Automatically build in Koji when PR is merged - job: koji_build trigger: commit packages: - downstream dist_git_branches: - fedora-all # Automatically open Bodhi update when Koji build is available - job: bodhi_update trigger: commit packages: - downstream dist_git_branches: - fedora-branched # rawhide updates are created automatically