!6 Upgrade package to version 2.0.1

From: @Gzx1999 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-09-28 00:25:54 +00:00 committed by Gitee
commit 0469029f07
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 49 additions and 19 deletions

Binary file not shown.

BIN
lexicon-2.0.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,44 +1,75 @@
%global srcname lexicon
%global _empty_manifest_terminate_build 0
Name: python-lexicon
Version: 1.0.0
Release: 16
Version: 2.0.1
Release: 1
Summary: Powerful dict subclass(es) with aliasing and attribute access
License: BSD-3-Clause
URL: https://github.com/bitprophet/lexicon
Source0: https://github.com/bitprophet/lexicon/archive/%{version}/lexicon-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/81/30/9ffe4cd08882379174f7dc2f70a5d67c15760a180b8789db9842cbad4ef7/lexicon-2.0.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
%description
Lexicon is a simple collection of dict sub-classes providing extra power.
%package -n python3-lexicon
Summary: Powerful dict subclass(es) with aliasing and attribute access
%{?python_provide:%python_provide python3-lexicon}
Requires: python3-six
Summary: Powerful dict subclass(es) with aliasing & attribute access
Provides: python-lexicon
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
%description -n python3-lexicon
Lexicon is a simple collection of dict sub-classes providing extra power.
%package help
Summary: Development documents and examples for lexicon
Provides: python3-lexicon-doc
%description help
Lexicon is a simple collection of dict sub-classes providing extra power.
%prep
%setup -q -n lexicon-%{version}
%autosetup -n lexicon-%{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
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 .
%files -n python3-lexicon
%license LICENSE
%doc CHANGES README.md
%{python3_sitelib}/lexicon/
%{python3_sitelib}/lexicon-%{version}-*.egg-info/
%files -n python3-lexicon -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Sep 27 2022 guozhengxin <guozhengxin@kylinos.cn> - 2.0.1-1
- Upgrade package to version 2.0.1
* Wed May 11 2022 houyingchao <houyingchao@h-partners.com> - 1.0.0-16
- License compliance rectification
@ -113,4 +144,3 @@ Lexicon is a simple collection of dict sub-classes providing extra power.
* Mon Dec 01 2014 Athmane Madjoudj <athmane@fedoraproject.org> - 0.2.0-1
- Initial spec