Fix build error
(cherry picked from commit fa01cea607c2d542829e4f85acfeff18d0fbcc4c)
This commit is contained in:
parent
84df25e1bf
commit
1b5232c9b1
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-pytimeparse
|
Name: python-pytimeparse
|
||||||
Version: 1.1.8
|
Version: 1.1.8
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Time expression parser
|
Summary: Time expression parser
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/wroberts/pytimeparse
|
URL: https://github.com/wroberts/pytimeparse
|
||||||
@ -19,6 +19,7 @@ BuildRequires: python3-setuptools
|
|||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-pytest
|
||||||
%description -n python3-pytimeparse
|
%description -n python3-pytimeparse
|
||||||
A small Python library to parse various kinds of time expressions
|
A small Python library to parse various kinds of time expressions
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ Provides: python3-pytimeparse-doc
|
|||||||
A small Python library to parse various kinds of time expressions
|
A small Python library to parse various kinds of time expressions
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pytimeparse-1.1.8
|
%autosetup -n pytimeparse-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -64,7 +65,7 @@ mv %{buildroot}/filelist.lst .
|
|||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
/usr/bin/pytest pytimeparse/tests/test*.py
|
||||||
|
|
||||||
%files -n python3-pytimeparse -f filelist.lst
|
%files -n python3-pytimeparse -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
@ -74,6 +75,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 04 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.1.8-3
|
||||||
|
- Fix build error
|
||||||
|
|
||||||
* Fri Feb 11 2022 wangxiyuan <wangxiyuan1007@gmail.com> - 1.1.8-2
|
* Fri Feb 11 2022 wangxiyuan <wangxiyuan1007@gmail.com> - 1.1.8-2
|
||||||
- Remove nose BuildRequire
|
- Remove nose BuildRequire
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user