|
|
618f3a0 |
# set upstream name variable
|
|
|
618f3a0 |
%global srcname slixmpp
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
Name: python-slixmpp
|
|
|
10f6267 |
Version: 1.4.0
|
|
|
91cac9f |
Release: 4%{?dist}
|
|
|
10f6267 |
Summary: Slixmpp is an XMPP library for Python 3.5+
|
|
|
618f3a0 |
|
|
|
618f3a0 |
License: MIT
|
|
|
618f3a0 |
URL: https://github.com/poezio/%{srcname}
|
|
|
618f3a0 |
Source0: https://github.com/poezio/%{srcname}/archive/slix-%{version}/%{name}-%{version}.tar.gz
|
|
|
618f3a0 |
|
|
|
618f3a0 |
BuildRequires: python3-devel
|
|
|
618f3a0 |
BuildRequires: python3-Cython
|
|
|
201515b |
BuildRequires: gcc
|
|
|
618f3a0 |
BuildRequires: libidn-devel
|
|
|
618f3a0 |
# for docs
|
|
|
618f3a0 |
BuildRequires: python2-sphinx
|
|
|
618f3a0 |
# for tests
|
|
|
29003ee |
#BuildRequires: gnupg
|
|
|
618f3a0 |
Requires: python3-pyasn1-modules
|
|
|
e87f54b |
Requires: python3-aiodns
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%description
|
|
|
10f6267 |
Slixmpp is an MIT licensed XMPP library for Python 3.5+. It is a fork
|
|
|
618f3a0 |
of SleekXMPP. Goals is to only rewrite the core of the library (the low
|
|
|
618f3a0 |
level socket handling, the timers, the events dispatching) in order to
|
|
|
618f3a0 |
remove all threads.
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%package -n python3-%{srcname}
|
|
|
10f6267 |
Summary: Slixmpp is an XMPP library for Python 3.5+
|
|
|
618f3a0 |
Requires: python3-pyasn1-modules
|
|
|
e87f54b |
Requires: python3-aiodns
|
|
|
618f3a0 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%description -n python3-%{srcname}
|
|
|
10f6267 |
Slixmpp is an MIT licensed XMPP library for Python 3.5+. It is a fork
|
|
|
618f3a0 |
of SleekXMPP. Goals is to only rewrite the core of the library (the low
|
|
|
618f3a0 |
level socket handling, the timers, the events dispatching) in order to
|
|
|
618f3a0 |
remove all threads.
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%package -n python-%{srcname}-doc
|
|
|
618f3a0 |
Summary: Documentation for Slixmpp
|
|
|
618f3a0 |
BuildArch: noarch
|
|
|
618f3a0 |
Requires: python3-%{srcname}
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%description -n python-%{srcname}-doc
|
|
|
618f3a0 |
Slixmpp is an MIT licensed XMPP library for Python 3.4+. It is a fork
|
|
|
618f3a0 |
of SleekXMPP. Goals is to only rewrite the core of the library (the low
|
|
|
618f3a0 |
level socket handling, the timers, the events dispatching) in order to
|
|
|
618f3a0 |
remove all threads.
|
|
|
618f3a0 |
|
|
|
618f3a0 |
This package contains documentation in reST and HTML formats.
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%prep
|
|
|
e87f54b |
%autosetup -n %{srcname}-slix-%{version}
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%build
|
|
|
618f3a0 |
%py3_build
|
|
|
618f3a0 |
|
|
|
618f3a0 |
# Build sphinx documentation
|
|
|
618f3a0 |
pushd docs/
|
|
|
618f3a0 |
make html
|
|
|
618f3a0 |
popd # docs
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%install
|
|
|
618f3a0 |
%py3_install
|
|
|
618f3a0 |
|
|
|
618f3a0 |
# Install html docs
|
|
|
618f3a0 |
mkdir -p %{buildroot}%{_pkgdocdir}/
|
|
|
618f3a0 |
cp -pr docs/_build/html %{buildroot}%{_pkgdocdir}/
|
|
|
618f3a0 |
|
|
|
618f3a0 |
# Move sources
|
|
|
618f3a0 |
mv -f %{buildroot}%{_pkgdocdir}/html/_sources/ %{buildroot}%{_pkgdocdir}/rst/
|
|
|
618f3a0 |
|
|
|
618f3a0 |
# Remove buildinfo sphinx documentation
|
|
|
618f3a0 |
rm -rf %{buildroot}%{_pkgdocdir}/html/.buildinfo
|
|
|
618f3a0 |
|
|
|
618f3a0 |
# Fix non-standard modes (775)
|
|
|
618f3a0 |
chmod 755 %{buildroot}%{python3_sitearch}/%{srcname}/stringprep.cpython-*.so
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%check
|
|
|
29003ee |
# tests disabled
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%files -n python3-%{srcname}
|
|
|
618f3a0 |
%license LICENSE
|
|
|
618f3a0 |
%doc CONTRIBUTING.rst README.rst
|
|
|
618f3a0 |
# For arch-specific packages: sitearch
|
|
|
618f3a0 |
%{python3_sitearch}/%{srcname}-%{version}-*.egg-info/
|
|
|
618f3a0 |
%{python3_sitearch}/%{srcname}/
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%files -n python-%{srcname}-doc
|
|
|
618f3a0 |
%doc examples/
|
|
|
618f3a0 |
%{_pkgdocdir}/
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
|
|
|
618f3a0 |
%changelog
|
|
|
91cac9f |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-4
|
|
|
91cac9f |
- Rebuilt for Python 3.8
|
|
|
91cac9f |
|
|
|
6193c86 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
6193c86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6193c86 |
|
|
|
8aeb08b |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
8aeb08b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8aeb08b |
|
|
|
3a1fd57 |
* Sat Aug 18 2018 Florent Le Coz <louiz@louiz.org> - 1.4.0-1
|
|
|
3a1fd57 |
- Update to 1.4.0
|
|
|
3a1fd57 |
|
|
|
2b445ef |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-7
|
|
|
2b445ef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
2b445ef |
|
|
|
37a4e25 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-6
|
|
|
37a4e25 |
- Rebuilt for Python 3.7
|
|
|
37a4e25 |
|
|
|
29003ee |
* Sat Apr 28 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 1.3.0-5
|
|
|
29003ee |
- Disable tests in %%check section
|
|
|
29003ee |
|
|
|
e87f54b |
* Wed Apr 25 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 1.3.0-4
|
|
|
e87f54b |
- Add Requires python3-aiodns
|
|
|
e87f54b |
- Remove Patch0 remove-aiodns-dependancy
|
|
|
e87f54b |
|
|
|
618f3a0 |
* Wed Apr 18 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 1.3.0-3
|
|
|
618f3a0 |
- Fix file ownership in doc subpackage
|
|
|
618f3a0 |
- Add Requires python3-pyasn1-modules in python3 subpackage
|
|
|
618f3a0 |
|
|
|
618f3a0 |
* Mon Apr 2 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 1.3.0-2
|
|
|
618f3a0 |
- Rename main package to python-slixmpp
|
|
|
618f3a0 |
- Cleanup specfile
|
|
|
618f3a0 |
- Replace build and install commands with %%py3_build and %%py3_install
|
|
|
618f3a0 |
- Split in python3 subpackage
|
|
|
618f3a0 |
- Split in doc subpackage
|
|
|
618f3a0 |
|
|
|
618f3a0 |
* Sun Apr 1 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 1.3.0-1
|
|
|
618f3a0 |
- Initial package
|