2013-04-29 14:12:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-nbxmpp
|
|
|
|
|
#
|
2016-10-15 13:47:30 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-29 14:12:46 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2014-10-11 23:18:28 +00:00
|
|
|
|
|
|
|
|
%define _name nbxmpp
|
2013-04-29 14:12:46 +00:00
|
|
|
Name: python-nbxmpp
|
2016-10-15 13:47:30 +00:00
|
|
|
Version: 0.5.4
|
2013-05-19 17:35:39 +00:00
|
|
|
Release: 0
|
2013-04-29 14:12:46 +00:00
|
|
|
Summary: XMPP library by Gajim team
|
2014-10-11 23:18:28 +00:00
|
|
|
License: GPL-3.0+
|
2014-10-17 16:04:48 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-10-15 13:47:30 +00:00
|
|
|
Url: https://python-nbxmpp.gajim.org/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/n/%{_name}/%{_name}-%{version}.tar.gz
|
2013-04-29 14:12:46 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-10-15 13:47:30 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2013-04-29 14:12:46 +00:00
|
|
|
BuildArch: noarch
|
2016-10-15 13:47:30 +00:00
|
|
|
%else
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
|
%py_requires
|
2015-09-03 11:39:29 +00:00
|
|
|
%endif
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python-nbxmpp is a Python library that provides a way for Python
|
|
|
|
|
applications to use Jabber/XMPP networks in a non-blocking way. This
|
|
|
|
|
library is initialy a fork of xmpppy one, but using non-blocking sockets.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Nbxmpp Documentation
|
2015-07-21 07:18:22 +00:00
|
|
|
Group: Documentation/Other
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This packages provides documentation of Nbxmpp API.
|
|
|
|
|
|
|
|
|
|
%prep
|
2014-10-11 23:18:28 +00:00
|
|
|
%setup -q -n %{_name}-%{version}
|
2016-10-15 13:47:30 +00:00
|
|
|
rm doc/examples/*.orig
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2014-10-17 16:04:48 +00:00
|
|
|
python setup.py build
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%install
|
2016-10-15 13:47:30 +00:00
|
|
|
python setup.py install \
|
|
|
|
|
--root %{buildroot} --prefix=%{_prefix}
|
2014-10-11 23:18:28 +00:00
|
|
|
%fdupes %{buildroot}
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2013-08-22 14:38:55 +00:00
|
|
|
%doc COPYING
|
2014-10-11 23:18:28 +00:00
|
|
|
%{python_sitelib}/%{_name}/
|
|
|
|
|
%{python_sitelib}/%{_name}-*
|
2013-04-29 14:12:46 +00:00
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root)
|
2015-01-10 13:37:02 +00:00
|
|
|
%doc ChangeLog README
|
|
|
|
|
%doc doc/apidocs doc/examples
|
2013-05-19 17:35:39 +00:00
|
|
|
|
|
|
|
|
%changelog
|