summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:54:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:54:17 +0000
commitbf18adde4a1f1f5e20382c6f43a4f115098193c6 (patch)
tree4a31a3cb01d9bf470430576df5c550bb02c9c244
parentbb782471f0ea9cdff9f5f2dadf12ab03b6cc9b69 (diff)
automatic import of python-slixmpp
-rw-r--r--.gitignore1
-rw-r--r--python-slixmpp.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6aa97b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/slixmpp-1.8.3.tar.gz
diff --git a/python-slixmpp.spec b/python-slixmpp.spec
new file mode 100644
index 0000000..f8baf1b
--- /dev/null
+++ b/python-slixmpp.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-slixmpp
+Version: 1.8.3
+Release: 1
+Summary: Slixmpp is an elegant Python library for XMPP (aka Jabber).
+License: MIT
+URL: https://lab.louiz.org/poezio/slixmpp
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/5a/a544c9279d49f497dd602548e3d70934de1809f9522d2ed36dbf5ae416ad/slixmpp-1.8.3.tar.gz
+BuildArch: noarch
+
+
+%description
+Slixmpp can make use of cython to improve performance on critical modules.
+To do that, **cython3** is necessary along with **libidn** headers.
+Otherwise, no compilation is needed. Building is done by running setup.py::
+ python3 setup.py build_ext --inplace
+
+%package -n python3-slixmpp
+Summary: Slixmpp is an elegant Python library for XMPP (aka Jabber).
+Provides: python-slixmpp
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-slixmpp
+Slixmpp can make use of cython to improve performance on critical modules.
+To do that, **cython3** is necessary along with **libidn** headers.
+Otherwise, no compilation is needed. Building is done by running setup.py::
+ python3 setup.py build_ext --inplace
+
+%package help
+Summary: Development documents and examples for slixmpp
+Provides: python3-slixmpp-doc
+%description help
+Slixmpp can make use of cython to improve performance on critical modules.
+To do that, **cython3** is necessary along with **libidn** headers.
+Otherwise, no compilation is needed. Building is done by running setup.py::
+ python3 setup.py build_ext --inplace
+
+%prep
+%autosetup -n slixmpp-1.8.3
+
+%build
+%py3_build
+
+%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-slixmpp -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..964eff8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7f60669c1905a78e2acd91faba89ef38 slixmpp-1.8.3.tar.gz