python-requirementslib/python-requirementslib.spec
2022-07-15 14:04:01 +08:00

112 lines
3.3 KiB
RPMSpec

%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
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-pyparsing
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
BuildRequires: python3-wheel
BuildRequires: python3-pbr
%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-1.6.7
%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
* Thu Jul 14 2022 cuiyudong <cuiyudong@kylinos.cn> - 1.6.7-1
- Init package python3-requirementslib of version 1.6.7