upgrade version to 4.1.0

This commit is contained in:
yaozc701 2021-07-15 11:25:34 +08:00
parent 56917f3a14
commit 466b6bcb38
3 changed files with 50 additions and 31 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,47 +1,60 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-oslo-serialization Name: python-oslo-serialization
Version: 4.0.1 Version: 4.1.0
Release: 2 Release: 1
Summary: Oslo Serialization library Summary: Oslo Serialization library
License: Apache-2.0 License: Apache-2.0
URL: https://opendev.org/openstack/oslo.serialization URL: https://docs.openstack.org/oslo.serialization/latest/
Source0: https://files.pythonhosted.org/packages/bb/9e/1a2a571ec7879dcd1fe3719255ecaf0ff97d8a84c5d72a6df6e4033be684/oslo.serialization-4.0.1.tar.gz Source0: https://files.pythonhosted.org/packages/0a/85/9af1feeff44ee56868145674e0c2e6654e8ff2241c5bc178bb9539065c3d/oslo.serialization-4.1.0.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: python3-msgpack
Requires: python3-pbr
Requires: python3-pytz
%description %description
OpenStack library for serialization The oslo.serialization library provides support for representing objects in
transmittable and storable formats, such as Base64, JSON and MessagePack.
%package -n python3-oslo-serialization %package -n python3-oslo-serialization
Summary: Oslo Serialization library Summary: Oslo Serialization library
Provides: python-oslo-serialization Provides: python-oslo-serialization
BuildRequires: python3-devel # Base build requires
BuildRequires: python3-setuptools BuildRequires: python3-devel
BuildRequires: python3-pip BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
%description -n python3-oslo-serialization BuildRequires: python3-pip
OpenStack library for serialization BuildRequires: python3-wheel
# General requires
BuildRequires: python3-msgpack
BuildRequires: python3-oslo-utils
BuildRequires: python3-pytz
BuildRequires: python3-pytest
BuildRequires: python3-oslotest
BuildRequires: python3-fixtures
# General requires
Requires: python3-msgpack
Requires: python3-oslo-utils
Requires: python3-pbr
Requires: python3-pytz
%description -n python3-oslo-serialization
The oslo.serialization library provides support for representing objects in
transmittable and storable formats, such as Base64, JSON and MessagePack.
%package help %package help
Summary: Development documents and examples for oslo.serialization Summary: Oslo Serialization library
Provides: python3-oslo-serialization-doc Provides: python3-oslo-serialization-doc
%description help
OpenStack library for serialization
%description help
The oslo.serialization library provides support for representing objects in
transmittable and storable formats, such as Base64, JSON and MessagePack.
%prep %prep
%autosetup -n oslo.serialization-4.0.1 %autosetup -n oslo.serialization-4.1.0
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -49,32 +62,38 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot} pushd %{buildroot}
if [ -d usr/lib ]; then if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/lib64 ]; then if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/bin ]; then if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/sbin ]; then if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
touch doclist.lst touch doclist.lst
if [ -d usr/share/man ]; then if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi fi
popd popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%check
%{__python3} -m pytest
%files -n python3-oslo-serialization -f filelist.lst %files -n python3-oslo-serialization -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Thu Jul 15 2021 yaozc701 <yaozc7@foxmail.com> - 4.1.0-1
- Upgrade version to 4.1.0
* Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com> * Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com>
- Add buildrequires - Add buildrequires
* Fri Jan 08 2021 Python_Bot <Python_Bot@openeuler.org> * Fri Jan 08 2021 Python_Bot <Python_Bot@openeuler.org>