Name:     python3-module-ephem
Version:  4.1.5
Release:  alt2
Group:    Development/Python3
License:  MIT
Summary:  Compute positions of the planets and stars
URL:      https://github.com/brandon-rhodes/pyephem
Packager: Alexander Lubyagin <dfpl@altlinux.org>
Source:   %name-%version.tar

BuildRequires(pre): rpm-macros-pyproject
BuildRequires:  python3-module-setuptools
BuildRequires:  python3-module-sphinx

%description
PyEphem provides an ephem Python package for performing high-precision astronomy
computations. The underlying numeric routines are coded in C and are the same
ones that drive the popular XEphem astronomy application, whose author,
Elwood Charles Downey, generously gave permission for their use in PyEphem.
The name ephem is short for the word ephemeris, which is the traditional term
for a table giving the position of a planet, asteroid, or comet for a series
of dates.

%prep
%setup

%build
python3 setup.py build_ext -i
make -C ephem/doc html

%install
python3 setup.py install --root=%buildroot

%check
python3 -m unittest discover ephem

%files
%doc *.rst LICENSE ephem/doc/*.rst issues
%python3_sitelibdir/ephem/
%exclude %python3_sitelibdir/ephem/doc/
%exclude %python3_sitelibdir/ephem/tests/

%changelog
* Wed Jul 31 2024 Alexander Lubyagin <dfpl@altlinux.org> 4.1.5-alt2
- MIT license

* Tue Jan 09 2024 Grigory Ustinov <grenka@altlinux.org> 4.1.5-alt1
- 4.1.5 released

* Tue Jan 24 2023 Sergey Bolshakov <sbolshakov@altlinux.ru> 4.1.4-alt1
- 4.1.4 released

* Thu Jul 21 2022 Sergey Bolshakov <sbolshakov@altlinux.ru> 4.1.3-alt1
- 4.1.3 released

* Wed May 18 2022 Sergey Bolshakov <sbolshakov@altlinux.ru> 4.1.2-alt1
- 4.1.2 released

* Thu Sep 24 2020 Sergey Bolshakov <sbolshakov@altlinux.ru> 3.7.7.1-alt1
- 3.7.7.1 released

* Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.7.6.0-alt1.git20141124.1.1.1
- (NMU) Rebuilt with python-3.6.4.

* Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 3.7.6.0-alt1.git20141124.1.1
- (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10
  (for ABI dependence and new python3(*) reqs)

* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 3.7.6.0-alt1.git20141124.1
- NMU: Use buildreq for BR.

* Wed Nov 26 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.7.6.0-alt1.git20141124
- Initial build for Sisyphus
