Группа :: Development/Python3
Пакет: python3-module-shapely
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname shapely
%def_without check
# Need module numpydoc and bootstrapped package
%def_without doc
Name: python3-module-%oname
Version: 2.0.1
Release: alt1
Summary: Planar geometries, predicates, and operations
License: BSD
Group: Development/Python3
Url: http://pypi.python.org/pypi/Shapely
# https://github.com/Toblerity/Shapely.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3 rpm-macros-sphinx3
BuildRequires: libgeos-devel
BuildRequires: python3-module-Cython libnumpy-py3-devel
BuildRequires: python3-module-descartes
BuildRequires: python3-module-packaging
BuildRequires: python3-module-pytest
BuildRequires: python3-module-numpy-testing
BuildRequires: xvfb-run
%if_with doc
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-sphinxcontrib-websupport
BuildRequires: python3(matplotlib.sphinxext)
BuildRequires: %name = %version
%endif
%description
Planar geometries, predicates, and operations.
%package examples
Summary: Examples for %oname
Group: Development/Python3
Requires: %name = %EVR
%description examples
Planar geometries, predicates, and operations.
This package contains examples for %oname.
%package pickles
Summary: Pickles for %oname
Group: Development/Python3
%add_python3_req_skip figures
%description pickles
Planar geometries, predicates, and operations.
This package contains pickles for %oname.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch
%description docs
Planar geometries, predicates, and operations.
This package contains documentation for %oname.
%prep
%setup
%if_with doc
%prepare_sphinx3 .
ln -s ../objects.inv docs/
sed -i 's/sphinx-apidoc/sphinx-apidoc-3/' docs/Makefile
%endif
%build
export LC_ALL=en_US.UTF-8
%add_optflags -fno-strict-aliasing
%python3_build
%install
export LC_ALL=en_US.UTF-8
%python3_install
%if_with doc
%make SPHINXBUILD="sphinx-build-3" -C docs pickle
%make SPHINXBUILD="sphinx-build-3" -C docs html
cp -fR docs/_build/pickle %buildroot%python3_sitelibdir/%oname/
%endif
%if_with check
%check
export LC_ALL=en_US.UTF-8
xvfb-run python3 setup.py test
python3 setup.py build_ext -i
py.test3 -vv
%endif
%files
%python3_sitelibdir/*
%if_with doc
%exclude %python3_sitelibdir/*/pickle
%endif
%if_with doc
%files pickles
%python3_sitelibdir/*/pickle
%files docs
%doc docs/_build/html/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define oname shapely
%def_without check
# Need module numpydoc and bootstrapped package
%def_without doc
Name: python3-module-%oname
Version: 2.0.1
Release: alt1
Summary: Planar geometries, predicates, and operations
License: BSD
Group: Development/Python3
Url: http://pypi.python.org/pypi/Shapely
# https://github.com/Toblerity/Shapely.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3 rpm-macros-sphinx3
BuildRequires: libgeos-devel
BuildRequires: python3-module-Cython libnumpy-py3-devel
BuildRequires: python3-module-descartes
BuildRequires: python3-module-packaging
BuildRequires: python3-module-pytest
BuildRequires: python3-module-numpy-testing
BuildRequires: xvfb-run
%if_with doc
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-sphinxcontrib-websupport
BuildRequires: python3(matplotlib.sphinxext)
BuildRequires: %name = %version
%endif
%description
Planar geometries, predicates, and operations.
%package examples
Summary: Examples for %oname
Group: Development/Python3
Requires: %name = %EVR
%description examples
Planar geometries, predicates, and operations.
This package contains examples for %oname.
%package pickles
Summary: Pickles for %oname
Group: Development/Python3
%add_python3_req_skip figures
%description pickles
Planar geometries, predicates, and operations.
This package contains pickles for %oname.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch
%description docs
Planar geometries, predicates, and operations.
This package contains documentation for %oname.
%prep
%setup
%if_with doc
%prepare_sphinx3 .
ln -s ../objects.inv docs/
sed -i 's/sphinx-apidoc/sphinx-apidoc-3/' docs/Makefile
%endif
%build
export LC_ALL=en_US.UTF-8
%add_optflags -fno-strict-aliasing
%python3_build
%install
export LC_ALL=en_US.UTF-8
%python3_install
%if_with doc
%make SPHINXBUILD="sphinx-build-3" -C docs pickle
%make SPHINXBUILD="sphinx-build-3" -C docs html
cp -fR docs/_build/pickle %buildroot%python3_sitelibdir/%oname/
%endif
%if_with check
%check
export LC_ALL=en_US.UTF-8
xvfb-run python3 setup.py test
python3 setup.py build_ext -i
py.test3 -vv
%endif
%files
%python3_sitelibdir/*
%if_with doc
%exclude %python3_sitelibdir/*/pickle
%endif
%if_with doc
%files pickles
%python3_sitelibdir/*/pickle
%files docs
%doc docs/_build/html/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь