From f1721625f31d9073298c536b0de20f237810f889 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 19 Nov 2018 15:58:49 +0000 Subject: [PATCH 01/28] Initial commit --- .gitignore | 1 + gifti_read_example.py | 66 ++++++++++++++++++++++++++++++ gifti_write_example.py | 75 ++++++++++++++++++++++++++++++++++ python-pygiftiio.spec | 92 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 235 insertions(+) create mode 100644 .gitignore create mode 100644 gifti_read_example.py create mode 100644 gifti_write_example.py create mode 100644 python-pygiftiio.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed8469f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pygiftiio-1.0.4.tar.gz diff --git a/gifti_read_example.py b/gifti_read_example.py new file mode 100644 index 0000000..e167e08 --- /dev/null +++ b/gifti_read_example.py @@ -0,0 +1,66 @@ +from pygiftiio import * +import numpy + +# Read Gifti Image +filename = '/path/to/file' +image = gifti_read_image(fn, 1) + +# image is now of type GiftiImage +# The _fields_ variable is populated with the same structure +# as the C-based struct +# Now we query the image to get data arrays, meta data, etc. +print "Number of Data Arrays in Image = " + str(image.numDA) + +# Extract a dataarray from the Gifti Image based on its index. +def get_da_from_index(im, ind): + if ind = im.numDA: + print "Index exceeds number of DA's in gifti image" + + # Most things are handled automatically by the ctypes wrapping. + # However, in the case of pointers, you need to access the + # contents of the pointer to get the right result + return im.darray[ind].contents + +# Extract a dataarray from the Gifti Image based on its IntentCode +def get_da_from_intent(im, intent): + for i in xrange(im.numDA): + # Intent code is stored in the DataArray struct + da = im.darray[i].contents + + # The wrapping allows the intent codes to be represented as + # integers as defined by the C-Macros or as the strings that + # are replaced. + if type(intent) == type(1): + if da.intent == intent: + # Grab the first DataArray that is the correct intent + return da + else: + # If it's not an int, we have to look up the integer value in + # the Intent Code dictionary + if da.intent == GiftiIntentCode.intents[intent]: + return da + +# Extract metadata from the GiftiImage OR a GiftiDataArray +def get_metadata_from_image(im): + metadata = im.meta + # metadata is now of type GiftiMetaData. It has length, name, and value arrays. + return metadata + +# Print all the metadata in the GiftiMetaData object +def print_metadata(md): + size = md.length + for i in xrange(size): + name = md.name[i] + val = md.value[i] + print str(name) + ": " + str(val) + +# Extract the Coordinate Transform(s) from a dataarray +def get_coord_xform(da): + dspace = da.coordsys.contents.dataspace + xformspace = da.coordsys.contents.xformspace + xform = da.coordsys.contents.xform + xform_ar = numpy.array(xform) # make the list of values into an array + xform_ar.shape = 4,4 # reshape the array into a valid transform matrix + return xform_ar # Return a numpy array representing the transform + + diff --git a/gifti_write_example.py b/gifti_write_example.py new file mode 100644 index 0000000..9605374 --- /dev/null +++ b/gifti_write_example.py @@ -0,0 +1,75 @@ +from pygiftiio import * +from ctypes import * +import numpy + +# setup +image = GiftiImage() +# CTypes provides constructors for pointer-based types. This is important +# to the initialization of the various members of the structs we need +# to write via the library. +image.version = c_char_p("version_string") +image.darray = POINTER(POINTER(GiftiDataArray))() +image.data = c_void_p(None) +image.numDA = c_int(0) +image.swapped = c_int(0) +image.compressed = c_int(0) + +# type(im) = GiftiImage +# type(ver) = str +def set_version(im, ver): + image.version = c_char_p(ver) + +# type(im) = GiftiImage +# type(numDA) = int +def set_numDA(im, numDA): + im.numDA = c_int(numDA) + +# type(im) = GiftiImage +# type(md) = GiftiMetaData +def set_meta_data(im, md): + im.meta = md + +# type(im) = GiftiImage +# type(da) = GiftiDataArray +def add_data_array(im, da): + cur_numda = im.numDA + + # Create a pointer to the new dataarray + da_ptr = pointer(da.data) + # Grab the pointer to the image's dataarrays + ptr = image.darray + + # Create a new dataarray array pointer + ar = (POINTER(GiftiDataArray)*(cur_numda+1))() + # We need to cast the resulting pointer for use by C + ar = cast(ar, POINTER(POINTER(GiftiDataArray))) + + # Copy all of the current da's to the new array. This just copies the pointers! + for i in xrange(num_da): + ar[i] = im.darray[i] + + # Add the new data array to the image's data + ar[num_da] = da_ptr + + # Reassign the pointer + im.darray = ar + + # Tell the image it has an extra DA now + cur_numda += 1 + im.numDA = c_int(cur_numda) + +# type(da) = GiftiDataArray +# type(axis) = int +# type(val) = int +def set_da_dim(da, axis, val): + # Simple setter. However, the axis variable here is a + # python array index (as the da dims is an array) + # To properly assign the value, the val variable must + # be usable by C, so we must form a c_int type. + # This is true for all Setters. + da.dims[axis] = c_int(val) + +# type(filename) = string +# type(im) = GiftiImage +def write_image(filename, im): + return gifti_write_image, im, filename, 1) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec new file mode 100644 index 0000000..1b8d658 --- /dev/null +++ b/python-pygiftiio.spec @@ -0,0 +1,92 @@ +# https://fedoraproject.org/wiki/Packaging:DistTag?rd=Packaging/DistTag#Conditionals +# http://rpm.org/user_doc/conditional_builds.html +%if 0%{?fedora} >= 30 +# disabled by default +%bcond_with py2 +%else +%bcond_without py2 0 +%endif + +%global srcname pygiftiio + +%global desc %{expand: \ +GIFTI is an XML-based file format for cortical surface data. This reference IO +implementation is developed by the Neuroimaging Informatics Technology +Initiative (NIfTI).} + +Name: python-%{srcname} +Version: 1.0.4 +Release: 1%{?dist} +Summary: Python bindings for Gifti + +License: GPLv2 +URL: https://www.nitrc.org/frs/?group_id=75 +Source0: https://www.nitrc.org/frs/download.php/1285/%{srcname}-%{version}.tar.gz +Source1: https://www.nitrc.org/frs/download.php/261/gifti_write_example.py +Source2: https://www.nitrc.org/frs/download.php/260/gifti_read_example.py + +BuildArch: noarch + +%description +%{desc} + +%if %{with py2} +%package -n python2-%{srcname} +Summary: %{summary} +BuildRequires: python2-devel +Requires: gifticlib-devel +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +%{desc} +%endif + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +Requires: gifticlib-devel +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{desc} + + +%prep +%autosetup -n %{srcname} +cp -v %{SOURCE1} . +cp -v %{SOURCE2} . + +%build +# Nothing to do + +%install +# Put things where they belong +install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python3_sitelib}/ +%if %{with py2} +install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ +%endif + +%check +# No tests + +%if %{with py2} +%files -n python2-%{srcname} +%license LICENSE.GPL +%doc gifti_write_example.py gifti_read_example.py +%{python2_sitelib}/%{srcname}.py +%{python2_sitelib}/%{srcname}.pyc +%{python2_sitelib}/%{srcname}.pyo +%endif + +%files -n python3-%{srcname} +%license LICENSE.GPL +%doc gifti_write_example.py gifti_read_example.py +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/__pycache__/%{srcname}.cpython-37.opt-1.pyc +%{python3_sitelib}/__pycache__/%{srcname}.cpython-37.pyc + +%changelog +* Sun Nov 18 2018 Ankur Sinha - 1.0.4-1 +- Only install py2 files conditionally +- Initial build +- Correct license diff --git a/sources b/sources new file mode 100644 index 0000000..4fa7b2f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pygiftiio-1.0.4.tar.gz) = cf5397ab971d89f1caac8f51d515ede47ad289f4ee49c5e9bedb647ce1d334b1bbe1992816607859dde11c14c40e5322d69f2e1f71c2d5efe30bf2ee9951c83e From 073709f53736a58f0365b286d35d16e23a733844 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 19 Nov 2018 16:30:56 +0000 Subject: [PATCH 02/28] Fix file list --- python-pygiftiio.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 1b8d658..41b17bc 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -82,10 +82,13 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %license LICENSE.GPL %doc gifti_write_example.py gifti_read_example.py %{python3_sitelib}/%{srcname}.py -%{python3_sitelib}/__pycache__/%{srcname}.cpython-37.opt-1.pyc -%{python3_sitelib}/__pycache__/%{srcname}.cpython-37.pyc +%{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.opt-1.pyc +%{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Nov 19 2018 Ankur Sinha - 1.0.4-2 +- Fix file list to cater to different py3 versions + * Sun Nov 18 2018 Ankur Sinha - 1.0.4-1 - Only install py2 files conditionally - Initial build From 017d622c9c46831dd4e47c36e6163828358c037a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 08:35:51 +0000 Subject: [PATCH 03/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 41b17bc..1023fbd 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Mon Nov 19 2018 Ankur Sinha - 1.0.4-2 - Fix file list to cater to different py3 versions From 8950809797285bf9104b5014b1be962b82cb69f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 15:29:20 +0000 Subject: [PATCH 04/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 1023fbd..04ea881 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sat Feb 02 2019 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 4c6056572f2778b6e66112f9e3197936a35c0358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Aug 2019 10:51:38 +0200 Subject: [PATCH 05/28] Rebuilt for Python 3.8 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 04ea881..0adaa47 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Aug 19 2019 Miro Hrončok - 1.0.4-5 +- Rebuilt for Python 3.8 + * Fri Jul 26 2019 Fedora Release Engineering - 1.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 36c722ad494a22ceecbfc392bedb5f1a887d7f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Oct 2019 14:24:52 +0200 Subject: [PATCH 06/28] Rebuilt for Python 3.8.0rc1 (#1748018) --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 0adaa47..a198e32 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Thu Oct 03 2019 Miro Hrončok - 1.0.4-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + * Mon Aug 19 2019 Miro Hrončok - 1.0.4-5 - Rebuilt for Python 3.8 From ee5db8117c05e759bee1efa598190806013bc51f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 14:23:28 +0000 Subject: [PATCH 07/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index a198e32..1033dc7 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Oct 03 2019 Miro Hrončok - 1.0.4-6 - Rebuilt for Python 3.8.0rc1 (#1748018) From 1e91fc857ca65e952349c78d86234294061b256d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 03:32:48 +0200 Subject: [PATCH 08/28] Rebuilt for Python 3.9 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 1033dc7..85649e4 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Tue May 26 2020 Miro Hrončok - 1.0.4-8 +- Rebuilt for Python 3.9 + * Thu Jan 30 2020 Fedora Release Engineering - 1.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 531d449ab3b2ab0cf12fe748cbe6aef95e324e9f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 03:04:33 +0000 Subject: [PATCH 09/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 85649e4..852ecac 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue May 26 2020 Miro Hrončok - 1.0.4-8 - Rebuilt for Python 3.9 From b3c481240585de7bf4b74cee237751be76690ab7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 12:34:44 +0000 Subject: [PATCH 10/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 852ecac..cb501d9 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 1.0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 7059aac9bf6e4d49b83864a89d4100fadfa9002e Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 20:53:27 +0200 Subject: [PATCH 11/28] Rebuilt for Python 3.10 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index cb501d9..1af0397 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jun 04 2021 Python Maint - 1.0.4-11 +- Rebuilt for Python 3.10 + * Wed Jan 27 2021 Fedora Release Engineering - 1.0.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 374408750788eef4e4d0561b5d62e99574584ea0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 08:34:18 +0000 Subject: [PATCH 12/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 1af0397..c4b826d 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 1.0.4-11 - Rebuilt for Python 3.10 From bf6b3150861ccbbb18857e42737385555f1f7da0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 14:31:48 +0000 Subject: [PATCH 13/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index c4b826d..178e002 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 1.0.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 7234ea57c850e693954f9a323faeeb47b6e67bb3 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 15:15:18 +0200 Subject: [PATCH 14/28] Rebuilt for Python 3.11 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 178e002..d89c648 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Jun 13 2022 Python Maint - 1.0.4-14 +- Rebuilt for Python 3.11 + * Fri Jan 21 2022 Fedora Release Engineering - 1.0.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 23dc0f70afd3ad325fa701031295e1573b0c6069 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 21:14:56 +0000 Subject: [PATCH 15/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index d89c648..d874d20 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jun 13 2022 Python Maint - 1.0.4-14 - Rebuilt for Python 3.11 From c2bf7d2a0abf4458b91d23ba7e1bc9329ffcefe0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 16:04:32 +0000 Subject: [PATCH 16/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index d874d20..890e157 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.4-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 1.0.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 1f43f1de26a0e37d2a1aaadecbc0bd9840cb192c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 20:49:10 +0200 Subject: [PATCH 17/28] Rebuilt for Python 3.12 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 890e157..8df4b0f 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Tue Jun 13 2023 Python Maint - 1.0.4-17 +- Rebuilt for Python 3.12 + * Fri Jan 20 2023 Fedora Release Engineering - 1.0.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 3a6e32e164031993191a841cebdf4070aa332d49 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 12:43:14 +0000 Subject: [PATCH 18/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 8df4b0f..07b4f48 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.4-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue Jun 13 2023 Python Maint - 1.0.4-17 - Rebuilt for Python 3.12 From 079a68f0abb91ec093238c624a90cd8ef4cb5a96 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 05:36:51 +0000 Subject: [PATCH 19/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 07b4f48..0fe73d0 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 1.0.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From e007574d1061f73ef5ae84c476ac97538f777649 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 08:35:17 +0000 Subject: [PATCH 20/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 0fe73d0..3ae6dd7 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.4-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 1.0.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 6f7b5fcd5e270c5125194e60544f0d54ba91510a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 08:59:20 +0200 Subject: [PATCH 21/28] Rebuilt for Python 3.13 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 3ae6dd7..d3194c5 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jun 07 2024 Python Maint - 1.0.4-21 +- Rebuilt for Python 3.13 + * Fri Jan 26 2024 Fedora Release Engineering - 1.0.4-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 1896f35da71ebfd58b80d89f3e0a9764c0be5d37 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 14:29:49 +0000 Subject: [PATCH 22/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index d3194c5..bdddb00 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Python bindings for Gifti License: GPLv2 @@ -86,6 +86,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 1.0.4-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 1.0.4-21 - Rebuilt for Python 3.13 From 8916f54f7a83e5475ac4ad2cc904e119ce0b556b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 29 Jul 2024 11:48:57 +0200 Subject: [PATCH 23/28] convert GPLv2 license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- python-pygiftiio.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index bdddb00..fed305e 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,10 +16,11 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 22%{?dist} +Release: 23%{?dist} Summary: Python bindings for Gifti -License: GPLv2 +# Automatically converted from old format: GPLv2 - review is highly recommended. +License: GPL-2.0-only URL: https://www.nitrc.org/frs/?group_id=75 Source0: https://www.nitrc.org/frs/download.php/1285/%{srcname}-%{version}.tar.gz Source1: https://www.nitrc.org/frs/download.php/261/gifti_write_example.py @@ -86,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Jul 29 2024 Miroslav Suchý - 1.0.4-23 +- convert license to SPDX + * Fri Jul 19 2024 Fedora Release Engineering - 1.0.4-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From e6e022a0dd4a5616fec45479e9be1f1341ecd126 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 17:46:05 +0000 Subject: [PATCH 24/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index fed305e..70d5ad7 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Python bindings for Gifti # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -87,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1.0.4-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Mon Jul 29 2024 Miroslav Suchý - 1.0.4-23 - convert license to SPDX From d0a895a16adf3f07e68f4f85ce11d452bab91819 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 20:36:21 +0200 Subject: [PATCH 25/28] Rebuilt for Python 3.14 --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 70d5ad7..5af6c2a 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Python bindings for Gifti # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -87,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Mon Jun 02 2025 Python Maint - 1.0.4-25 +- Rebuilt for Python 3.14 + * Sat Jan 18 2025 Fedora Release Engineering - 1.0.4-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From f439865682a6efdbebda528103f03a5a11252722 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 09:37:23 +0000 Subject: [PATCH 26/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 5af6c2a..48a3180 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Python bindings for Gifti # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -87,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1.0.4-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jun 02 2025 Python Maint - 1.0.4-25 - Rebuilt for Python 3.14 From 15585f1298df2291e756097b2841850c60b3442a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 14:30:08 +0200 Subject: [PATCH 27/28] Rebuilt for Python 3.14.0rc2 bytecode --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 48a3180..3b87b51 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Python bindings for Gifti # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -87,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Aug 15 2025 Python Maint - 1.0.4-27 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 1.0.4-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 45ec911ae83861eb1635f9286712d9eaf164c947 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 14:05:37 +0200 Subject: [PATCH 28/28] Rebuilt for Python 3.14.0rc3 bytecode --- python-pygiftiio.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pygiftiio.spec b/python-pygiftiio.spec index 3b87b51..be8a7ce 100644 --- a/python-pygiftiio.spec +++ b/python-pygiftiio.spec @@ -16,7 +16,7 @@ Initiative (NIfTI).} Name: python-%{srcname} Version: 1.0.4 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Python bindings for Gifti # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -87,6 +87,9 @@ install -D -m 0644 %{srcname}.py -t %{buildroot}/%{python2_sitelib}/ %{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc %changelog +* Fri Sep 19 2025 Python Maint - 1.0.4-28 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 1.0.4-27 - Rebuilt for Python 3.14.0rc2 bytecode