Drop versioneer conditionals and let the dist-git branches diverge

This commit is contained in:
Benjamin A. Beasley 2023-07-24 11:41:24 -04:00
commit 13a8099fba

View file

@ -1,12 +1,3 @@
# In the releases mentioned in the expression, the system versioneer is too old
# for the generated _version.py to have the get_version() function, and too old
# for the License tag to be accurate. We must use the bundled, amalgamated
# versioneer.py to generate _version.py.
#
# Otherwise, we can use the system versioneer to generate _version.py, and can
# remove the bundled, amaglamated versioneer.py to indicate we arent using it.
%bcond bundled_versioneer %{expr:0%{?fc37} || 0%{?fc38} || 0%{?el9}}
Name: python-pymapvbvd
Version: 0.5.4
Release: %autorelease
@ -52,11 +43,14 @@ Summary: %{summary}
# The generated _version.py has the same license as python3dist(versioneer),
# but we do not consider it to be bundled from Versioneer.
%if %{with bundled_versioneer}
#
# The system versioneer is too old for the generated _version.py to have the
# get_version() function, and too old for the License tag to be accurate. We
# must use the bundled, amalgamated versioneer.py to generate _version.py.
#
# While versioneer.py is a bundled copy of python3dist(versioneer) = 0.28, it
# is not included in the binary RPMs, so we still do not treat it as bundled,
# and there is no corresponding virtual Provides.
%endif
%description -n python3-pymapvbvd %{common_description}
@ -64,24 +58,17 @@ Summary: %{summary}
%prep
%autosetup -n pyMapVBVD-%{version} -p1
%setup -q -T -D -b 1 -n pyMapVBVD-%{version}
%if %{without bundled_versioneer}
rm -v versioneer.py
%endif
%generate_buildrequires
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%if %{with bundled_versioneer}
export PYTHONPATH="${PWD}"
%endif
%pyproject_buildrequires -x tests
%build
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%if %{with bundled_versioneer}
export PYTHONPATH="${PWD}"
%endif
%pyproject_wheel