summaryrefslogtreecommitdiff
path: root/python-fqdn.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 18:50:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 18:50:53 +0000
commit7addc53e9572684b973749452ab709492370a98c (patch)
tree9a51fe1c0eb3a6e8fd9ec7d5c402928242ac80cb /python-fqdn.spec
parentc12e663d2f930c7afe18dbc2510275a63c3cebaa (diff)
automatic import of python-fqdn
Diffstat (limited to 'python-fqdn.spec')
-rw-r--r--python-fqdn.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-fqdn.spec b/python-fqdn.spec
new file mode 100644
index 0000000..0abc70e
--- /dev/null
+++ b/python-fqdn.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fqdn
+Version: 1.5.1
+Release: 1
+Summary: Validates fully-qualified domain names against RFC 1123, so that they are acceptable to modern bowsers
+License: MPL 2.0
+URL: https://github.com/ypcrts/fqdn
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/30/3e/a80a8c077fd798951169626cde3e239adeba7dab75deb3555716415bd9b0/fqdn-1.5.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-cached-property
+
+%description
+
+
+%package -n python3-fqdn
+Summary: Validates fully-qualified domain names against RFC 1123, so that they are acceptable to modern bowsers
+Provides: python-fqdn
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fqdn
+
+
+%package help
+Summary: Development documents and examples for fqdn
+Provides: python3-fqdn-doc
+%description help
+
+
+%prep
+%autosetup -n fqdn-1.5.1
+
+%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-fqdn -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.1-1
+- Package Spec generated