|
|
@ -23,14 +23,23 @@ Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-matplotlib
|
|
|
|
BuildRequires: python3-matplotlib
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
BuildRequires: python3-scipy
|
|
|
|
BuildRequires: python3-scipy
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without docs
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: dvipng
|
|
|
|
BuildRequires: dvipng
|
|
|
|
BuildRequires: tex(anyfontsize.sty)
|
|
|
|
BuildRequires: tex(anyfontsize.sty)
|
|
|
|
BuildRequires: tex(bm.sty)
|
|
|
|
BuildRequires: tex(bm.sty)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname} %{_description}
|
|
|
|
%description -n python3-%{srcname} %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -49,33 +58,39 @@ Documentation for %{srcname} package.
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
pushd docs
|
|
|
|
pushd docs
|
|
|
|
make SPHINXBUILD=sphinx-build-%{python3_version} html
|
|
|
|
make SPHINXBUILD=sphinx-build-%{python3_version} html
|
|
|
|
rm _build/html/.buildinfo
|
|
|
|
rm _build/html/.buildinfo
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd tests
|
|
|
|
pushd tests
|
|
|
|
PYTHONPATH="%{buildroot}%{python3_sitelib}" \
|
|
|
|
PYTHONPATH="%{buildroot}%{python3_sitelib}" \
|
|
|
|
pytest-%{python3_version}
|
|
|
|
pytest-%{python3_version}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
%files -n python-%{srcname}-doc
|
|
|
|
%files -n python-%{srcname}-doc
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst docs/_build/html
|
|
|
|
%doc README.rst docs/_build/html
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|