Compare commits
10 Commits
973993fb20
...
80f3d7a0ea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80f3d7a0ea | ||
|
|
ff77565fb0 | ||
|
|
be7642c4fc | ||
|
|
0cc383b1db | ||
|
|
a884c77432 | ||
|
|
6337a60546 | ||
|
|
f5d344a780 | ||
|
|
1c3e5142d6 | ||
|
|
1958fdfbb8 | ||
|
|
4b3ebf45c2 |
BIN
py-1.11.0.tar.gz
Normal file
BIN
py-1.11.0.tar.gz
Normal file
Binary file not shown.
BIN
py-1.5.4.tar.gz
BIN
py-1.5.4.tar.gz
Binary file not shown.
@ -1,18 +1,17 @@
|
|||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
%global with_help 1
|
|
||||||
%global modname py
|
%global modname py
|
||||||
%global modnameversion %{modname}-%{version}
|
%global modnameversion %{modname}-%{version}
|
||||||
%global p2builddir python2tmp
|
%global p2builddir python2tmp
|
||||||
%global p3builddir python3tmp
|
%global p3builddir python3tmp
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.5.4
|
Version: 1.11.0
|
||||||
Release: 5
|
Release: 2
|
||||||
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
||||||
License: MIT and Public Domain
|
License: MIT and Public Domain
|
||||||
URL: http://pylib.readthedocs.io/en/stable/
|
URL: http://pylib.readthedocs.io/en/stable/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modnameversion}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/98/ff/fec109ceb715d2a6b4c4a85a61af3b40c723a961e8828319fbcb15b868dc/py-1.11.0.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
@ -34,9 +33,6 @@ following tools and modules:\
|
|||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
||||||
%if 0%{?with_help}
|
|
||||||
BuildRequires: %{_bindir}/sphinx-build-3
|
|
||||||
%endif
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3-pytest >= 2.9.0, python3-pytest < 2.10
|
BuildRequires: python3-pytest >= 2.9.0, python3-pytest < 2.10
|
||||||
%endif
|
%endif
|
||||||
@ -48,10 +44,7 @@ Obsoletes: platform-python-%{modname} < %{version}-%{release}
|
|||||||
%description -n python3-%{modname}
|
%description -n python3-%{modname}
|
||||||
%{_description}
|
%{_description}
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_help}
|
|
||||||
%package_help
|
%package_help
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -n %{modnameversion}
|
%autosetup -c -n %{modnameversion}
|
||||||
@ -66,15 +59,11 @@ mv %{modnameversion} %{p3builddir}
|
|||||||
%build
|
%build
|
||||||
pushd %{p3builddir}
|
pushd %{p3builddir}
|
||||||
%py3_build
|
%py3_build
|
||||||
%if 0%{?with_help}
|
|
||||||
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
|
|
||||||
%endif
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd %{p3builddir}
|
pushd %{p3builddir}
|
||||||
%py3_install
|
%py3_install
|
||||||
rm -rf doc/_build/html/.buildinfo
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -90,15 +79,21 @@ popd
|
|||||||
%{python3_sitelib}/py-*.egg-info/
|
%{python3_sitelib}/py-*.egg-info/
|
||||||
%{python3_sitelib}/py/
|
%{python3_sitelib}/py/
|
||||||
|
|
||||||
%if 0%{?with_help}
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{p3builddir}/CHANGELOG
|
%doc %{p3builddir}/CHANGELOG.rst
|
||||||
%doc %{p3builddir}/README.rst
|
%doc %{p3builddir}/README.rst
|
||||||
%doc %{p3builddir}/doc/_build/html
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 10 202 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.5.4-5
|
* Thu Jul 21 2022 wulei <wulei80@h-partners.com> - 1.11.0-2
|
||||||
|
- Sphinx 4.4.x causes python-py to fail to be compiled, so remove doc from python-py
|
||||||
|
|
||||||
|
* Wed Dec 15 2021 shixuantong <shixuantong@huawei.com> - 1.11.0-1
|
||||||
|
- update version to 1.11.0
|
||||||
|
|
||||||
|
* Thu Jul 15 2021 OpenStack_SIG <openstack@openeuler.org> - 1.10.0-1
|
||||||
|
- Update version to 1.10.0
|
||||||
|
|
||||||
|
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.5.4-5
|
||||||
- Remove python2
|
- Remove python2
|
||||||
|
|
||||||
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1.5.4-4
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1.5.4-4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user