public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/astrometry] f45: Update to 0.99 (Fedora#2559193)
@ 2026-11-07 12:31 Mattia Verga
0 siblings, 0 replies; only message in thread
From: Mattia Verga @ 2026-11-07 12:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/astrometry
Branch : f45
Commit : 734297f335aa7a3a1ab7da83b0e7f0b1c34c3c24
Author : Mattia Verga <mattia.verga@proton.me>
Date : 2026-11-07T13:29:57+01:00
Stats : +3/-115 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/astrometry/c/734297f335aa7a3a1ab7da83b0e7f0b1c34c3c24?branch=f45
Log:
Update to 0.99 (Fedora#2559193)
---
diff --git a/.gitignore b/.gitignore
index b660784..892a9ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@
/astrometry.net-0.96-clean.tar.xz
/astrometry.net-0.97-clean.tar.xz
/astrometry.net-0.98-clean.tar.xz
+/astrometry.net-0.99-clean.tar.xz
diff --git a/Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch b/Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch
deleted file mode 100644
index f0a1776..0000000
--- a/Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-diff -up astrometry.net-0.98/libkd/pyspherematch.c.swig45 astrometry.net-0.98/libkd/pyspherematch.c
---- astrometry.net-0.98/libkd/pyspherematch.c.swig45 2026-07-27 16:59:31.982121322 +0200
-+++ astrometry.net-0.98/libkd/pyspherematch.c 2026-07-27 16:59:31.988237938 +0200
-@@ -7,7 +7,7 @@
-
- #if PY_MAJOR_VERSION >= 3
- #define IS_PY3K
--#define PyInt_FromLong PyLong_FromLong
-+#define PyLong_FromLong PyLong_FromLong
- #endif
-
- #include <stdio.h>
-@@ -458,7 +458,7 @@ static PyMethodDef kdtree_methods[] = {
- };
-
- static PyObject* KdTree_n(KdObject* self, void* closure) {
-- return PyInt_FromLong(kdtree_n(self->kd));
-+ return PyLong_FromLong(kdtree_n(self->kd));
- }
-
- static PyObject* KdTree_bbox(KdObject* self, void* closure) {
-@@ -564,9 +564,9 @@ static void callback_dualtree2(void* v,
- lst = PyList_New(1);
- // SetItem steals a ref -- that's what we want.
- PyList_SetItem(dt->indlist, ind1, lst);
-- PyList_SET_ITEM(lst, 0, PyInt_FromLong(ind2));
-+ PyList_SET_ITEM(lst, 0, PyLong_FromLong(ind2));
- } else {
-- PyList_Append(lst, PyInt_FromLong(ind2));
-+ PyList_Append(lst, PyLong_FromLong(ind2));
- }
- }
-
-diff -up astrometry.net-0.98/plot/plotstuff.i.swig45 astrometry.net-0.98/plot/plotstuff.i
---- astrometry.net-0.98/plot/plotstuff.i.swig45 2026-07-27 16:59:31.983121343 +0200
-+++ astrometry.net-0.98/plot/plotstuff.i 2026-07-27 17:16:11.176233377 +0200
-@@ -125,7 +125,7 @@ void free(void* ptr);
- Py_DECREF($result);
- $result = PyList_New(3);
- for (i=0; i<3; i++) {
-- PyObject *o = PyInt_FromLong((long)$1[i]);
-+ PyObject *o = PyLong_FromLong((long)$1[i]);
- PyList_SetItem($result,i,o);
- }
- }
-@@ -142,7 +142,7 @@ void free(void* ptr);
- for (i=0; i<3; i++) {
- PyObject *o = PySequence_GetItem($input, i);
- if (PyNumber_Check(o)) {
-- temp[i] = (int)PyInt_AsLong(o);
-+ temp[i] = (int)PyLong_AsLong(o);
- } else {
- PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
- return NULL;
-diff -up astrometry.net-0.98/util/index_pyutils.c.swig45 astrometry.net-0.98/util/index_pyutils.c
---- astrometry.net-0.98/util/index_pyutils.c.swig45 2026-07-27 16:59:31.985121387 +0200
-+++ astrometry.net-0.98/util/index_pyutils.c 2026-07-27 16:59:31.989357569 +0200
-@@ -70,7 +70,7 @@ static PyObject* qidxfile_get_quad_list(
- static PyObject* pyval_int(void* v, int index) {
- PyObject* pyval;
- int* i = (int*)v;
-- pyval = PyInt_FromLong((long)i[index]);
-+ pyval = PyLong_FromLong((long)i[index]);
- assert(pyval);
- return pyval;
- }
-diff -up astrometry.net-0.98/util/util.i.swig45 astrometry.net-0.98/util/util.i
---- astrometry.net-0.98/util/util.i.swig45 2026-07-27 16:59:31.986121408 +0200
-+++ astrometry.net-0.98/util/util.i 2026-07-27 17:16:11.177220170 +0200
-@@ -915,7 +915,7 @@ def lanczos_shift_image(img, dx, dy, ord
- D = $1->dimquads;
- $result = PyList_New(D);
- for (i = 0; i < D; i++) {
-- PyObject *o = PyInt_FromLong($3[i]);
-+ PyObject *o = PyLong_FromLong($3[i]);
- PyList_SetItem($result, i, o);
- }
- }
-@@ -990,11 +990,11 @@ long quadfile_addr(index_t* ind);
- int i;
- int nn;
- // convert $result to nn
-- //nn = (int)PyInt_AsLong($result);
-+ //nn = (int)PyLong_AsLong($result);
- nn = result;
- $result = PyList_New(nn);
- for (i = 0; i < nn; i++) {
-- PyObject *o = PyInt_FromLong($1[i]);
-+ PyObject *o = PyLong_FromLong($1[i]);
- PyList_SetItem($result, i, o);
- }
- }
-@@ -1012,7 +1012,7 @@ long quadfile_addr(index_t* ind);
- N = il_size($1);
- $result = PyList_New(N);
- for (i = 0; i < N; i++) {
-- PyObject *o = PyInt_FromLong(il_get($1, i));
-+ PyObject *o = PyLong_FromLong(il_get($1, i));
- PyList_SetItem($result, i, o);
- }
- }
-@@ -2290,7 +2290,7 @@ static PyObject* anwcs_xy2rd_wrapper(con
- d = *(double*)PyArray_DATA((PyArrayObject*)py);
- py = PyFloat_FromDouble(d);
- i = *(int*)PyArray_DATA((PyArrayObject*)pok);
-- pok = PyInt_FromLong(i);
-+ pok = PyLong_FromLong(i);
- ret = Py_BuildValue("(NNN)", pok, px, py);
- } else {
- // Grab the results -- note "4,2,3" order -- ok,x,y
diff --git a/astrometry.spec b/astrometry.spec
index 423a4d3..5d31734 100644
--- a/astrometry.spec
+++ b/astrometry.spec
@@ -7,7 +7,7 @@ ExcludeArch: %{ix86}
Name: astrometry
-Version: 0.98
+Version: 0.99
Release: %autorelease
Summary: Blind astrometric calibration of arbitrary astronomical images
@@ -64,9 +64,6 @@ Patch: Fix-shared-lib-flags-so-that-the-package-can-be-built-on-s390x.p
Patch: Don-t-copy-demo-files-to-examples.patch
Patch: Remove-errornous-generation-of-net-client.py.patch
Patch: Remove-horizons.py-from-Python-package.patch
-# Replace removed Python 2 C API macros with Python 3 equivalents
-# for compatibility with SWIG 4.5.0
-Patch: Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch
BuildRequires: gcc
BuildRequires: make
diff --git a/sources b/sources
index ca57343..c0d9e1a 100644
--- a/sources
+++ b/sources
@@ -2,4 +2,4 @@ SHA512 (astrometry-data-4107-4119.tar.zst) = e240c5e4b53fb8ae16c320d07c538640b9d
SHA512 (astrometry-data-5206.tar.zst) = 36194c33fa8856a925bb64fe1abb16c9ba94629c4626ce609fdb6f2e805ef403c596c6d5c492c1d42f29dd402a1e29249da4d2ab170145ba364533d068c97df2
SHA512 (astrometry-data-5205.tar.zst) = c5648a9e5067573f49ab3e8a598da4b9c8675a312fe45cd77cdb9ff1430389a50dd8e9ad1a1f80f79211e0d88db3b962942f56aa2b94c38618ece583095ec4c2
SHA512 (astrometry.net-0.97-clean.tar.xz) = ef28fc05a48be2ad7d70cbf430ed989d23a62ae322c30cdf543142164102c64960db33965827963534679c70f6858646ec700962c104b23d795b55fd79618fde
-SHA512 (astrometry.net-0.98-clean.tar.xz) = 2c36640ce4dbdcca8706d0da8e72a3c4ff59aa054c6377a14731956d41320046b77a956132c9bb71e4a1ba1dd1a13d1f3747d6f62d83f9a9be7eca8690f0705a
+SHA512 (astrometry.net-0.99-clean.tar.xz) = a78c2db58c9b48d19cea6f58e6925391e2906854a82fcbb26dc4d463f620f55127990c560d4e81386e8603cdc987ac64b8430fc0b176f7875d59ceda58b8eee6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 12:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 12:31 [rpms/astrometry] f45: Update to 0.99 (Fedora#2559193) Mattia Verga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox