diff --git a/xmakemol-5.16-pointertype.patch b/xmakemol-5.16-pointertype.patch new file mode 100644 index 0000000..2809808 --- /dev/null +++ b/xmakemol-5.16-pointertype.patch @@ -0,0 +1,24 @@ +diff -up xmakemol-5.16/edit.c.pointertype xmakemol-5.16/edit.c +--- xmakemol-5.16/edit.c.pointertype 2005-03-07 10:14:44.000000000 +0000 ++++ xmakemol-5.16/edit.c 2024-01-30 11:08:10.690500512 +0000 +@@ -1758,7 +1758,7 @@ make_scale_coords_dialog (Widget parent) + + int n = 0; + Widget atob, btoa, child, rc; +- XmString label = ""; ++ XmString label = XmStringCreateSimple(""); + + if (! scale_coords_dialog) + { +diff -up xmakemol-5.16/frames.c.pointertype xmakemol-5.16/frames.c +--- xmakemol-5.16/frames.c.pointertype 2007-08-25 11:20:29.000000000 +0000 ++++ xmakemol-5.16/frames.c 2024-01-30 15:34:46.934021294 +0000 +@@ -106,7 +106,7 @@ make_frame_dlg(Widget parent) + Widget *kids; + #endif + +- XmString label = ""; ++ XmString label = XmStringCreateSimple(""); + + if (! frames_dialog) { + diff --git a/xmakemol.spec b/xmakemol.spec index b115943..6120b8d 100644 --- a/xmakemol.spec +++ b/xmakemol.spec @@ -1,8 +1,9 @@ Name: xmakemol Version: 5.16 -Release: 14%{?dist} +Release: 25%{?dist} Summary: Program for visualizing atomic and molecular systems -License: GPLv2+ +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later URL: https://www.nongnu.org/xmakemol/ Source0: http://savannah.nongnu.org/download/xmakemol/xmakemol-%{version}.tar.gz @@ -16,10 +17,11 @@ Patch3: xmakemol-5.16-print_torsions.patch Patch4: xmakemol-5.16-extern.patch # Fix BZ#1914657, crash about NULL widget class Patch5: xmakemol-5.16-widget.patch +# Fix BZ#2261809, initialization of XmString from incompatible pointer type +Patch6: xmakemol-5.16-pointertype.patch BuildRequires: make BuildRequires: gcc -BuildRequires: freeglut-devel BuildRequires: mesa-libGLU-devel BuildRequires: mesa-libGLw-devel BuildRequires: libX11-devel @@ -28,7 +30,7 @@ BuildRequires: libXpm-devel BuildRequires: libICE-devel BuildRequires: zlib-devel BuildRequires: motif-devel - +BuildRequires: freeglut-devel %description XMakemol is a mouse-based program, written using the LessTif widget @@ -44,12 +46,13 @@ bonds. Features include: %prep %autosetup -N -%patch0 -p1 -b .fsf -%patch1 -p0 -b .vecat -%patch2 -p1 -b .hbond -%patch3 -p1 -b .torsion -%patch4 -p1 -b .extern -%patch5 -p1 -b .widget +%patch -P0 -p1 -b .fsf +%patch -P1 -p0 -b .vecat +%patch -P2 -p1 -b .hbond +%patch -P3 -p1 -b .torsion +%patch -P4 -p1 -b .extern +%patch -P5 -p1 -b .widget +%patch -P6 -p1 -b .pointertype %build %configure @@ -67,6 +70,39 @@ bonds. Features include: %{_bindir}/xmake_anim.pl %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 5.16-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 5.16-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 5.16-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 5.16-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 26 2024 Miroslav Suchý - 5.16-21 +- convert license to SPDX + +* Sat Jul 20 2024 Fedora Release Engineering - 5.16-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jan 30 2024 Susi Lehtola - 5.16-19 +- Fix FTBFS on Fedora 40. + +* Sat Jan 27 2024 Fedora Release Engineering - 5.16-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 5.16-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 5.16-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Dec 05 2022 Susi Lehtola - 5.16-15 +- Freeglut is now available in RHEL9. + * Sat Jul 23 2022 Fedora Release Engineering - 5.16-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild