summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 05:32:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 05:32:25 +0000
commitda58b7c3eda366a489176681f7d3aad9eed79eee (patch)
tree4d001d17857dc70b5ab141ee8ca488eafbf8e43d
parenta210a5b040010a8a6c5ba2b4297c2b04bcc60835 (diff)
automatic import of python-loginform
-rw-r--r--.gitignore1
-rw-r--r--python-loginform.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ba808ab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/loginform-1.2.0.tar.gz
diff --git a/python-loginform.spec b/python-loginform.spec
new file mode 100644
index 0000000..fed0eb4
--- /dev/null
+++ b/python-loginform.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-loginform
+Version: 1.2.0
+Release: 1
+Summary: Fill HTML login forms automatically
+License: BSD
+URL: http://github.com/scrapy/loginform
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/d3/267b4304a72b8471250ae550423d5cd2ce9961de76ac3502f5c680da8e6c/loginform-1.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-lxml
+
+%description
+loginform is a library for filling HTML login forms given the login url,
+username & password. Which form and fields to fill are inferred automatically.
+It's implemented on top of `lxml form filling`_, and thus depends on lxml.
+
+%package -n python3-loginform
+Summary: Fill HTML login forms automatically
+Provides: python-loginform
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-loginform
+loginform is a library for filling HTML login forms given the login url,
+username & password. Which form and fields to fill are inferred automatically.
+It's implemented on top of `lxml form filling`_, and thus depends on lxml.
+
+%package help
+Summary: Development documents and examples for loginform
+Provides: python3-loginform-doc
+%description help
+loginform is a library for filling HTML login forms given the login url,
+username & password. Which form and fields to fill are inferred automatically.
+It's implemented on top of `lxml form filling`_, and thus depends on lxml.
+
+%prep
+%autosetup -n loginform-1.2.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-loginform -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4933367
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+da62474e00034b5a07938f92ddd300c5 loginform-1.2.0.tar.gz