diff --git a/python-requirementslib.spec b/python-requirementslib.spec new file mode 100644 index 0000000000000000000000000000000000000000..57f79ac374980e9bf645b7c7229f66de083031f9 --- /dev/null +++ b/python-requirementslib.spec @@ -0,0 +1,135 @@ +%global _empty_manifest_terminate_build 0 +Name: python-requirementslib +Version: 1.6.1 +Release: 1 +Summary: A tool for converting between pip-style and pipfile requirements. +License: MIT +URL: https://github.com/sarugaku/requirementslib +Source0: https://files.pythonhosted.org/packages/b7/c2/fb86d5b46d99eac85010360e9508093f5e1fa5d772671922a2b7769b15c8/requirementslib-1.6.1.tar.gz +BuildArch: noarch +%description +Requirement Management Library for Pip and Pipenv + +%package -n python3-requirementslib +Summary: A tool for converting between pip-style and pipfile requirements. +Provides: python-requirementslib +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-attrs +BuildRequires: python3-cached-property +BuildRequires: python3-distlib +BuildRequires: python3-orderedmultidict +BuildRequires: python3-packaging +BuildRequires: python3-pep517 +BuildRequires: python3-pip-shims +BuildRequires: python3-platformdirs +BuildRequires: python3-plette[validation] +BuildRequires: python3-dateutil +BuildRequires: python3-requests +BuildRequires: python3-tomlkit +BuildRequires: python3-vistir +BuildRequires: python3-nox +BuildRequires: python3-twine +BuildRequires: python3-parver +BuildRequires: python3-towncrier +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx-rtd-theme +# Tests running requires +BuildRequires: python3-pytest +BuildRequires: python3-readme-renderer[md] +BuildRequires: python3-pytest-xdist +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-timeout +BuildRequires: python3-coverage +BuildRequires: python3-hypothesis +# General requires +Requires: python3-attrs +Requires: python3-cached-property +Requires: python3-distlib +Requires: python3-orderedmultidict +Requires: python3-packaging +Requires: python3-pep517 +Requires: python3-pip-shims +Requires: python3-platformdirs +Requires: python3-plette[validation] +Requires: python3-dateutil +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 +# Tests running requires +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 -n python3-requirementslib +Requirement Management Library for Pip and Pipenv + +%package help +Summary: A tool for converting between pip-style and pipfile requirements. +Provides: python3-requirementslib-doc +%description help +Requirement Management Library for Pip and Pipenv + +%prep +%autosetup -n requirementslib-%{version} + +%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 . + +%check +%{__python3} setup.py test + +%files -n python3-requirementslib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Feb 22 2022 OpenStack_SIG - 1.6.1-1 +- Init package python3-requirementslib of version 1.6.1 + diff --git a/requirementslib-1.6.1.tar.gz b/requirementslib-1.6.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ab548254a657f8f74e62681798f6688fe3db054e Binary files /dev/null and b/requirementslib-1.6.1.tar.gz differ