From db72b11f861671bc62fa632836ebb633302dd022 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Sun, 18 Aug 2024 22:12:24 +0200 Subject: [PATCH] [Debug] Try drop epel9 workaround for packit Signed-off-by: Cristian Le --- .packit.yaml | 13 ------------- fmf.spec | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index f59aedd8..c5c71937 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -5,19 +5,6 @@ synced_files: upstream_package_name: fmf downstream_package_name: fmf -# Epel9 fails to build with dynamic version. Need to create archive with PKG-INFO -# F37 works with setuptools_scm 7.0 -actions: - create-archive: - - "hatch build -t sdist" - - "sh -c 'echo dist/fmf-*.tar.gz'" - get-current-version: - - "hatch version" - -srpm_build_deps: - - hatch - - python3-hatch-vcs - jobs: - job: copr_build trigger: pull_request diff --git a/fmf.spec b/fmf.spec index d2391a83..a80cc5bf 100644 --- a/fmf.spec +++ b/fmf.spec @@ -30,10 +30,16 @@ efficient way to organize data into well-sized text documents. %generate_buildrequires +%if 0%{?el9} +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%endif %pyproject_buildrequires -x tests %{?epel:-w} %build +%if 0%{?el9} +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%endif %pyproject_wheel cp docs/header.txt man.rst tail -n+7 README.rst >> man.rst