Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
e61d6780d4
!11 【轻量级PR】修正changelog中的错误日期
From: @konglidong 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-20 06:15:52 +00:00
konglidong
a8174eacbd modify bogus date in changelog 2022-06-20 10:37:57 +08:00
openeuler-ci-bot
2bf7f6d82c !6 upgrade version to 2.8.5 for python-semantic_version
From: @yaozc701
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-08-09 00:59:28 +00:00
yaozc701
3582034be7 upgrade version to 2.8.5 2021-08-07 14:15:44 +08:00
openeuler-ci-bot
6a2c9cf3f3 !5 remove python2 of package python-semantic_version
From: @zhanghua1831
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 10:09:38 +08:00
zhanghua
db12b23486 remove python2 of package python-semantic_version 2020-10-29 14:56:59 +08:00
openeuler-ci-bot
da640b4981 !4 python-semantic_version
Merge pull request !4 from wangef/master
2020-05-19 14:50:28 +08:00
wwx913452
763617b44e added python-semantic_version.yaml 2020-05-07 16:25:39 +08:00
openeuler-ci-bot
6ce2e8696a !2 remove django
Merge pull request !2 from ricky.z/master
2020-01-13 22:31:40 +08:00
z00330046
e228f70f8d modify 2020-01-13 09:28:43 -05:00
openeuler-ci-bot
c9c9909449 !1 initial pull request for python-semantic_version
Merge pull request !1 from ricky.z/master
2020-01-13 14:53:38 +08:00
4 changed files with 60 additions and 42 deletions

View File

@ -1,76 +1,90 @@
%global with_tests 0%{?_with_tests:0}
%global _empty_manifest_terminate_build 0
Name: python-semantic_version
Version: 2.6.0
Release: 8
Version: 2.8.5
Release: 1
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
Source0: https://files.pythonhosted.org/packages/d4/52/3be868c7ed1f408cb822bc92ce17ffe4e97d11c42caafce0589f05844dd0/semantic_version-2.8.5.tar.gz
BuildArch: noarch
%description
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
BuildRequires: python2-devel python2-setuptools
Provides: python-semantic-version
%{?python_provide:%python_provide python2-semantic_version}
%description -n python2-semantic_version
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
BuildRequires: python3-devel python3-setuptools
%{?python_provide:%python_provide python3-semantic_version}
Provides: python-semantic_version
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
%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
BuildRequires: python-sphinx
Provides: python-semantic_version-doc = %{version}-%{release}
Obsoletes: python-semantic_version-doc < %{version}-%{release}
BuildRequires: python3-sphinx
Provides: python3-semantic_version-doc
%description help
Plugin for implementing the semantic version.
This small python library provides a few tools to handle semantic versioning in Python.
%prep
%autosetup -n python-semanticversion-%{version}
rm -rf semantic_version.egg-info
rm docs/credits.rst
%autosetup -n semantic_version-%{version}
%build
%py2_build
%py3_build
sphinx-build docs html
rm -rf html/.{doctrees,buildinfo}
%install
%py2_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
%if %{with_tests}
%{__python2} setup.py test
%{__python3} setup.py test
%endif
%files -n python2-semantic_version
%license LICENSE
%{python2_sitelib}/semantic_version*/
%files -n python3-semantic_version -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-semantic_version
%license LICENSE
%{python3_sitelib}/semantic_version*/
%files help
%license LICENSE
%doc html
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-4
- Package init
* 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
- remove django build depend
* Thu Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-8
- Package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rbarrois/python-semanticversion
tag_prefix: ^v
seperator: .

Binary file not shown.

Binary file not shown.