diff --git a/python-xarray.spec b/python-xarray.spec index 5170bbd..d4094e3 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -5,7 +5,7 @@ Name: python-%{srcname} Version: 0.15.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: N-D labeled arrays and datasets in Python License: ASL 2.0 @@ -92,9 +92,6 @@ tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tu cp -p %SOURCE2 ./doc/gallery/ %endif -# Remove bundled egg-info -rm -rf %{srcname}.egg-info - %build %py3_build @@ -114,14 +111,16 @@ popd %check -pytest-3 -ra -n auto -m "not network" +rm -rf xarray +PYTHONPATH=%{buildroot}%{python3_sitelib} \ + pytest-3 -ra -n auto -m "not network" --pyargs xarray %files -n python3-%{srcname} %license LICENSE licenses/DASK_LICENSE licenses/NUMPY_LICENSE licenses/PANDAS_LICENSE licenses/PYTHON_LICENSE licenses/SEABORN_LICENSE %doc README.rst %{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info +%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %if %{with docs} %files -n python-%{srcname}-doc @@ -131,6 +130,10 @@ pytest-3 -ra -n auto -m "not network" %changelog +* Sat Apr 18 2020 Elliott Sales de Andrade - 0.15.1-2 +- Fix broken install with missing files +- Test against installed version to catch above issue + * Wed Mar 25 2020 Elliott Sales de Andrade - 0.15.1-1 - Update to latest version