Upgrade package to version 2.0.1

This commit is contained in:
Gzx1999 2022-09-27 11:24:35 +08:00
parent aedef3cef1
commit dda6c4d665
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 Name: python-lexicon
Version: 1.0.0 Version: 2.0.1
Release: 16 Release: 1
Summary: Powerful dict subclass(es) with aliasing and attribute access Summary: Powerful dict subclass(es) with aliasing and attribute access
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/bitprophet/lexicon 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 BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
%description %description
Lexicon is a simple collection of dict sub-classes providing extra power. Lexicon is a simple collection of dict sub-classes providing extra power.
%package -n python3-lexicon %package -n python3-lexicon
Summary: Powerful dict subclass(es) with aliasing and attribute access Summary: Powerful dict subclass(es) with aliasing & attribute access
%{?python_provide:%python_provide python3-lexicon} Provides: python-lexicon
Requires: python3-six BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
%description -n python3-lexicon %description -n python3-lexicon
Lexicon is a simple collection of dict sub-classes providing extra power. 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 %prep
%setup -q -n lexicon-%{version} %autosetup -n lexicon-%{version}
%build %build
%py3_build %py3_build
%install %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 .
%files -n python3-lexicon %files -n python3-lexicon -f filelist.lst
%license LICENSE %dir %{python3_sitelib}/*
%doc CHANGES README.md
%{python3_sitelib}/lexicon/ %files help -f doclist.lst
%{python3_sitelib}/lexicon-%{version}-*.egg-info/ %{_docdir}/*
%changelog %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 * Wed May 11 2022 houyingchao <houyingchao@h-partners.com> - 1.0.0-16
- License compliance rectification - 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 * Mon Dec 01 2014 Athmane Madjoudj <athmane@fedoraproject.org> - 0.2.0-1
- Initial spec - Initial spec