Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Sergio Pascual | 5569f3c90a |
|
@ -0,0 +1,35 @@
|
|||
diff -ur astropy-3.1.2/astropy/utils/iers/iers.py astropy-3.1.2.iers/astropy/utils/iers/iers.py
|
||||
--- astropy-3.1.2/astropy/utils/iers/iers.py 2019-02-24 02:08:29.000000000 +0100
|
||||
+++ astropy-3.1.2.iers/astropy/utils/iers/iers.py 2019-11-07 18:21:23.978928554 +0100
|
||||
@@ -35,8 +35,8 @@
|
||||
|
||||
# IERS-A default file name, URL, and ReadMe with content description
|
||||
IERS_A_FILE = 'finals2000A.all'
|
||||
-IERS_A_URL = 'http://maia.usno.navy.mil/ser7/finals2000A.all'
|
||||
-IERS_A_URL_MIRROR = 'http://toshi.nofs.navy.mil/ser7/finals2000A.all'
|
||||
+IERS_A_URL = 'https://datacenter.iers.org/data/9/finals2000A.all'
|
||||
+IERS_A_URL_MIRROR = 'ftp://cddis.gsfc.nasa.gov/pub/products/iers/finals2000A.all'
|
||||
IERS_A_README = get_pkg_data_filename('data/ReadMe.finals2000A')
|
||||
|
||||
# IERS-B default file name, URL, and ReadMe with content description
|
||||
@@ -398,7 +398,7 @@
|
||||
"""IERS Table class targeted to IERS A, provided by USNO.
|
||||
|
||||
These include rapid turnaround and predicted times.
|
||||
- See http://maia.usno.navy.mil/
|
||||
+ See https://datacenter.iers.org/eop.php
|
||||
|
||||
Notes
|
||||
-----
|
||||
diff -ur astropy-3.1.2/docs/utils/iers.rst astropy-3.1.2.iers/docs/utils/iers.rst
|
||||
--- astropy-3.1.2/docs/utils/iers.rst 2019-02-24 02:08:29.000000000 +0100
|
||||
+++ astropy-3.1.2.iers/docs/utils/iers.rst 2019-11-07 18:22:31.564014297 +0100
|
||||
@@ -109,7 +109,7 @@
|
||||
the IERS service.
|
||||
|
||||
The IERS Service provides the default online table
|
||||
-(`<http://maia.usno.navy.mil/ser7/finals2000A.all>`_) and updates the content
|
||||
+(`<https://datacenter.iers.org/data/9/finals2000A.all>`_) and updates the content
|
||||
once each 7 days. The default value of ``auto_max_age`` is 30 days to avoid
|
||||
unnecessary network access, but one can reduce this to as low as 10 days.
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
Name: python-astropy
|
||||
Version: 3.1.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A Community Python Library for Astronomy
|
||||
License: BSD
|
||||
|
||||
|
@ -25,6 +25,9 @@ Patch1: python-astropy-system-six.patch
|
|||
# Import upstream fix for PyYAML 5
|
||||
# https://github.com/astropy/astropy/pull/8500
|
||||
Patch2: python-astropy-fix-pyyaml5-8500.patch
|
||||
# Patch URL to access IERS-A file.
|
||||
# https://github.com/astropy/astropy/issues/9427
|
||||
Patch3: python-astropy-iers-a.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: git
|
||||
|
@ -141,6 +144,8 @@ rm -rf astropy*egg-info
|
|||
cp %{SOURCE2} astropy/extern/ply.py
|
||||
# Fix for PyYAML 5.x
|
||||
%patch2 -p1
|
||||
# Change IERS A url
|
||||
%patch3 -p1
|
||||
|
||||
# Force Cython re-run
|
||||
echo "cython_version = 'unknown'" > astropy/cython_version.py
|
||||
|
@ -210,6 +215,9 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 07 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 3.1.2-3
|
||||
- Patch to change the IERS-A download url, USNO is offline
|
||||
|
||||
* Fri Mar 29 2019 Christian Dersch <lupinix@fedoraproject.org> - 3.1.2-2
|
||||
- Imported upstream fix for PyYAML 5.x
|
||||
|
||||
|
|
Loading…
Reference in New Issue