!7 Update package

From: @liqiuyu123 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-12-07 08:16:57 +00:00 committed by Gitee
commit 7f18ce7781
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 53 additions and 23 deletions

Binary file not shown.

BIN
blinker-1.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-blinker Name: python-blinker
Version: 1.4 Version: 1.5
Release: 6 Release: 1
Summary: A powerful signal lib based on Python Summary: A powerful signal lib based on Python
License: MIT License: MIT
URL: https://pythonhosted.org/blinker/ URL: https://pythonhosted.org/blinker/
Source0: https://pypi.python.org/packages/source/b/blinker/blinker-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/2b/12/82786486cefb68685bb1c151730f510b0f4e5d621d77f245bc0daf9a6c64/blinker-1.5.tar.gz
BuildRequires: python3-devel python3-setuptools
BuildArch: noarch BuildArch: noarch
%description %description
@ -16,36 +14,68 @@ and multicasting for python object.The core of blinker is minimal but provides
quite powerful features. quite powerful features.
%package -n python3-blinker %package -n python3-blinker
Summary: A powerful signal lib based on Python3 Summary: A powerful signal lib based on Python
%{?python_provide:%python_provide python3-blinker} Provides: python-blinker = %{version}-%{release}
BuildRequires: python3-devel python3-setuptools
%description -n python3-blinker %description -n python3-blinker
Blinker is a signal lib based on Python.It supports both object-to-object Blinker is a signal lib based on Python.It supports both object-to-object
and multicasting for python object.The core of blinker is minimal but provides and multicasting for python object.The core of blinker is minimal but provides
quite powerful features. quite powerful features.
%prep %package help
%autosetup -n blinker-%{version} -p1 Summary: Development documents and examples for blinker
Provides: python3-blinker-doc
rm -rf %{py3dir} %description help
cp -a . %{py3dir} Blinker is a signal lib based on Python.It supports both object-to-object
and multicasting for python object.The core of blinker is minimal but provides
quite powerful features.
%prep
%autosetup -n blinker-%{version}
%build %build
cd %{py3dir} %py3_build
%{__python3} setup.py build
cd -
%install %install
cd %{py3dir} %py3_install
%{__python3} setup.py install -O1 --root $RPM_BUILD_ROOT --skip-build install -d -m755 %{buildroot}/%{_pkgdocdir}
cd - 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-blinker %files -n python3-blinker -f filelist.lst
%doc docs/ CHANGES LICENSE README.md PKG-INFO %dir %{python3_sitelib}/*
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/blinker %files help -f doclist.lst
%{_docdir}/*
%changelog %changelog
* Fri Nov 18 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.5-1
- Update package to version 1.5
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.4-6 * Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.4-6
- Remove subpackage python2-blinker - Remove subpackage python2-blinker