diff --git a/.packit.yaml b/.packit.yaml index a4c3316..18d0978 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -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: diff --git a/fedora/python-specfile.spec b/fedora/python-specfile.spec index e47c293..a75917a 100644 --- a/fedora/python-specfile.spec +++ b/fedora/python-specfile.spec @@ -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}}