diff --git a/python-requirementslib.spec b/python-requirementslib.spec new file mode 100644 index 0000000000000000000000000000000000000000..b738338036f5074a72bf2b860f802d1ceee2a657 --- /dev/null +++ b/python-requirementslib.spec @@ -0,0 +1,99 @@ +%global _empty_manifest_terminate_build 0 +Name: python-requirementslib +Version: 1.6.7 +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/c4/e5/1fa8c879458959bb4830c8989d9692b2660318c8876a76fc6b4759542325/requirementslib-1.6.7.tar.gz +BuildArch: noarch +%description +RequirementsLib: Requirement Management Library for Pip and Pipenv .. image:: + +%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-platformdirs +BuildRequires: python3-dateutil +BuildRequires: python3-requests +BuildRequires: python3-pyparsing +BuildRequires: python3-twine +BuildRequires: python3-sphinx +# Tests running requires +BuildRequires: python3-pytest +BuildRequires: python3-pytest-xdist +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-timeout +BuildRequires: python3-coverage +BuildRequires: python3-hypothesis + +%description -n python3-requirementslib +RequirementsLib: Requirement Management Library for Pip and Pipenv .. image:: + +%package help +Summary: A tool for converting between pip-style and pipfile requirements. +Provides: python3-requirementslib-doc +%description help +RequirementsLib: Requirement Management Library for Pip and Pipenv .. image:: + +%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 Jul 19 2022 OpenStack_SIG - 1.6.7-1 +- Init package python3-requirementslib of version 1.6.7 + diff --git a/requirementslib-1.6.7.tar.gz b/requirementslib-1.6.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9ca2b27e82b53e4319da05d60736eae7489fa64b Binary files /dev/null and b/requirementslib-1.6.7.tar.gz differ