fc0df0c
%global upname astroML
5bc2c7a
fc0df0c
Name:           python-%{upname}
fc0df0c
Version:        0.3
910fae9
Release:        23%{?dist}
5bc2c7a
Summary:        Python tools for machine learning and data mining in Astronomy
5bc2c7a
5bc2c7a
License:        BSD
5bc2c7a
URL:            http://www.astroml.org/
fc0df0c
Source0:        https://github.com/%{upname}/%{upname}/archive/v%{version}.tar.gz
5bc2c7a
5bc2c7a
BuildArch:      noarch
5bc2c7a
BuildRequires:  xorg-x11-server-Xvfb
fc0df0c
BuildRequires:  python3-astropy
fc0df0c
BuildRequires:  python3-devel
fc0df0c
BuildRequires:  python3-matplotlib
fc0df0c
BuildRequires:  python3-nose
fc0df0c
BuildRequires:  python3-numpy
fc0df0c
BuildRequires:  python3-scikit-learn
fc0df0c
BuildRequires:  python3-setuptools
fc0df0c
BuildRequires:  python3-scipy
5bc2c7a
ea28c23
%global _description\
ea28c23
AstroML is a Python module for machine learning and data mining built on\
ea28c23
numpy, scipy, scikit-learn, and matplotlib, and distributed under the\
ea28c23
3-clause BSD license. It contains a growing library of statistical and\
ea28c23
machine learning routines for analyzing astronomical data in python,\
ea28c23
loaders for several open astronomical datasets, and a large suite of\
ea28c23
examples of analyzing and visualizing astronomical datasets.\
ea28c23
ea28c23
ea28c23
%description %_description
ea28c23
fc0df0c
%package -n python3-%{upname}
fc0df0c
Summary:        Python tools for machine learning and data mining in Astronomy
fc0df0c
fc0df0c
Requires:       python3-numpy
fc0df0c
Requires:       python3-astropy
fc0df0c
Requires:       python3-matplotlib
fc0df0c
Requires:       python3-scikit-learn
fc0df0c
Requires:       python3-scipy
455b052
Recommends:     python3-healpy
d64eb91
%{?python_provide:%python_provide python3-%{upname}}
fc0df0c
fc0df0c
%description -n python3-%{upname}
fc0df0c
AstroML is a Python module for machine learning and data mining built on
fc0df0c
numpy, scipy, scikit-learn, and matplotlib, and distributed under the
fc0df0c
3-clause BSD license. It contains a growing library of statistical and
fc0df0c
machine learning routines for analyzing astronomical data in python,
fc0df0c
loaders for several open astronomical datasets, and a large suite of
fc0df0c
examples of analyzing and visualizing astronomical datasets.
fc0df0c
5bc2c7a
%package doc
fc0df0c
Summary:        Docs and examples for the %{upname} package
5bc2c7a
5bc2c7a
%description doc
fc0df0c
Documentation and examples for %{upname}.
5bc2c7a
5bc2c7a
5bc2c7a
%prep
fc0df0c
%setup -qn %{upname}-%{version}
d68671d
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
5bc2c7a
5bc2c7a
5bc2c7a
%build
d68671d
%py3_build
5bc2c7a
5bc2c7a
%install
d68671d
%py3_install
5bc2c7a
5bc2c7a
%check
f5b6bd2
# Disabled tests as they do not work properly right now :(
f5b6bd2
#xvfb-run -a nosetests-%{python3_version}
5bc2c7a
5bc2c7a
%files doc
fc0df0c
%license LICENSE.rst
fc0df0c
%doc CHANGES.rst CITATION README.rst book_figures examples paper_figures
fc0df0c
fc0df0c
%files -n python3-%{upname}
fc0df0c
%license LICENSE.rst
fc0df0c
%doc CHANGES.rst CITATION README.rst
fc0df0c
%{python3_sitelib}/%{upname}
fc0df0c
%{python3_sitelib}/%{upname}-%{version}-*.egg-info
5bc2c7a
5bc2c7a
%changelog
910fae9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-23
910fae9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
910fae9
d68671d
* Tue Oct 02 2018 Christian Dersch <lupinix@fedoraproject.org> - 0.3-22
d68671d
- drop python2 subpackage
d68671d
a5b7556
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-21
a5b7556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a5b7556
cdd06f4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3-20
cdd06f4
- Rebuilt for Python 3.7
cdd06f4
fca9e5f
* Wed Feb 14 2018 Christian Dersch <lupinix@mailbox.org> - 0.3-19
fca9e5f
- rebuilt
fca9e5f
0f43214
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-18
0f43214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0f43214
2c576e3
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3-17
2c576e3
- Update Python 2 dependency declarations to new packaging standards
2c576e3
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2c576e3
455b052
* Tue Oct 17 2017 Christian Dersch <lupinix@mailbox.org> - 0.3-16
455b052
- Recommend healpy, an optional dependency of astroML
455b052
d64eb91
* Mon Aug 21 2017 Christian Dersch <lupinix@mailbox.org> - 0.3-15
d64eb91
- Fixed Python 2 renaming
d64eb91
ea28c23
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3-14
ea28c23
- Python 2 binary package renamed to python2-astroml
ea28c23
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
ea28c23
fb3a474
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-13
fb3a474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fb3a474
52ea7c7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-12
52ea7c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
52ea7c7
9acfbe2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3-11
9acfbe2
- Rebuild for Python 3.6
9acfbe2
Dominik 'Rathann' Mierzejewski bbf1930
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.3-10
Dominik 'Rathann' Mierzejewski bbf1930
- rebuilt for matplotlib-2.0.0
Dominik 'Rathann' Mierzejewski bbf1930
39455ba
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-9
39455ba
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
39455ba
Björn Esser e62e1eb
* Wed Mar 30 2016 Björn Esser <fedora@besser82.io> - 0.3-8
Björn Esser e62e1eb
- Require python2-scikit-learn
Björn Esser e62e1eb
b61dc2d
* Fri Mar 25 2016 Christian Dersch <lupinix@mailbox.org> - 0.3-7
b61dc2d
- rebuilt
b61dc2d
8bebd65
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-6
8bebd65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8bebd65
de2294e
* Wed Nov 25 2015 Christian Dersch <lupinix@mailbox.org> - 0.3-5
de2294e
- Rebuilt for updates in Python 3.5
de2294e
63aa8b0
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
63aa8b0
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
63aa8b0
f423202
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
f423202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f423202
fa692f3
* Tue Feb 24 2015 Christian Dersch <chrisdersch@gmail.com> - 0.3-2
fa692f3
- small spec fixes
fa692f3
fc0df0c
* Tue Feb 24 2015 Christian Dersch <chrisdersch@gmail.com> - 0.3-1
fc0df0c
- new upstream release 0.3
fc0df0c
- initial Python 3 support
f5b6bd2
- disabled tests temporarily
fc0df0c
0877070
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
0877070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0877070
5bc2c7a
* Mon Mar 17 2014 Christian Dersch <chrisdersch@gmail.com> - 0.2-2
5bc2c7a
- fixed spec to match packaging guidelines
5bc2c7a
5bc2c7a
* Mon Feb 24 2014 Christian Dersch <chrisdersch@gmail.com> - 0.2-1
5bc2c7a
- upgrade to version 0.2, addons is now a seperate package (upstream change)
5bc2c7a
5bc2c7a
* Thu Oct 17 2013 Christian Dersch <chrisdersch@gmail.com> - 0.1.2-2
5bc2c7a
- fixed spec to match packaging guidelines
5bc2c7a
5bc2c7a
* Thu Oct 10 2013 Christian Dersch <chrisdersch@gmail.com> - 0.1.2-1
5bc2c7a
- initial spec