Skip to content

Commit

Permalink
Test spec edit in create-archive
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Forró <nforro@redhat.com>
  • Loading branch information
nforro committed Feb 19, 2025
1 parent 192a081 commit 5352880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ packages:
- python3-build
- python3-setuptools_scm
actions:
post-upstream-clone:
- echo AHOJ
pre-sync:
- python3 plans/git_reference.py
create-archive:
- python3 -m build --sdist --outdir ./fedora/
- bash -c 'sed -i "s/_BASEVER_/$PACKIT_PROJECT_VERSION/" fedora/python-specfile.spec'
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 -m setuptools_scm
fix-spec-file: []

# docs: https://gitlab.com/CentOS/Integration/packit-cbs/docs
specfile-centos-integration-sig:
Expand Down
2 changes: 1 addition & 1 deletion fedora/python-specfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result
in a minimal diff.}


%global base_version 0.34.1
%global base_version _BASEVER_
#global prerelease rc1

%global package_version %{base_version}%{?prerelease:~%{prerelease}}
Expand Down

0 comments on commit 5352880

Please sign in to comment.