From 055f9967590d282c8776e685d5f855a88cda9918 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 00:23:13 +0000 Subject: automatic import of python-requirementslib --- .gitignore | 1 + python-requirementslib.spec | 105 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 107 insertions(+) create mode 100644 python-requirementslib.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1e7e297 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/requirementslib-2.2.4.tar.gz diff --git a/python-requirementslib.spec b/python-requirementslib.spec new file mode 100644 index 0000000..89992d9 --- /dev/null +++ b/python-requirementslib.spec @@ -0,0 +1,105 @@ +%global _empty_manifest_terminate_build 0 +Name: python-requirementslib +Version: 2.2.4 +Release: 1 +Summary: A tool for converting between pip-style and pipfile requirements. +License: MIT +URL: https://github.com/sarugaku/requirementslib +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bd/be/5d47b56415fd5440dc2332315d638a317dd5d86a590be37a57b2a37210aa/requirementslib-2.2.4.tar.gz +BuildArch: noarch + +Requires: python3-attrs +Requires: python3-cached-property +Requires: python3-distlib +Requires: python3-pep517 +Requires: python3-pip +Requires: python3-platformdirs +Requires: python3-plette[validation] +Requires: python3-requests +Requires: python3-setuptools +Requires: python3-tomlkit +Requires: python3-vistir +Requires: python3-nox +Requires: python3-twine +Requires: python3-parver +Requires: python3-towncrier +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-pytest +Requires: python3-readme-renderer[md] +Requires: python3-pytest-xdist +Requires: python3-pytest-cov +Requires: python3-pytest-timeout +Requires: python3-coverage +Requires: python3-hypothesis + +%description +Install from `PyPI`_: + $ pipenv install requirementslib +Install from `Github`_: + $ pipenv install -e git+https://github.com/sarugaku/requirementslib.git#egg=requirementslib + +%package -n python3-requirementslib +Summary: A tool for converting between pip-style and pipfile requirements. +Provides: python-requirementslib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-requirementslib +Install from `PyPI`_: + $ pipenv install requirementslib +Install from `Github`_: + $ pipenv install -e git+https://github.com/sarugaku/requirementslib.git#egg=requirementslib + +%package help +Summary: Development documents and examples for requirementslib +Provides: python3-requirementslib-doc +%description help +Install from `PyPI`_: + $ pipenv install requirementslib +Install from `Github`_: + $ pipenv install -e git+https://github.com/sarugaku/requirementslib.git#egg=requirementslib + +%prep +%autosetup -n requirementslib-2.2.4 + +%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-requirementslib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 2.2.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..8f4cc7d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +eaaaaa40e6619413e03c26d10b285246 requirementslib-2.2.4.tar.gz -- cgit v1.2.3