summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 04:02:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 04:02:53 +0000
commit1a93dcfaa387edd66f73b00cfc11f4661b15d4d6 (patch)
tree05f6d2b0f9bc2be8c046685f19ec0919288394e6
parent455ca4815f30f842d5b78d72fb6b6c8a4bfb108d (diff)
automatic import of python-pypi-simple
-rw-r--r--.gitignore1
-rw-r--r--python-pypi-simple.spec97
-rw-r--r--sources1
3 files changed, 99 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7ba456d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pypi-simple-1.1.0.tar.gz
diff --git a/python-pypi-simple.spec b/python-pypi-simple.spec
new file mode 100644
index 0000000..dff6c27
--- /dev/null
+++ b/python-pypi-simple.spec
@@ -0,0 +1,97 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pypi-simple
+Version: 1.1.0
+Release: 1
+Summary: PyPI Simple Repository API client library
+License: MIT
+URL: https://github.com/jwodder/pypi-simple
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/dd/a5/c1dfa12ae6ad6dffa03655bac1f6a397124614d12363ae3c834cb9fe1388/pypi-simple-1.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-beautifulsoup4
+Requires: python3-mailbits
+Requires: python3-packaging
+Requires: python3-pydantic
+Requires: python3-requests
+Requires: python3-typing-extensions
+Requires: python3-tqdm
+
+%description
+``pypi-simple`` requires Python 3.7 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``pypi-simple`` and its dependencies::
+ python3 -m pip install pypi-simple
+``pypi-simple`` can optionally make use of tqdm_. To install it alongside
+``pypi-simple``, specify the ``tqdm`` extra::
+ python3 -m pip install "pypi-simple[tqdm]"
+
+%package -n python3-pypi-simple
+Summary: PyPI Simple Repository API client library
+Provides: python-pypi-simple
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pypi-simple
+``pypi-simple`` requires Python 3.7 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``pypi-simple`` and its dependencies::
+ python3 -m pip install pypi-simple
+``pypi-simple`` can optionally make use of tqdm_. To install it alongside
+``pypi-simple``, specify the ``tqdm`` extra::
+ python3 -m pip install "pypi-simple[tqdm]"
+
+%package help
+Summary: Development documents and examples for pypi-simple
+Provides: python3-pypi-simple-doc
+%description help
+``pypi-simple`` requires Python 3.7 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``pypi-simple`` and its dependencies::
+ python3 -m pip install pypi-simple
+``pypi-simple`` can optionally make use of tqdm_. To install it alongside
+``pypi-simple``, specify the ``tqdm`` extra::
+ python3 -m pip install "pypi-simple[tqdm]"
+
+%prep
+%autosetup -n pypi-simple-1.1.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-pypi-simple -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0b4353b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c53d7dd85f34e3050639c2fc41017c7f pypi-simple-1.1.0.tar.gz