diff --git a/pdc-client-1.8.0.tar.gz b/pdc-client-1.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..488ec1c25b8adc41d6177350ac934d2c01713f13 Binary files /dev/null and b/pdc-client-1.8.0.tar.gz differ diff --git a/python-pdc-client.spec b/python-pdc-client.spec new file mode 100644 index 0000000000000000000000000000000000000000..e2926dbea0fcda222cf07803db12d560d605ed3c --- /dev/null +++ b/python-pdc-client.spec @@ -0,0 +1,70 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name pdc-client +%global pypi_version 1.8.0 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Client for Product Definition Center (PDC) in Python + +License: MIT +URL: https://github.com/product-definition-center/pdc-client +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(beanbag) >= 1.9.2 +BuildRequires: python3dist(requests-kerberos) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(sphinx) + +%description + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(beanbag) >= 1.9.2 +Requires: python3dist(requests-kerberos) +%description -n python3-%{pypi_name} + + +%package help +Summary: pdc-client documentation +%description help +Documentation for pdc-client + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build +# generate html docs +PYTHONPATH=${PWD} sphinx-build-3 docs/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license docs/LICENSE_sphinx_deployment LICENSE +%doc README.markdown +%{_bindir}/pdc +%{_bindir}/pdc_client +%{python3_sitelib}/pdc_client +%{python3_sitelib}/pdc_client-%{pypi_version}-py%{python3_version}.egg-info + +%files -n python-%{pypi_name}-doc +%doc html +%license docs/LICENSE_sphinx_deployment LICENSE + +%changelog +* Fri Jul 01 2022 konglidong - 1.8.0-1 +- Initial package.