Compare commits
10 Commits
da640b4981
...
9ffb5927ef
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ffb5927ef | ||
|
|
ee82f00513 | ||
|
|
bbceef6d27 | ||
|
|
aa73461158 | ||
|
|
1899f0c25c | ||
|
|
ff4a130ed8 | ||
|
|
2bf7f6d82c | ||
|
|
3582034be7 | ||
|
|
6a2c9cf3f3 | ||
|
|
db12b23486 |
@ -1,78 +1,96 @@
|
|||||||
%global with_tests 0%{?_with_tests:0}
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-semantic_version
|
Name: python-semantic_version
|
||||||
Version: 2.6.0
|
Version: 2.10.0
|
||||||
Release: 9
|
Release: 1
|
||||||
Summary: Plugin for implementing the semantic version
|
Summary: Plugin for implementing the semantic version
|
||||||
License: BSD
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/rbarrois/python-semanticversion
|
URL: https://github.com/rbarrois/python-semanticversion
|
||||||
Source0: https://github.com/rbarrois/python-semanticversion/archive/v%{version}/semantic_version-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/7d/31/f2289ce78b9b473d582568c234e104d2a342fd658cc288a7553d83bb8595/semantic_version-2.10.0.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This small python library provides a few tools to handle semantic versioning in Python.
|
This small python library provides a few tools to handle semantic versioning in Python.
|
||||||
|
|
||||||
%package -n python2-semantic_version
|
%package -n python3-semantic_version
|
||||||
Summary: Plugin for implementing the semantic version
|
Summary: Plugin for implementing the semantic version
|
||||||
BuildRequires: python2-devel python2-setuptools
|
Provides: python-semantic_version
|
||||||
Provides: python-semantic-version
|
# Base build requires
|
||||||
%{?python_provide:%python_provide python2-semantic_version}
|
BuildRequires: python3-devel python3-pytest
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
%description -n python2-semantic_version
|
BuildRequires: python3-pbr
|
||||||
This small python library provides a few tools to handle semantic versioning in Python.
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
%package -n python3-semantic_version
|
|
||||||
Summary: Plugin for implementing the semantic version
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
|
||||||
%{?python_provide:%python_provide python3-semantic_version}
|
|
||||||
|
|
||||||
%description -n python3-semantic_version
|
%description -n python3-semantic_version
|
||||||
This small python library provides a few tools to handle semantic versioning in Python.
|
This small python library provides a few tools to handle semantic versioning in Python.
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Documentation for python-semantic_version
|
Summary: Documentation for python-semantic_version
|
||||||
BuildRequires: python-sphinx
|
BuildRequires: python3-sphinx
|
||||||
Provides: python-semantic_version-doc = %{version}-%{release}
|
Provides: python3-semantic_version-doc
|
||||||
Obsoletes: python-semantic_version-doc < %{version}-%{release}
|
|
||||||
|
|
||||||
%description help
|
%description help
|
||||||
Plugin for implementing the semantic version.
|
This small python library provides a few tools to handle semantic versioning in Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n python-semanticversion-%{version}
|
%autosetup -n semantic_version-%{version}
|
||||||
rm -rf semantic_version.egg-info
|
|
||||||
rm docs/credits.rst
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
sphinx-build docs html
|
|
||||||
rm -rf html/.{doctrees,buildinfo}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with_tests}
|
/usr/bin/pytest
|
||||||
%{__python2} setup.py test
|
|
||||||
%{__python3} setup.py test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python2-semantic_version
|
%files -n python3-semantic_version -f filelist.lst
|
||||||
%license LICENSE
|
%dir %{python3_sitelib}/*
|
||||||
%{python2_sitelib}/semantic_version*/
|
|
||||||
|
|
||||||
%files -n python3-semantic_version
|
%files help -f doclist.lst
|
||||||
%license LICENSE
|
%{_docdir}/*
|
||||||
%{python3_sitelib}/semantic_version*/
|
|
||||||
|
|
||||||
%files help
|
|
||||||
%license LICENSE
|
|
||||||
%doc html
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 10 2023 liyanan <thistleslyn@163.com> - 2.10.0-1
|
||||||
|
- Upgrade package to version 2.10.0
|
||||||
|
|
||||||
|
* Fri Jun 17 2022 liukuo <liukuo@kylinos.cn> - 2.8.5-2
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
|
* Fri Aug 06 2021 OpenStack_SIG <openstack@openeuler.org> - 2.8.5-1
|
||||||
|
- Upgrade version to 2.8.5
|
||||||
|
|
||||||
|
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 2.6.0-10
|
||||||
|
- remove python2 subpackage
|
||||||
|
|
||||||
* Mon Jan 13 2020 Lei Zhang <ricky.z@huawei.com> - 2.6.0-9
|
* Mon Jan 13 2020 Lei Zhang <ricky.z@huawei.com> - 2.6.0-9
|
||||||
- remove django build depend
|
- remove django build depend
|
||||||
|
|
||||||
* Tue Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-8
|
* Thu Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-8
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
semantic_version-2.10.0.tar.gz
Normal file
BIN
semantic_version-2.10.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user