2020-01-12 21:09:36 -05:00
|
|
|
%global with_tests 0%{?_with_tests:0}
|
|
|
|
|
Name: python-semantic_version
|
|
|
|
|
Version: 2.6.0
|
2020-10-29 14:56:59 +08:00
|
|
|
Release: 10
|
2020-01-12 21:09:36 -05:00
|
|
|
Summary: Plugin for implementing the semantic version
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/rbarrois/python-semanticversion
|
|
|
|
|
Source0: https://github.com/rbarrois/python-semanticversion/archive/v%{version}/semantic_version-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This small python library provides a few tools to handle semantic versioning in Python.
|
|
|
|
|
|
|
|
|
|
%package -n python3-semantic_version
|
|
|
|
|
Summary: Plugin for implementing the semantic version
|
2020-01-13 09:07:27 -05:00
|
|
|
BuildRequires: python3-devel python3-setuptools
|
2020-01-12 21:09:36 -05:00
|
|
|
%{?python_provide:%python_provide python3-semantic_version}
|
|
|
|
|
|
|
|
|
|
%description -n python3-semantic_version
|
|
|
|
|
This small python library provides a few tools to handle semantic versioning in Python.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Documentation for python-semantic_version
|
2020-10-29 14:56:59 +08:00
|
|
|
BuildRequires: python3-sphinx
|
2020-01-12 21:09:36 -05:00
|
|
|
Provides: python-semantic_version-doc = %{version}-%{release}
|
|
|
|
|
Obsoletes: python-semantic_version-doc < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Plugin for implementing the semantic version.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n python-semanticversion-%{version}
|
|
|
|
|
rm -rf semantic_version.egg-info
|
|
|
|
|
rm docs/credits.rst
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
2020-10-29 14:56:59 +08:00
|
|
|
sphinx-build-%{python3_version} docs html
|
2020-01-12 21:09:36 -05:00
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with_tests}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-semantic_version
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/semantic_version*/
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-10-29 14:56:59 +08:00
|
|
|
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 2.6.0-10
|
|
|
|
|
- remove python2 subpackage
|
|
|
|
|
|
2020-01-13 09:28:43 -05:00
|
|
|
* Mon Jan 13 2020 Lei Zhang <ricky.z@huawei.com> - 2.6.0-9
|
|
|
|
|
- remove django build depend
|
2020-01-12 21:09:36 -05:00
|
|
|
|
2020-01-13 09:28:43 -05:00
|
|
|
* Tue Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-8
|
|
|
|
|
- Package init
|