From 1aa127ca26f37aeec38dd7d5d75f8289c2f98d93 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Fri, 8 Apr 2022 22:29:18 +0200 Subject: [PATCH] replace "%{py3_prefix}" with "python3-" --- python-pyrfc3339.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-pyrfc3339.spec b/python-pyrfc3339.spec index f96fb60..96fc6b6 100644 --- a/python-pyrfc3339.spec +++ b/python-pyrfc3339.spec @@ -1,5 +1,4 @@ %global srcname pyRFC3339 -%global py3_prefix python%{python3_pkgversion} Name: python-pyrfc3339 Version: 1.1 @@ -16,20 +15,20 @@ Source1: https://raw.githubusercontent.com/kurtraschke/pyRFC3339/e30cc155 BuildArch: noarch -BuildRequires: %{py3_prefix}-devel +BuildRequires: python3-devel # --- unit tests --- # Specified manually because upstream release tarballs do not contain unit tests -BuildRequires: %{py3_prefix}-pytest +BuildRequires: python3-pytest %description This package contains a python library to parse and generate RFC 3339-compliant timestamps using Python datetime.datetime objects. -%package -n %{py3_prefix}-pyrfc3339 +%package -n python3-pyrfc3339 Summary: Generate and parse RFC 3339 timestamps %{?python_provide:%python_provide python3-pyrfc3339} -%description -n %{py3_prefix}-pyrfc3339 +%description -n python3-pyrfc3339 This package contains a Python 3 library to parse and generate RFC 3339-compliant timestamps using Python datetime.datetime objects. @@ -51,7 +50,7 @@ RFC 3339-compliant timestamps using Python datetime.datetime objects. cp -a %{SOURCE1} . %pytest -v tests.py -%files -n %{py3_prefix}-pyrfc3339 -f %{pyproject_files} +%files -n python3-pyrfc3339 -f %{pyproject_files} %doc README.rst %changelog