|
Sergio Pascual |
f598a28 |
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
Sergio Pascual |
f598a28 |
%global with_python3 1
|
|
Sergio Pascual |
f598a28 |
%else
|
|
Sergio Pascual |
f598a28 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
Sergio Pascual |
f598a28 |
%endif
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
Name: ATpy
|
|
Sergio Pascual |
d6096f1 |
Version: 0.9.6
|
|
Sergio Pascual |
d6096f1 |
Release: 1%{?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 |
f598a28 |
URL: http://atpy.github.com/
|
|
Sergio Pascual |
f598a28 |
Source0: https://github.com/downloads/atpy/atpy/%{name}-%{version}.tar.gz
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
BuildArch: noarch
|
|
Sergio Pascual |
f598a28 |
BuildRequires: python-devel
|
|
Sergio Pascual |
f598a28 |
BuildRequires: python-setuptools
|
|
Sergio Pascual |
f598a28 |
Requires: numpy
|
|
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 |
7b0108a |
Requires: python3-numpy
|
|
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 |
chmod -x LICENSE
|
|
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 |
f598a28 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%build
|
|
Sergio Pascual |
f598a28 |
%{__python} 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 |
rm -rf %{buildroot}
|
|
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 |
f598a28 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%files
|
|
Sergio Pascual |
f598a28 |
%defattr(-,root,root,-)
|
|
Sergio Pascual |
f598a28 |
%doc CHANGES LICENSE README
|
|
Sergio Pascual |
f598a28 |
%{python_sitelib}/ATpy-*.egg-info
|
|
Sergio Pascual |
f598a28 |
%{python_sitelib}/atpy/
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%if 0%{?with_python3}
|
|
Sergio Pascual |
f598a28 |
%files -n python3-ATpy
|
|
Sergio Pascual |
f598a28 |
%defattr(-,root,root,-)
|
|
Sergio Pascual |
f598a28 |
%doc CHANGES LICENSE README
|
|
Sergio Pascual |
f598a28 |
%{python3_sitelib}/ATpy-*.egg-info
|
|
Sergio Pascual |
f598a28 |
%{python3_sitelib}/atpy/
|
|
Sergio Pascual |
f598a28 |
%endif # with_python3
|
|
Sergio Pascual |
f598a28 |
|
|
Sergio Pascual |
f598a28 |
%changelog
|
|
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
|