Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: introduce Packit #347

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .packit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# vi:ts=2 sw=2 et:
#
# Docs: https://packit.dev/docs/

specfile_path: .packit_rpm/dbus-broker.spec
files_to_sync:
- .packit.yml
- src: .packit_rpm/dbus-broker.spec
dest: dbus-broker.spec
srpm_build_deps:
- meson
upstream_package_name: dbus-broker
downstream_package_name: dbus-broker
upstream_tag_template: "v{version}"

actions:
post-upstream-clone:
# Download all subprojects in advance, as we won't have networking during RPM build
- meson subprojects download
# Use the Fedora Rawhide specfile
- git clone https://src.fedoraproject.org/rpms/dbus-broker .packit_rpm --depth=1
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- rm -fv .packit_rpm/sources
# Drop backported patches from the specfile
- sed -ri '/^Patch.*\\:.+\\.patch/d' .packit_rpm/dbus-broker.spec

create-archive:
# We have to override the default archive command (which is 'git archive'), since that ignores
# files in subprojects
- bash -c 'tar -pczf .packit_rpm/$PACKIT_PROJECT_NAME_VERSION.tar.gz --exclude="./.*" --transform="s/^\./$PACKIT_PROJECT_NAME_VERSION/" .'
- bash -c "echo .packit_rpm/$PACKIT_PROJECT_NAME_VERSION.tar.gz"

jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-all-aarch64
- fedora-all-i386
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
Loading