summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 12:54:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 12:54:46 +0000
commitdbbeaf5a342a84794e50f91e3d6d4b9f00b9b8f8 (patch)
treea3f0904ef2b29515fe57f9c38ea9ce8c404d389e
parent654c65bb2454cc8b7a44765e486850592d823dac (diff)
automatic import of python-pypiserver
-rw-r--r--.gitignore1
-rw-r--r--python-pypiserver.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4898c51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pypiserver-1.5.1.zip
diff --git a/python-pypiserver.spec b/python-pypiserver.spec
new file mode 100644
index 0000000..ca8f2ad
--- /dev/null
+++ b/python-pypiserver.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pypiserver
+Version: 1.5.1
+Release: 1
+Summary: A minimal PyPI server for use with pip/easy_install.
+License: BSD License
+URL: https://github.com/pypiserver/pypiserver
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/69/f90ba23c3c5996ddc8bccdde0c65408815047552b172befe28f1e4ae1ccc/pypiserver-1.5.1.zip
+BuildArch: noarch
+
+Requires: python3-watchdog
+Requires: python3-passlib
+
+%description
+
+
+%package -n python3-pypiserver
+Summary: A minimal PyPI server for use with pip/easy_install.
+Provides: python-pypiserver
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pypiserver
+
+
+%package help
+Summary: Development documents and examples for pypiserver
+Provides: python3-pypiserver-doc
+%description help
+
+
+%prep
+%autosetup -n pypiserver-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-pypiserver -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..bd3d5cc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9e36579ef241193dc934948b492a63ed pypiserver-1.5.1.zip