replace "%{py3_prefix}" with "python3-"
This commit is contained in:
parent
8a2315b0cf
commit
1aa127ca26
1 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue