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