|
|
@ -1,22 +1,23 @@
|
|
|
|
# Created by pyp2rpm-3.3.2
|
|
|
|
# Created by pyp2rpm-3.3.2
|
|
|
|
%global pypi_name jaraco-classes
|
|
|
|
%global pkg_name jaraco-classes
|
|
|
|
|
|
|
|
%global pypi_name jaraco.classes
|
|
|
|
# waiting on jaraco-packaging and rst-linker to build docs
|
|
|
|
# waiting on jaraco-packaging and rst-linker to build docs
|
|
|
|
%bcond_with doc
|
|
|
|
%bcond_with doc
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pkg_name}
|
|
|
|
Version: 2.0
|
|
|
|
Version: 2.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Utility functions for Python class constructs
|
|
|
|
Summary: Utility functions for Python class constructs
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/jaraco/jaraco.classes
|
|
|
|
URL: https://github.com/jaraco/jaraco.classes
|
|
|
|
Source0: %{pypi_source jaraco.classes}
|
|
|
|
Source0: %{pypi_source %{pypi_name}}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Utility functions for Python class constructs.
|
|
|
|
Utility functions for Python class constructs.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
%package -n python3-%{pkg_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
Requires: python3-jaraco
|
|
|
|
Requires: python3-jaraco
|
|
|
|
Requires: python3dist(six)
|
|
|
|
Requires: python3dist(six)
|
|
|
@ -28,13 +29,13 @@ BuildRequires: python3dist(pytest-flake8)
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
BuildRequires: python3dist(setuptools-scm) >= 1.15.0
|
|
|
|
BuildRequires: python3dist(setuptools-scm) >= 1.15.0
|
|
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
%description -n python3-%{pkg_name}
|
|
|
|
Utility functions for Python class constructs.
|
|
|
|
Utility functions for Python class constructs.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
%if %{with docs}
|
|
|
|
%package -n python-%{pypi_name}-doc
|
|
|
|
%package -n python-%{pkg_name}-doc
|
|
|
|
Summary: jaraco-classes documentation
|
|
|
|
Summary: jaraco-classes documentation
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pytest-checkdocs)
|
|
|
|
BuildRequires: python3dist(pytest-checkdocs)
|
|
|
@ -42,14 +43,16 @@ BuildRequires: python3dist(sphinx)
|
|
|
|
BuildRequires: python3dist(jaraco-packaging) >= 3.2
|
|
|
|
BuildRequires: python3dist(jaraco-packaging) >= 3.2
|
|
|
|
BuildRequires: python3dist(rst-linker) >= 1.9
|
|
|
|
BuildRequires: python3dist(rst-linker) >= 1.9
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python-%{pypi_name}-doc
|
|
|
|
%description -n python-%{pkg_name}-doc
|
|
|
|
Documentation for jaraco-classes
|
|
|
|
Documentation for jaraco-classes
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n jaraco.classes-%{version}
|
|
|
|
%autosetup -n jaraco.classes-%{version}
|
|
|
|
# Remove bundled egg-info
|
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
rm -rf %{pkg_name}.egg-info
|
|
|
|
|
|
|
|
# rename package to use a -
|
|
|
|
|
|
|
|
sed -i 's/%{pypi_name}/%{pkg_name}/' setup.cfg
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
@ -69,21 +72,24 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
# AttributeError: 'Application' object has no attribute 'make_notifier'
|
|
|
|
# AttributeError: 'Application' object has no attribute 'make_notifier'
|
|
|
|
# LANG=C.utf-8 %%{__python3} -m pytest --ignore=build
|
|
|
|
# LANG=C.utf-8 %%{__python3} -m pytest --ignore=build
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%files -n python3-%{pkg_name}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
# These excludes are provided by python3-jaraco
|
|
|
|
# These excludes are provided by python3-jaraco
|
|
|
|
%exclude %{python3_sitelib}/jaraco/__init__*
|
|
|
|
%exclude %{python3_sitelib}/jaraco/__init__*
|
|
|
|
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
|
|
|
|
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
|
|
|
|
%{python3_sitelib}/jaraco
|
|
|
|
%{python3_sitelib}/jaraco
|
|
|
|
%{python3_sitelib}/jaraco.classes-%{version}-py?.?.egg-info
|
|
|
|
%{python3_sitelib}/jaraco_classes-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
%if %{with docs}
|
|
|
|
%files -n python-%{pypi_name}-doc
|
|
|
|
%files -n python-%{pkg_name}-doc
|
|
|
|
%doc html
|
|
|
|
%doc html
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 2.0-2
|
|
|
|
|
|
|
|
- fixed egg info
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.0-1
|
|
|
|
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.0-1
|
|
|
|
- Initial package.
|
|
|
|
- Initial package.
|
|
|
|