]> git.pld-linux.org Git - packages/python-sleekxmpp.git/commitdiff
new, version 1.1.11
authorElan Ruusamäe <glen@delfi.ee>
Sat, 11 May 2013 21:15:38 +0000 (00:15 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 11 May 2013 21:59:02 +0000 (00:59 +0300)
based on fedora package
f2d2173b30b9397d83234cae225ca68858c45977

python-sleekxmpp.spec [new file with mode: 0644]

diff --git a/python-sleekxmpp.spec b/python-sleekxmpp.spec
new file mode 100644 (file)
index 0000000..825fb49
--- /dev/null
@@ -0,0 +1,108 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  sleekxmpp
+Summary:       Flexible XMPP client/component/server library for Python
+Name:          python-%{module}
+Version:       1.1.11
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+Source0:       http://pypi.python.org/packages/source/s/sleekxmpp/%{module}-%{version}.tar.gz
+# Source0-md5: 95f847b64fb84483acfadce425fe42cf
+URL:           https://github.com/fritzy/SleekXMPP
+BuildRequires: python-devel
+BuildRequires: python3-devel
+BuildRequires: rpmbuild(macros) >= 1.219
+%if %{with tests}
+BuildRequires: gnupg
+%endif
+Requires:      python-dns
+Requires:      python-pyasn1
+Requires:      python-pyasn1_modules
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SleekXMPP is a flexible XMPP library for python that allows you to
+create clients, components or servers for the XMPP protocol. Plug-ins
+can be create to cover every current or future XEP.
+
+%package -n python3-sleekxmpp
+Summary:       Flexible XMPP client/component/server library for Python
+Group:         Libraries/Python
+Requires:      python3-dns
+
+%description -n python3-sleekxmpp
+SleekXMPP is a flexible XMPP library for python that allows you to
+create clients, components or servers for the XMPP protocol. Plug-ins
+can be create to cover every current or future XEP.
+
+%prep
+%setup -q -n %{module}-%{version}
+set -- *
+install -d py3
+cp -a "$@" py3
+
+%build
+%{__python} setup.py build
+cd py3
+%{__python3} setup.py build
+cd ..
+
+%if %{with tests}
+%{__python} testall.py
+cd py3
+%{__python3} testall.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --skip-build \
+       --root $RPM_BUILD_ROOT
+
+%py_postclean
+
+cd py3
+%{__python3} setup.py install \
+       --optimize=2 \
+       --skip-build \
+       --root $RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/sleekxmpp/test
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/sleekxmpp/test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%dir %{py_sitescriptdir}/sleekxmpp
+%{py_sitescriptdir}/sleekxmpp/*.py[co]
+%{py_sitescriptdir}/sleekxmpp-%{version}-*.egg-info
+%{py_sitescriptdir}/sleekxmpp/features
+%{py_sitescriptdir}/sleekxmpp/plugins
+%{py_sitescriptdir}/sleekxmpp/roster
+%{py_sitescriptdir}/sleekxmpp/stanza
+%{py_sitescriptdir}/sleekxmpp/thirdparty
+%{py_sitescriptdir}/sleekxmpp/util
+%{py_sitescriptdir}/sleekxmpp/xmlstream
+
+%files -n python3-sleekxmpp
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%dir %{py3_sitescriptdir}/sleekxmpp
+%{py3_sitescriptdir}/sleekxmpp/*.py
+%{py3_sitescriptdir}/sleekxmpp/__pycache__
+%{py3_sitescriptdir}/sleekxmpp/features
+%{py3_sitescriptdir}/sleekxmpp/plugins
+%{py3_sitescriptdir}/sleekxmpp/roster
+%{py3_sitescriptdir}/sleekxmpp/stanza
+%{py3_sitescriptdir}/sleekxmpp/thirdparty
+%{py3_sitescriptdir}/sleekxmpp/util
+%{py3_sitescriptdir}/sleekxmpp/xmlstream
+%{py3_sitescriptdir}/sleekxmpp-%{version}-*.egg-info
This page took 0.150231 seconds and 4 git commands to generate.