From 66cd7619779760bd295b35086e7b9ad616b66522 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 12 Apr 2023 06:58:30 +0000 Subject: automatic import of python-wsdiscovery --- python-wsdiscovery.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 python-wsdiscovery.spec (limited to 'python-wsdiscovery.spec') 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 - 2.0.0-1 +- Package Spec generated -- cgit v1.2.3