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