Blame python-jaraco-packaging.spec

bf8d9dd
# Created by pyp2rpm-3.2.2
bf8d9dd
%global pypi_name jaraco.packaging
bf8d9dd
%global pkg_name jaraco-packaging
bf8d9dd
# This package is interdependant on rst-linker to build docs
bf8d9dd
# will build both with out docs and add docs in later
0d50cbb
%bcond_with docs 
bf8d9dd
bf8d9dd
Name:           python-%{pkg_name}
bf8d9dd
Version:        6.1
0d50cbb
Release:        2%{?dist}
bf8d9dd
Summary:        Tools to supplement packaging Python releases
bf8d9dd
bf8d9dd
License:        MIT
bf8d9dd
URL:            https://github.com/jaraco/jaraco.packaging
bf8d9dd
Source0:        https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
bf8d9dd
BuildArch:      noarch
bf8d9dd
 
0d50cbb
%description
0d50cbb
 Tools for packaging.dependency_tree A dist-utils command for reporting the
0d50cbb
dependency tree as resolved by setup-tools. Use after installing a package.show
0d50cbb
A dist-utils command for reporting the attributes of a distribution, such as the
0d50cbb
version or author name.
bf8d9dd
0d50cbb
%package -n python3-%{pkg_name}
0d50cbb
Summary:        %{summary}
0d50cbb
BuildRequires:  python3-devel
28874d9
BuildRequires:  python3dist(setuptools)
0d50cbb
BuildRequires:  python3-setuptools_scm >= 1.15.0
28874d9
BuildRequires:  python3dist(six) >= 1.4
0d50cbb
%{?python_provide:%python_provide python3-%{pkg_name}}
0d50cbb
0d50cbb
%description -n python3-%{pkg_name}
0d50cbb
%{description}
bf8d9dd
28874d9
Requires:       python3dist(rst-linker)
28874d9
Requires:       python3dist(six) >= 1.4
28874d9
Requires:       python3dist(setuptools)
0d50cbb
0d50cbb
%if %{with docs}
28874d9
BuildRequires:  python3dist(sphinx)
28874d9
BuildRequires:  python3dist(rst-linker)
bf8d9dd
bf8d9dd
%package -n python-%{pkg_name}-doc
bf8d9dd
Summary:        jaraco.packaging documentation
bf8d9dd
%description -n python-%{pkg_name}-doc
bf8d9dd
Documentation for jaraco.packaging
bf8d9dd
%endif
bf8d9dd
bf8d9dd
%prep
bf8d9dd
%autosetup -n %{pypi_name}-%{version}
bf8d9dd
# Remove bundled egg-info
bf8d9dd
rm -rf %{pypi_name}.egg-info
bf8d9dd
bf8d9dd
%build
bf8d9dd
%py3_build
0d50cbb
%if %{with docs}
bf8d9dd
# generate html docs 
bf8d9dd
# This package requires itself to build docs :/
bf8d9dd
PYTHONPATH=./ sphinx-build docs html
bf8d9dd
# remove the sphinx-build leftovers
bf8d9dd
rm -rf html/.{doctrees,buildinfo}
bf8d9dd
%endif
bf8d9dd
bf8d9dd
%install
bf8d9dd
%py3_install
bf8d9dd
bf8d9dd
%check
bf8d9dd
%{__python3} setup.py test
bf8d9dd
0d50cbb
%files -n python3-%{pkg_name}
bf8d9dd
%license LICENSE
bf8d9dd
%doc README.rst
bf8d9dd
%{_bindir}/upload-package
bf8d9dd
%{_bindir}/upload-package
bf8d9dd
%{_bindir}/dependency-tree
bf8d9dd
%{python3_sitelib}/jaraco
bf8d9dd
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
bf8d9dd
0d50cbb
%if %{with docs}
bf8d9dd
%files -n python-%{pkg_name}-doc
bf8d9dd
%license LICENSE
bf8d9dd
%doc html 
bf8d9dd
%endif
bf8d9dd
bf8d9dd
%changelog
0d50cbb
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 6.1-2
0d50cbb
- adding py3 subpackage.
bf8d9dd
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 6.1-1
bf8d9dd
- Initial package.