!5 Update package

From: @Wangjunqi123 
Reviewed-by: @yangzhao_kl, @xu-think-about-it 
Signed-off-by: @yangzhao_kl, @xu-think-about-it
This commit is contained in:
openeuler-ci-bot 2022-11-23 07:42:27 +00:00 committed by Gitee
commit ba6525c9a7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 58 additions and 39 deletions

BIN
nbxmpp-3.2.5.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,18 @@
%global modname nbxmpp %global _empty_manifest_terminate_build 0
%global sum Python library for non-blocking use of Jabber/XMPP %global sum Python library for non-blocking use of Jabber/XMPP
Name: python-%{modname} Name: python-nbxmpp
Version: 0.6.10 Version: 3.2.5
Release: 2%{?dist} Release: 1
Summary: %{sum} Summary: %{sum}
License: GPLv3 License: GPL-3.0-only
URL: https://dev.gajim.org/gajim/python-nbxmpp/ URL: https://dev.gajim.org/gajim/python-nbxmpp/
Source0: https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?ref=nbxmpp-%{version}#/%{name}-%{version}.tar.bz2 Source0: https://files.pythonhosted.org/packages/80/90/3dede782468b7e1512a992e7255e5ea32b870039ef26210e15482ad6cdba/nbxmpp-3.2.5.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel
Requires: python3-precis-i18n
Requires: python3-packaging
Requires: python3-idna
%global desc python-nbxmpp is a Python library that provides a way for Python applications\ %global desc python-nbxmpp is a Python library that provides a way for Python applications\
to use Jabber/XMPP networks in a non-blocking way.\ to use Jabber/XMPP networks in a non-blocking way.\
@ -26,49 +29,65 @@ Features:\
%description %description
%{desc} %{desc}
%package -n python3-%{modname} %package -n python3-nbxmpp
Summary: %{sum} Summary: %{sum}
Requires: python3-pyOpenSSL
Requires: python3-gobject-base
Recommends: python3-kerberos Recommends: python3-kerberos
%{?python_provide:%python_provide python3-%{modname}} Provides: python-nbxmpp = %{version}-%{release}
BuildRequires: python3-devel
%description -n python3-%{modname} BuildRequires: python3-setuptools
%description -n python3-nbxmpp
%{desc} %{desc}
%package doc %package help
Summary: Developer documentation for %{name} Summary: Development documents and examples for nbxmpp
Provides: python3-nbxmpp-doc
%description doc %description help
%{desc} %{desc}
This sub-package contains the developer documentation for python-nbxmpp.
%prep %prep
# The upstream gitlab generates tarballs with path prefixes including the git %autosetup -n nbxmpp-%{version}
# commit hash. Make the path predictable by stripping the leading component.
%setup -T -c %{name}-%{version}
tar -xo --strip-components=1 -f %{SOURCE0}
%build %build
# let's have no executable files in doc/ %py3_build
find doc/ -type f -perm /111 -exec chmod -x {} +
%{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-%{modname} %files -n python3-nbxmpp -f filelist.lst
%license COPYING %dir %{python3_sitelib}/*
%doc README ChangeLog
%{python3_sitelib}/%{modname}
%{python3_sitelib}/%{modname}-%{version}-*.egg-info
%files doc %files help -f doclist.lst
%license COPYING %{_docdir}/*
%doc doc/*
%changelog %changelog
* Tue Nov 22 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.2.5-1
- Update package to version 3.2.5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-2 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild