7841135
%global srcname astroML
5bc2c7a
7841135
Name:           python-%{srcname}
7841135
Version:        0.4.1
d134951
Release:        7%{?dist}
5bc2c7a
Summary:        Python tools for machine learning and data mining in Astronomy
5bc2c7a
5bc2c7a
License:        BSD
5bc2c7a
URL:            http://www.astroml.org/
7841135
Source0:        %{pypi_source}
5bc2c7a
5bc2c7a
BuildArch:      noarch
fc0df0c
BuildRequires:  python3-astropy
fc0df0c
BuildRequires:  python3-devel
fc0df0c
BuildRequires:  python3-matplotlib
7841135
BuildRequires:  python3-pytest-astropy
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
7841135
%package -n python3-%{srcname}
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
7841135
Provides:       python3-astroML-addons = %{version}-%{release}
7841135
Obsoletes:      python3-astroML-addons < 0.4-1
7841135
%{?python_provide:%python_provide python3-%{srcname}}
fc0df0c
7841135
%description -n python3-%{srcname}
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
7841135
Summary:        Docs and examples for the %{srcname} package
5bc2c7a
5bc2c7a
%description doc
7841135
Documentation and examples for %{srcname}.
5bc2c7a
5bc2c7a
5bc2c7a
%prep
7841135
%setup -qn %{srcname}-%{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 :(
7841135
#%{__python3} setup.py test
5bc2c7a
5bc2c7a
%files doc
fc0df0c
%license LICENSE.rst
7841135
%doc CHANGES.rst README.rst examples
fc0df0c
7841135
%files -n python3-%{srcname}
fc0df0c
%license LICENSE.rst
7841135
%doc CHANGES.rst README.rst
7841135
%{python3_sitelib}/%{srcname}
7841135
%{python3_sitelib}/%{srcname}-%{version}-*.egg-info
5bc2c7a
5bc2c7a
%changelog
d134951
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
d134951
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d134951
1cc003c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.1-6
1cc003c
- Rebuilt for Python 3.10
1cc003c
37474a6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-5
37474a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
37474a6
2d34cc4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-4
2d34cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2d34cc4
3b3f8d9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-3
3b3f8d9
- Rebuilt for Python 3.9
3b3f8d9
31215e1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
31215e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
31215e1
7841135
* Sun Oct 27 2019 Christian Dersch <lupinix@fedoraproject.org> - 0.4.1-1
7841135
- new version
7841135
eade529
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-25
eade529
- Rebuilt for Python 3.8
eade529
735dfa6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-24
735dfa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
735dfa6
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