summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 15:18:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 15:18:32 +0000
commit184bb49109390a5c7b90e6b76492e8e41a93a374 (patch)
tree90f67c6ff10753358e4589ad0520205eae5a4991
parent467b5fa1c34246334939c653e7b554c0f7116163 (diff)
automatic import of python-py2pack
-rw-r--r--.gitignore1
-rw-r--r--python-py2pack.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ba3109e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/py2pack-0.8.7.tar.gz
diff --git a/python-py2pack.spec b/python-py2pack.spec
new file mode 100644
index 0000000..44e4a68
--- /dev/null
+++ b/python-py2pack.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-py2pack
+Version: 0.8.7
+Release: 1
+Summary: Generate distribution packages from PyPI
+License: Apache Software License
+URL: http://github.com/openSUSE/py2pack
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b6/19/1e13b488964b839bfe1604666c94c38adb3d60716e80d81affa6fe884afb/py2pack-0.8.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-Jinja2
+Requires: python3-setuptools
+Requires: python3-metaextract
+Requires: python3-requests
+Requires: python3-pypi-search
+Requires: python3-typing
+
+%description
+This script allows to generate RPM spec or DEB dsc files from Python modules.
+It allows to list Python modules or search for them on the Python Package Index
+(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
+universal tool to package Python modules.
+
+%package -n python3-py2pack
+Summary: Generate distribution packages from PyPI
+Provides: python-py2pack
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-py2pack
+This script allows to generate RPM spec or DEB dsc files from Python modules.
+It allows to list Python modules or search for them on the Python Package Index
+(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
+universal tool to package Python modules.
+
+%package help
+Summary: Development documents and examples for py2pack
+Provides: python3-py2pack-doc
+%description help
+This script allows to generate RPM spec or DEB dsc files from Python modules.
+It allows to list Python modules or search for them on the Python Package Index
+(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
+universal tool to package Python modules.
+
+%prep
+%autosetup -n py2pack-0.8.7
+
+%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-py2pack -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e404eb0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7be284e5497745ea389221c139b95c1a py2pack-0.8.7.tar.gz