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