summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 11:45:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 11:45:55 +0000
commited6b9c8e7f103c3fa54dacdfab1387c44b6f9841 (patch)
tree54bce4ea66c66b0fa96c7a5b47bb67c31a46a8db
parent4140fb04db986a1aa38d4fb4205dafa7dc72c815 (diff)
automatic import of python-getversionopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-getversion.spec116
-rw-r--r--sources1
3 files changed, 118 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5b14298 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/getversion-1.0.2.tar.gz
diff --git a/python-getversion.spec b/python-getversion.spec
new file mode 100644
index 0000000..6316e31
--- /dev/null
+++ b/python-getversion.spec
@@ -0,0 +1,116 @@
+%global _empty_manifest_terminate_build 0
+Name: python-getversion
+Version: 1.0.2
+Release: 1
+Summary: Get the version number of any python module or package, reliably.
+License: BSD 3-Clause
+URL: https://github.com/smarie/python-getversion
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9c/b8/36c91065c480b74b5ad3bd377622f467b11ed76b36dfb7d57376ad87975d/getversion-1.0.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-stdlib-list
+Requires: python3-setuptools-scm
+Requires: python3-functools32
+Requires: python3-scandir
+Requires: python3-pathlib2
+
+%description
+# python-getversion
+
+*Get the version number of any python module or package, reliably.*
+
+[![Python versions](https://img.shields.io/pypi/pyversions/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Build Status](https://travis-ci.org/smarie/python-getversion.svg?branch=master)](https://travis-ci.org/smarie/python-getversion) [![Tests Status](https://smarie.github.io/python-getversion/junit/junit-badge.svg?dummy=8484744)](https://smarie.github.io/python-getversion/junit/report.html) [![codecov](https://codecov.io/gh/smarie/python-getversion/branch/master/graph/badge.svg)](https://codecov.io/gh/smarie/python-getversion)
+
+[![Documentation](https://img.shields.io/badge/doc-latest-blue.svg)](https://smarie.github.io/python-getversion/) [![PyPI](https://img.shields.io/pypi/v/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Downloads](https://pepy.tech/badge/getversion)](https://pepy.tech/project/getversion) [![Downloads per week](https://pepy.tech/badge/getversion/week)](https://pepy.tech/project/getversion) [![GitHub stars](https://img.shields.io/github/stars/smarie/python-getversion.svg)](https://github.com/smarie/python-getversion/stargazers)
+
+The documentation for users is available here: [https://smarie.github.io/python-getversion/](https://smarie.github.io/python-getversion/)
+
+A readme for developers is available here: [https://github.com/smarie/python-getversion](https://github.com/smarie/python-getversion)
+
+
+
+
+%package -n python3-getversion
+Summary: Get the version number of any python module or package, reliably.
+Provides: python-getversion
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-getversion
+# python-getversion
+
+*Get the version number of any python module or package, reliably.*
+
+[![Python versions](https://img.shields.io/pypi/pyversions/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Build Status](https://travis-ci.org/smarie/python-getversion.svg?branch=master)](https://travis-ci.org/smarie/python-getversion) [![Tests Status](https://smarie.github.io/python-getversion/junit/junit-badge.svg?dummy=8484744)](https://smarie.github.io/python-getversion/junit/report.html) [![codecov](https://codecov.io/gh/smarie/python-getversion/branch/master/graph/badge.svg)](https://codecov.io/gh/smarie/python-getversion)
+
+[![Documentation](https://img.shields.io/badge/doc-latest-blue.svg)](https://smarie.github.io/python-getversion/) [![PyPI](https://img.shields.io/pypi/v/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Downloads](https://pepy.tech/badge/getversion)](https://pepy.tech/project/getversion) [![Downloads per week](https://pepy.tech/badge/getversion/week)](https://pepy.tech/project/getversion) [![GitHub stars](https://img.shields.io/github/stars/smarie/python-getversion.svg)](https://github.com/smarie/python-getversion/stargazers)
+
+The documentation for users is available here: [https://smarie.github.io/python-getversion/](https://smarie.github.io/python-getversion/)
+
+A readme for developers is available here: [https://github.com/smarie/python-getversion](https://github.com/smarie/python-getversion)
+
+
+
+
+%package help
+Summary: Development documents and examples for getversion
+Provides: python3-getversion-doc
+%description help
+# python-getversion
+
+*Get the version number of any python module or package, reliably.*
+
+[![Python versions](https://img.shields.io/pypi/pyversions/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Build Status](https://travis-ci.org/smarie/python-getversion.svg?branch=master)](https://travis-ci.org/smarie/python-getversion) [![Tests Status](https://smarie.github.io/python-getversion/junit/junit-badge.svg?dummy=8484744)](https://smarie.github.io/python-getversion/junit/report.html) [![codecov](https://codecov.io/gh/smarie/python-getversion/branch/master/graph/badge.svg)](https://codecov.io/gh/smarie/python-getversion)
+
+[![Documentation](https://img.shields.io/badge/doc-latest-blue.svg)](https://smarie.github.io/python-getversion/) [![PyPI](https://img.shields.io/pypi/v/getversion.svg)](https://pypi.python.org/pypi/getversion/) [![Downloads](https://pepy.tech/badge/getversion)](https://pepy.tech/project/getversion) [![Downloads per week](https://pepy.tech/badge/getversion/week)](https://pepy.tech/project/getversion) [![GitHub stars](https://img.shields.io/github/stars/smarie/python-getversion.svg)](https://github.com/smarie/python-getversion/stargazers)
+
+The documentation for users is available here: [https://smarie.github.io/python-getversion/](https://smarie.github.io/python-getversion/)
+
+A readme for developers is available here: [https://github.com/smarie/python-getversion](https://github.com/smarie/python-getversion)
+
+
+
+
+%prep
+%autosetup -n getversion-1.0.2
+
+%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-getversion -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d57ba69
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2dc30a9c0f8715b71399d450954a40a0 getversion-1.0.2.tar.gz