diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:37:44 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:37:44 +0000 |
commit | 92eee4c72ce999e5235b6e4277d8a84149081121 (patch) | |
tree | 09241e14e1a6e44f73e0d68df706ace8e4536af0 | |
parent | 492bfa6da8094c2318da21d287c11b2b0575cbac (diff) |
automatic import of python-srvlookup
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-srvlookup.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/srvlookup-3.0.0.tar.gz diff --git a/python-srvlookup.spec b/python-srvlookup.spec new file mode 100644 index 0000000..89d680d --- /dev/null +++ b/python-srvlookup.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-srvlookup +Version: 3.0.0 +Release: 1 +Summary: Service lookup using DNS SRV records +License: BSD +URL: https://github.com/gmr/srvlookup +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/18/49/f67d6b5bd521ffc5e0019df86a7744cacc643b39345a3c850a7eee038d93/srvlookup-3.0.0.tar.gz +BuildArch: noarch + + +%description +A small wrapper for dnspython to return SRV records for a given host, protocol, +and domain name as a list of namedtuples. +|Version| |Status| |Coverage| |License| + +%package -n python3-srvlookup +Summary: Service lookup using DNS SRV records +Provides: python-srvlookup +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-srvlookup +A small wrapper for dnspython to return SRV records for a given host, protocol, +and domain name as a list of namedtuples. +|Version| |Status| |Coverage| |License| + +%package help +Summary: Development documents and examples for srvlookup +Provides: python3-srvlookup-doc +%description help +A small wrapper for dnspython to return SRV records for a given host, protocol, +and domain name as a list of namedtuples. +|Version| |Status| |Coverage| |License| + +%prep +%autosetup -n srvlookup-3.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-srvlookup -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +ee93f03b133d52d13aba798a4db73c41 srvlookup-3.0.0.tar.gz |