summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:30:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:30:57 +0000
commitcbd06e7b56635861fcd2a0ff647ba846c68db425 (patch)
tree92568be82022dfff65055c686863ae75636d7748
parente4789ea8e78a2ec3ed6cfb2bada7380657020563 (diff)
automatic import of python-uadetectoropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-uadetector.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..811b467 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/uadetector-0.1.3.tar.gz
diff --git a/python-uadetector.spec b/python-uadetector.spec
new file mode 100644
index 0000000..9db6d80
--- /dev/null
+++ b/python-uadetector.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-uadetector
+Version: 0.1.3
+Release: 1
+Summary: WSGI Middleware and web framework extensions for handling User-Agent.
+License: MIT
+URL: https://github.com/tell-k/uadetector
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/dc/2a243a546e7b8e982f9a98cdaabc414c48853180c68039a4f5783feeb34f/uadetector-0.1.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-woothee
+
+%description
+ $ pip install uadetector
+
+%package -n python3-uadetector
+Summary: WSGI Middleware and web framework extensions for handling User-Agent.
+Provides: python-uadetector
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-uadetector
+ $ pip install uadetector
+
+%package help
+Summary: Development documents and examples for uadetector
+Provides: python3-uadetector-doc
+%description help
+ $ pip install uadetector
+
+%prep
+%autosetup -n uadetector-0.1.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-uadetector -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..88d3c1c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+56ede6bbfce13a24e03eedc34340f5b9 uadetector-0.1.3.tar.gz