Skip to content

Commit

Permalink
build: sync with dist-git
Browse files Browse the repository at this point in the history
+ additional fix for source-git config.
+ unify .packit.yml and .distro/source-git.yaml

From-dist-git-commit: 544ea5d1a604b41aa42dd5a183ee3e59dc6e966d
  • Loading branch information
pvalena committed Sep 19, 2024
1 parent 733da02 commit 26d0c2f
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 11 deletions.
69 changes: 60 additions & 9 deletions .distro/source-git.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Docs: https://packit.dev/docs/

upstream_project_url: [email protected]:dracut-ng/dracut-ng.git
upstream_ref: "103"
downstream_package_name: dracut
specfile_path: .distro/dracut.spec
patch_generation_ignore_paths:
- .distro/
- .packit.yml
- .github/
patch_generation_patch_id_digits: 1
sync_changelog: true

## TODO: #####################

files_to_sync:
- src: .distro/
dest: .
Expand All @@ -17,6 +13,61 @@ files_to_sync:
- protect sources
- exclude source-git.yaml
- exclude .gitignore

#files_to_sync:
# - .distro/dracut.spec

##############################

sources:
- path: dracut-ng-102.tar.gz
url: https://github.com/dracut-ng/dracut-ng/archive/refs/tags/103.tar.gz

specfile_path: .distro/dracut.spec

patch_generation_ignore_paths:
- .distro/
- .packit.yml
- .github/
patch_generation_patch_id_digits: 1
sync_changelog: true

# TODO: #
#upstream_ref: "103"
upstream_ref: 3fce598fb45aa5618cdf885eb48cf327104ffcb8

upstream_package_name: dracut
downstream_package_name: dracut

#actions:
# post-upstream-clone:
# Use the current specfile
# - "cp pkgbuild/dracut.spec ."

jobs:
# Build test
- job: upstream_koji_build
trigger: pull_request
scratch: true
targets:
- fedora-rawhide-x86_64
- fedora-eln-x86_64

- job: copr_build
trigger: pull_request
targets:
- fedora-rawhide-x86_64
- fedora-eln-x86_64

# Run tests (via testing farm)
- job: tests
trigger: pull_request
targets:
- fedora-rawhide-x86_64
# - fedora-eln-x86_64

## Create fedora PR
#- job: propose_downstream
# trigger: release
# dist_git_branches:
# - rawhide
26 changes: 24 additions & 2 deletions .packit.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
# Docs: https://packit.dev/docs/

specfile_path: .distro/dracut.spec
upstream_project_url: [email protected]:dracut-ng/dracut-ng.git

## TODO: #####################

#files_to_sync:
#- src: .distro/
# dest: .
# delete: true
# filters:
# - protect .git*
# - protect sources
# - exclude source-git.yaml
# - exclude .gitignore

files_to_sync:
- .distro/dracut.spec

##############################

sources:
- path: dracut-ng-102.tar.gz
url: https://github.com/dracut-ng/dracut-ng/archive/refs/tags/103.tar.gz

specfile_path: .distro/dracut.spec

patch_generation_ignore_paths:
- .distro/
- .packit.yml
- .github/
patch_generation_patch_id_digits: 1
sync_changelog: true

upstream_ref: "103"
# TODO: #
#upstream_ref: "103"
upstream_ref: 3fce598fb45aa5618cdf885eb48cf327104ffcb8

upstream_package_name: dracut
downstream_package_name: dracut
Expand Down

0 comments on commit 26d0c2f

Please sign in to comment.