%global srcname APLpy Name: APLpy Version: 1.1.1 Release: 3%{?dist} Summary: The Astronomical Plotting Library in Python Group: Development/Languages License: MIT URL: http://aplpy.github.com Source0: https://pypi.io/packages/source/A/%{name}/%{name}-%{version}.tar.gz Patch0: aplpy-system-decorator.patch BuildArch: noarch BuildRequires: python2-devel python3-devel %description APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at producing publication-quality plots of astronomical imaging data in FITS format. The module uses Matplotlib, a powerful and interactive plotting package. It is capable of creating output files in several graphical formats, including EPS, PDF, PS, PNG, and SVG. %package -n python2-APLpy Summary: The Astronomical Plotting Library in Python %{?python_provide:%python_provide python2-%{srcname}} BuildRequires: python2-numpy BuildRequires: python2-matplotlib BuildRequires: python2-astropy BuildRequires: python2-decorator BuildRequires: python2-pillow BuildRequires: python2-pytest Requires: python2-numpy Requires: python2-matplotlib Requires: python2-astropy Requires: python2-decorator Recommends: python2-pillow %description -n python2-APLpy APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at producing publication-quality plots of astronomical imaging data in FITS format. The module uses Matplotlib, a powerful and interactive plotting package. It is capable of creating output files in several graphical formats, including EPS, PDF, PS, PNG, and SVG. %package -n python3-APLpy Summary: The Astronomical Plotting Library in Python %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-numpy BuildRequires: python3-matplotlib BuildRequires: python3-astropy BuildRequires: python3-decorator BuildRequires: python3-pillow BuildRequires: python3-pytest Requires: python3-numpy Requires: python3-matplotlib Requires: python3-astropy Requires: python3-decorator Recommends: python3-pillow %description -n python3-APLpy APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at producing publication-quality plots of astronomical imaging data in FITS format. The module uses Matplotlib, a powerful and interactive plotting package. It is capable of creating output files in several graphical formats, including EPS, PDF, PS, PNG, and SVG. %prep %setup -q -n %{name}-%{version} rm -rf aplpy/decorator.py %patch0 -p1 %build %py2_build %py3_build %install %py2_install %py3_install %check # Empty matplotlibrc mkdir matplotlib touch matplotlib/matplotlibrc export XDG_CONFIG_HOME=`pwd` # Avoid writing bad pyc files export PYTHONDONTWRITEBYTECODE=1 pushd %{buildroot}/%{python2_sitelib} py.test-%{python2_version} aplpy popd pushd %{buildroot}/%{python3_sitelib} py.test-%{python3_version} aplpy popd %files -n python2-APLpy %doc CHANGES.rst README.md %license LICENSE.md %{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/aplpy/ %files -n python3-APLpy %doc CHANGES.rst README.md %license LICENSE.md %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/aplpy/ %changelog * Wed Jul 26 2017 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Sergio Pascual - 1.1.1-1 - New upstream version (1.1.1) - Include license file - Do not write pyc files when running tests * Mon Dec 19 2016 Miro Hrončok - 1.1-3 - Rebuild for Python 3.6 * Sun Oct 02 2016 Sergio Pascual - 1.1-2 - EVR bump * Sun Sep 25 2016 Sergio Pascual - 1.1-1 - New upstream version (1.1) - Updated spec - Fixes bz #1380134 * Wed Feb 03 2016 Fedora Release Engineering - 1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 17 2015 Sergio Pascual - 1.0-4 - Disable some failing tests (https://github.com/aplpy/aplpy/issues/278) * Tue Nov 10 2015 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Jun 16 2015 Fedora Release Engineering - 1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Mar 02 2015 Sergio Pascual - 1.0-1 - New upstream version (1.0) - Use license macro * Thu Dec 11 2014 Sergio Pascual - 0.9.14-2 - Disable python3 tests * Thu Dec 11 2014 Sergio Pascual - 0.9.14-1 - New upstream source (0.9.14), several bug fixes * Tue Oct 07 2014 Sergio Pascual - 0.9.13-1 - New upstream source (0.9.13), fixes bug in 0.9.11 and 0.9.12 * Thu Sep 11 2014 Sergio Pascual - 0.9.12-2 - Provide python3 subpackage - Unbundle decorator * Thu Sep 11 2014 Sergio Pascual - 0.9.12-1 - New upstream source (0.9.12) - Tests enabled * Wed Sep 10 2014 Sergio Pascual - 0.9.11-2 - Disable tests for the moment * Tue Jul 08 2014 Sergio Pascual - 0.9.11-1 - Updated to new version - Run tests on installed version - Use python2 macros * Fri Jun 06 2014 Fedora Release Engineering - 0.9.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Aug 02 2013 Fedora Release Engineering - 0.9.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 0.9.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 0.9.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu May 03 2012 Germán A. Racca - 0.9.8-1 - Updated to new version - Included tests in %%check and corresponding BRs - Packaged tests in %%doc section * Mon Feb 06 2012 Germán A. Racca 0.9.6-3 - Minor changes to spec file after approval - Removed INSTALL file * Mon Jan 30 2012 Germán A. Racca 0.9.6-2 - Changed name of spec file to match the project name * Mon Jan 23 2012 Germán A. Racca 0.9.6-1 - Initial release of RPM package