diff --git a/APLpy.spec b/APLpy.spec index 94d82a5..d94aebb 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,12 +5,13 @@ Name: APLpy Version: 2.0.3 -Release: 14%{?dist} +Release: 15%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT URL: http://aplpy.github.com Source0: %{pypi_source} +Patch0: aplpy-moved-function.patch BuildArch: noarch BuildRequires: python3-devel @@ -47,7 +48,7 @@ capable of creating output files in several graphical formats, including EPS, PDF, PS, PNG, and SVG. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %build %py3_build @@ -75,6 +76,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Thu Feb 17 2022 Sergio Pascual - 2.0.3-15 +- Fix astropy 5 function incompatibility + * Wed Jan 19 2022 Fedora Release Engineering - 2.0.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/aplpy-moved-function.patch b/aplpy-moved-function.patch new file mode 100644 index 0000000..9f73095 --- /dev/null +++ b/aplpy-moved-function.patch @@ -0,0 +1,12 @@ +diff -ur APLpy-2.0.3/aplpy/core.py APLpy-2.0.3.astr/aplpy/core.py +--- APLpy-2.0.3/aplpy/core.py 2019-02-19 12:42:15.000000000 +0100 ++++ APLpy-2.0.3.astr/aplpy/core.py 2022-02-17 01:26:12.893457814 +0100 +@@ -17,7 +17,7 @@ + from astropy.wcs import WCS + from astropy.wcs.utils import proj_plane_pixel_scales + from astropy.io import fits +-from astropy.nddata.utils import block_reduce ++from astropy.nddata import block_reduce + from astropy.visualization import AsymmetricPercentileInterval + from astropy.visualization.wcsaxes import WCSAxes, WCSAxesSubplot + from astropy.coordinates import ICRS