diff --git a/volpack-1.0c7-fix-casts.patch b/volpack-1.0c7-fix-casts.patch deleted file mode 100644 index 618dbe5..0000000 --- a/volpack-1.0c7-fix-casts.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up volpack-1.0c7/examples/rendervolume.c.fix-casts volpack-1.0c7/examples/rendervolume.c ---- volpack-1.0c7/examples/rendervolume.c.fix-casts 2024-02-03 09:26:03.308261471 -0500 -+++ volpack-1.0c7/examples/rendervolume.c 2024-02-03 09:26:09.395311653 -0500 -@@ -207,7 +207,7 @@ char **argv; - strcpy(filename, "brainsmall.ppm"); - else - sprintf(filename, "brainsmall_%d.ppm", n + 1000); -- StorePGM(image, IMAGE_WIDTH, IMAGE_HEIGHT, filename); -+ StorePGM((char *)image, IMAGE_WIDTH, IMAGE_HEIGHT, filename); - - /* rotate by 5 degrees for next image */ - vpRotate(vpc, VP_Y_AXIS, 5.0); diff --git a/volpack.spec b/volpack.spec index 415a590..8a36c17 100644 --- a/volpack.spec +++ b/volpack.spec @@ -1,19 +1,15 @@ -# This code is old and ugly. -%global optflags %{optflags} -std=gnu17 - Name: volpack Version: 1.0c7 -Release: 37%{?dist} +Release: 28%{?dist} Summary: Portable library for fast volume rendering -License: BSD-3-Clause +License: BSD URL: http://amide.sourceforge.net Source0: http://downloads.sourceforge.net/amide/%{name}/%{name}-%{version}.tgz Patch0: volpack-aarch64.patch Patch1: volpack-c99.patch -Patch2: volpack-1.0c7-fix-casts.patch BuildRequires: make -BuildRequires: gcc +BuildRequires: gcc BuildRequires: m4 %description @@ -42,9 +38,8 @@ programs using the volpack volume rendering library. %prep %setup -q -%patch -P0 -p1 -b .aarch64 -%patch -P1 -p1 -b .c99 -%patch -P2 -p1 -b .fix-casts +%patch0 -p1 -b .aarch64 +%patch1 -p1 -b .c99 %build @@ -87,33 +82,6 @@ popd %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 1.0c7-37 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Sat Jan 17 2026 Fedora Release Engineering - 1.0c7-36 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Fri Jul 25 2025 Fedora Release Engineering - 1.0c7-35 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Feb 25 2025 Tom Callaway - 1.0c7-34 -- force -std=gnu17 for compilation, this code is old and nasty - -* Sun Jan 19 2025 Fedora Release Engineering - 1.0c7-33 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sat Jul 20 2024 Fedora Release Engineering - 1.0c7-32 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Feb 3 2024 Tom Callaway - 1.0c7-31 -- fix casts to resolve FTBFS - -* Sat Jan 27 2024 Fedora Release Engineering - 1.0c7-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 1.0c7-29 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - * Sat Jan 21 2023 Fedora Release Engineering - 1.0c7-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild