diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-getversion.spec | 116 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 118 insertions, 0 deletions
@@ -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.* + +[](https://pypi.python.org/pypi/getversion/) [](https://travis-ci.org/smarie/python-getversion) [](https://smarie.github.io/python-getversion/junit/report.html) [](https://codecov.io/gh/smarie/python-getversion) + +[](https://smarie.github.io/python-getversion/) [](https://pypi.python.org/pypi/getversion/) [](https://pepy.tech/project/getversion) [](https://pepy.tech/project/getversion) [](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.* + +[](https://pypi.python.org/pypi/getversion/) [](https://travis-ci.org/smarie/python-getversion) [](https://smarie.github.io/python-getversion/junit/report.html) [](https://codecov.io/gh/smarie/python-getversion) + +[](https://smarie.github.io/python-getversion/) [](https://pypi.python.org/pypi/getversion/) [](https://pepy.tech/project/getversion) [](https://pepy.tech/project/getversion) [](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.* + +[](https://pypi.python.org/pypi/getversion/) [](https://travis-ci.org/smarie/python-getversion) [](https://smarie.github.io/python-getversion/junit/report.html) [](https://codecov.io/gh/smarie/python-getversion) + +[](https://smarie.github.io/python-getversion/) [](https://pypi.python.org/pypi/getversion/) [](https://pepy.tech/project/getversion) [](https://pepy.tech/project/getversion) [](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 @@ -0,0 +1 @@ +2dc30a9c0f8715b71399d450954a40a0 getversion-1.0.2.tar.gz |