|
Sergio Pascual |
813f53d |
%global with_python3 1
|
|
Sergio Pascual |
813f53d |
|
|
Sergio Pascual |
f598a28 |
Name: ATpy
|
|
Sergio Pascual |
ee00c77 |
Version: 0.9.7
|
|
 |
ae4026c |
Release: 12%{?dist}
|
|
Sergio Pascual |
f598a28 |
Summary: Astronomical Tables in Python
|
|
Sergio Pascual |
f598a28 |
License: MIT
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
Group: Development/Libraries
|
|
Sergio Pascual |
ee00c77 |
URL: http://atpy.readthedocs.org
|
|
Sergio Pascual |
ee00c77 |
Source0: https://pypi.python.org/packages/source/A/ATpy/%{name}-%{version}.tar.gz
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
BuildArch: noarch
|
|
Sergio Pascual |
ee00c77 |
BuildRequires: python2-devel
|
|
Sergio Pascual |
f598a28 |
BuildRequires: python-setuptools
|
|
Sergio Pascual |
6af1c79 |
Requires: numpy python-astropy
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
BuildRequires: python3-devel
|
|
Sergio Pascual |
f598a28 |
BuildRequires: python3-setuptools
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%description
|
|
Sergio Pascual |
f598a28 |
ATpy is a high-level Python package providing a way to manipulate tables of
|
|
Sergio Pascual |
f598a28 |
astronomical data in a uniform way. It provides built-in support for NumPy
|
|
Sergio Pascual |
f598a28 |
recarrays and common astronomical file/database formats (FITS, VO, HDF5,
|
|
Sergio Pascual |
f598a28 |
and ASCII tables) with a very simple API.
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
%package -n python3-ATpy
|
|
Sergio Pascual |
f598a28 |
Summary: Astronomical Tables in Python
|
|
Sergio Pascual |
6af1c79 |
Requires: python3-numpy python3-astropy
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%description -n python3-ATpy
|
|
Sergio Pascual |
f598a28 |
ATpy is a high-level Python package providing a way to manipulate tables of
|
|
Sergio Pascual |
f598a28 |
astronomical data in a uniform way. It provides built-in support for NumPy
|
|
Sergio Pascual |
f598a28 |
recarrays and common astronomical file/database formats (FITS, VO, HDF5,
|
|
Sergio Pascual |
f598a28 |
and ASCII tables) with a very simple API.
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%prep
|
|
Sergio Pascual |
f598a28 |
%setup -q
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
rm -rf %{py3dir}
|
|
Sergio Pascual |
f598a28 |
cp -a . %{py3dir}
|
|
Sergio Pascual |
f598a28 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
6af1c79 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%build
|
|
Sergio Pascual |
6af1c79 |
%{__python2} setup.py build
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
pushd %{py3dir}
|
|
Sergio Pascual |
f598a28 |
%{__python3} setup.py build
|
|
Sergio Pascual |
f598a28 |
popd
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%install
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
pushd %{py3dir}
|
|
Sergio Pascual |
f598a28 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
f598a28 |
popd
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
6af1c79 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
6af1c79 |
|
|
Sergio Pascual |
f598a28 |
%files
|
|
Sergio Pascual |
ee00c77 |
%doc CHANGES LICENSE README.md
|
|
Sergio Pascual |
6af1c79 |
%{python2_sitelib}/ATpy-*.egg-info
|
|
Sergio Pascual |
6af1c79 |
%{python2_sitelib}/atpy
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
%files -n python3-ATpy
|
|
Sergio Pascual |
ee00c77 |
%doc CHANGES LICENSE README.md
|
|
Sergio Pascual |
f598a28 |
%{python3_sitelib}/ATpy-*.egg-info
|
|
Sergio Pascual |
6af1c79 |
%{python3_sitelib}/atpy
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%changelog
|
|
 |
ae4026c |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-12
|
|
 |
ae4026c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
ae4026c |
|
|
 |
fba4f4a |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-11
|
|
 |
fba4f4a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
fba4f4a |
|
|
 |
a7f3c12 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.9.7-10
|
|
 |
a7f3c12 |
- Rebuild for Python 3.6
|
|
 |
a7f3c12 |
|
|
 |
c3ee2bc |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-9
|
|
 |
c3ee2bc |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
c3ee2bc |
|
|
 |
372d872 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-8
|
|
 |
372d872 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
 |
372d872 |
|
|
 |
1998a81 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-7
|
|
 |
1998a81 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
 |
1998a81 |
|
|
 |
2292a8d |
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-6
|
|
 |
2292a8d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
 |
2292a8d |
|
|
 |
aacf97d |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
|
|
 |
aacf97d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
 |
aacf97d |
|
|
 |
53532af |
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.9.7-4
|
|
 |
53532af |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
 |
53532af |
|
|
Sergio Pascual |
813f53d |
* Mon Jan 27 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.7-3
|
|
Sergio Pascual |
813f53d |
- Activate python3 build
|
|
Sergio Pascual |
813f53d |
|
|
Sergio Pascual |
95792dc |
* Thu Jan 16 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.7-2
|
|
Sergio Pascual |
95792dc |
- Add a requirement on python-astropy
|
|
Sergio Pascual |
95792dc |
- Macro fixes
|
|
Sergio Pascual |
95792dc |
|
|
Sergio Pascual |
ee00c77 |
* Tue Jul 30 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.7-1
|
|
Sergio Pascual |
ee00c77 |
- New upstream release 0.9.7
|
|
Sergio Pascual |
ee00c77 |
- Minor cleanups in the spec
|
|
Sergio Pascual |
ee00c77 |
|
|
 |
2dc8e4f |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-5
|
|
 |
2dc8e4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
 |
2dc8e4f |
|
|
 |
b2aaa69 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.6-4
|
|
 |
b2aaa69 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
 |
b2aaa69 |
|
|
 |
388c748 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.6-3
|
|
 |
388c748 |
- remove rhel logic from with_python3 conditional
|
|
 |
388c748 |
|
|
 |
39c8891 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
|
|
 |
39c8891 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
 |
39c8891 |
|
|
Sergio Pascual |
d6096f1 |
* Mon May 21 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.6-1
|
|
Sergio Pascual |
d6096f1 |
- New upstream release.
|
|
Sergio Pascual |
d6096f1 |
|
|
 |
801e580 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.3-2
|
|
 |
801e580 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
 |
801e580 |
|
|
Sergio Pascual |
342e952 |
* Thu Jul 14 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.5.3-1
|
|
Sergio Pascual |
342e952 |
- New upstream release.
|
|
Sergio Pascual |
9507e75 |
|
|
Sergio Pascual |
7b0108a |
* Wed May 11 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.5-2
|
|
Sergio Pascual |
7b0108a |
- Moving Requires for python3 to its proper place in package macro
|
|
Sergio Pascual |
7b0108a |
|
|
Sergio Pascual |
f598a28 |
* Mon May 02 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.5-1
|
|
Sergio Pascual |
f598a28 |
- New upstream release
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
* Tue Apr 26 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.4-3
|
|
Sergio Pascual |
f598a28 |
- Added support for python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
* Tue Apr 26 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.4-2
|
|
Sergio Pascual |
f598a28 |
- Updated upstream web site
|
|
Sergio Pascual |
f598a28 |
- More details in files section
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
* Tue Nov 30 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.4-1
|
|
Sergio Pascual |
f598a28 |
- Initial spec file
|