summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 06:58:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 06:58:30 +0000
commit66cd7619779760bd295b35086e7b9ad616b66522 (patch)
tree6937828f810dcf549c5cd970c3b92cc67fe9c394
parente49fbdb8480f7dc1ea39a231d0835b8bae4ffc38 (diff)
automatic import of python-wsdiscoveryopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-wsdiscovery.spec83
-rw-r--r--sources1
3 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4021e01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/WSDiscovery-2.0.0.tar.gz
diff --git a/python-wsdiscovery.spec b/python-wsdiscovery.spec
new file mode 100644
index 0000000..d1ff458
--- /dev/null
+++ b/python-wsdiscovery.spec
@@ -0,0 +1,83 @@
+%global _empty_manifest_terminate_build 0
+Name: python-WSDiscovery
+Version: 2.0.0
+Release: 1
+Summary: WS-Discovery implementation for python
+License: GNU Lesser General Public License v3 or later (LGPLv3+)
+URL: https://github.com/andreikop/python-ws-discovery.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/ae/d9055527b2e49232bbcca175c091aee82a4ba27ee137e33cf9f2f21fb3cd/WSDiscovery-2.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-netifaces
+Requires: python3-click
+
+%description
+This is WS-Discovery implementation for Python 3. It allows to both discover
+services and publish discoverable services. For Python 2 support, use the latest 1.x version
+of this package.
+Extensive [package documentation is available at ReadTheDocs](https://python-ws-discovery.readthedocs.io).
+
+%package -n python3-WSDiscovery
+Summary: WS-Discovery implementation for python
+Provides: python-WSDiscovery
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-WSDiscovery
+This is WS-Discovery implementation for Python 3. It allows to both discover
+services and publish discoverable services. For Python 2 support, use the latest 1.x version
+of this package.
+Extensive [package documentation is available at ReadTheDocs](https://python-ws-discovery.readthedocs.io).
+
+%package help
+Summary: Development documents and examples for WSDiscovery
+Provides: python3-WSDiscovery-doc
+%description help
+This is WS-Discovery implementation for Python 3. It allows to both discover
+services and publish discoverable services. For Python 2 support, use the latest 1.x version
+of this package.
+Extensive [package documentation is available at ReadTheDocs](https://python-ws-discovery.readthedocs.io).
+
+%prep
+%autosetup -n WSDiscovery-2.0.0
+
+%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-WSDiscovery -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..032588d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+69370e4f0f86f40f635b606b80d8866c WSDiscovery-2.0.0.tar.gz