Upgrade packagei version to 0.12.1 for OpenStack Wallaby support

(cherry picked from commit 0b8e1694a62b89e6909a52360eef0fd443a885b9)
This commit is contained in:
sean-lau 2021-08-03 17:40:59 +08:00 committed by openeuler-sync-bot
parent f0e7867058
commit 7ccc397acd
3 changed files with 38 additions and 31 deletions

View File

@ -1,45 +1,46 @@
%global _empty_manifest_terminate_build 0
Name: python-voluptuous
Version: 0.12.0
Release: 1
Summary: python-voluptuous
License: BSD 3-Clause
URL: https://github.com/alecthomas/voluptuous
Source0: https://files.pythonhosted.org/packages/04/87/015fc3ccaa2e4c1a1d427ec27b12c144027acf55bdcba53634a6b69b9314/voluptuous-0.12.0.tar.gz
BuildArch: noarch
Name: python-voluptuous
Version: 0.12.1
Release: 1
Summary: A Python data validation library
License: BSD 3-Clause
URL: https://github.com/alecthomas/voluptuous
Source0: https://files.pythonhosted.org/packages/17/0d/6e1e3ab6653720903efd7f644cc5be839d59ceb396143c08c1bebeab080b/voluptuous-0.12.1.tar.gz
BuildArch: noarch
%description
Voluptuous, despite the name, is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc.
Voluptuous, despite the name, is a Python data validation library.
It is primarily intended for validating data coming into Python as
JSON, YAML, etc.
%package -n python3-voluptuous
Provides: python-voluptuous
Summary: python-voluptuous
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Summary: A Python data validation library
Provides: python-voluptuous
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
%description -n python3-voluptuous
Voluptuous, despite the name, is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc.
Voluptuous, despite the name, is a Python data validation library.
It is primarily intended for validating data coming into Python as
JSON, YAML, etc.
%package help
Summary: Development documents and examples for voluptuous
Provides: python3-voluptuous-doc
Summary: A Python data validation library
Provides: python3-voluptuous-doc
%description help
Voluptuous, despite the name, is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc.
Voluptuous, despite the name, is a Python data validation library.
It is primarily intended for validating data coming into Python as
JSON, YAML, etc.
%prep
%autosetup -n voluptuous-0.12.0
%autosetup -n voluptuous-%{version}
%build
%py3_build
%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
@ -47,25 +48,28 @@ 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
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
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
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
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
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
nosetests-3
%files -n python3-voluptuous -f filelist.lst
%dir %{python3_sitelib}/*
@ -73,5 +77,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
- Upgrade version to 0.12.1
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated

Binary file not shown.

BIN
voluptuous-0.12.1.tar.gz Normal file

Binary file not shown.