Drop python2 subpackage
This commit is contained in:
parent
7bd2319779
commit
42f5536770
1 changed files with 4 additions and 37 deletions
41
APLpy.spec
41
APLpy.spec
|
|
@ -11,7 +11,7 @@ Source0: https://pypi.io/packages/source/A/%{name}/%{name}-%{version}.tar
|
|||
Patch0: aplpy-system-decorator.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel python3-devel
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%description
|
||||
APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at
|
||||
|
|
@ -20,29 +20,6 @@ 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}}
|
||||
|
|
@ -72,11 +49,9 @@ rm -rf aplpy/decorator.py
|
|||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
|
|
@ -86,20 +61,9 @@ 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
|
||||
# Remove spurious test remnants
|
||||
rm -fr %{buildroot}/%{python2_sitelib}/v
|
||||
|
||||
%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
|
||||
|
|
@ -108,6 +72,9 @@ rm -fr %{buildroot}/%{python2_sitelib}/v
|
|||
%{python3_sitelib}/aplpy/
|
||||
|
||||
%changelog
|
||||
* Fri Oct 05 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1.1-2
|
||||
- Drop python2 subpackage
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue