public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghemical] main: Rebuild for openbabel-3.2.0
@ 2026-06-26 20:17 Antonio Trande
  0 siblings, 0 replies; only message in thread
From: Antonio Trande @ 2026-06-26 20:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ghemical
Branch : main
Commit : 3b4f409e3d58e2c15f8582c3abcd580e5bfc039e
Author : Antonio Trande <sagitter@fedoraproject.org>
Date   : 2026-06-26T22:17:09+02:00
Stats  : +50/-57 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ghemical/c/3b4f409e3d58e2c15f8582c3abcd580e5bfc039e?branch=main

Log:
Rebuild for openbabel-3.2.0

---
diff --git a/ghemical.spec b/ghemical.spec
index 1526fb5..c4b1266 100644
--- a/ghemical.spec
+++ b/ghemical.spec
@@ -1,17 +1,16 @@
-Name:			ghemical
-Summary:		Molecular mechanics and quantum mechanics front end for GNOME
-Version:		3.0.0
-Release:		30%{?dist}
-
-# SPDX confirmed
-License:		GPL-2.0-or-later
-URL:			http://www.bioinformatics.org/ghemical/ghemical/index.html
-
-Source0:		http://www.bioinformatics.org/ghemical/download/current/%{name}-%{version}.tar.gz
+Name:           ghemical
+Summary:        Molecular mechanics and quantum mechanics front end for GNOME
+Version:        3.0.0
+Release:        31%{?dist}
+License:        GPL-2.0-or-later
+URL:            http://www.bioinformatics.org/ghemical/ghemical/index.html
+
+Source0:        http://www.bioinformatics.org/ghemical/download/current/%{name}-%{version}.tar.gz
 # From Debian:
 # https://sources.debian.org/data/main/g/ghemical/3.0.0-4/debian/patches/fix_clang_ftbfs.patch
-Patch0:		%{name}-3.0.0-gcc9-friend.patch
-Patch1:		%{name}-porting_to_openbabel3.patch
+Patch0:         %{name}-3.0.0-gcc9-friend.patch
+
+Patch1:         %{name}-porting_to_openbabel3.patch
 
 # generated by using ImageMagick convert:
 # for size in 16 32 48 128 ; 
@@ -19,35 +18,31 @@ Patch1:		%{name}-porting_to_openbabel3.patch
 #     -extent ${size}x${size} ghemical-3.0.0/src/res_gtk/ghemical.png \
 #     ghemical-${size}x${size}.png ; 
 #  done
-Source11:		%{name}-16x16.png
-Source12:		%{name}-32x32.png
-Source13:		%{name}-48x48.png
-Source14:		%{name}-128x128.png
-
-BuildRequires:	gcc-c++
-BuildRequires:	make
-BuildRequires:	autoconf
-BuildRequires:	automake
-BuildRequires:	libtool
-BuildRequires:	intltool
-BuildRequires:	desktop-file-utils
-BuildRequires:	glib2-devel
-BuildRequires:	pkgconfig(gthread-2.0)
-BuildRequires:	pkgconfig(gtk+-2.0)
-BuildRequires:	pkgconfig(gtkglext-1.0)
-BuildRequires:	pkgconfig(libglade-2.0)
-BuildRequires:	pkgconfig(openbabel-3)
-BuildRequires:	pkgconfig(libghemical) >= 3.0.0
-BuildRequires:	pkgconfig(liboglappth)
-BuildRequires:	mesa-libGL-devel
-BuildRequires:	mesa-libGLU-devel
-BuildRequires:	mopac7-devel >= 1.14
-BuildRequires:	mpqc-devel
-BuildRequires:	libbonoboui-devel
-BuildRequires:	libglade2-devel >= 2.4.0
-Requires:		libghemical >= 2.99.1
-Requires:		hicolor-icon-theme
-Requires:		xorg-x11-fonts-ISO8859-1-100dpi
+Source11:       %{name}-16x16.png
+Source12:       %{name}-32x32.png
+Source13:       %{name}-48x48.png
+Source14:       %{name}-128x128.png
+
+BuildRequires:  gcc-c++
+BuildRequires:  autoconf automake
+BuildRequires:  libtool
+BuildRequires:  make
+BuildRequires:  desktop-file-utils
+BuildRequires:  glib2-devel
+BuildRequires:  gtkglext-devel
+BuildRequires:  intltool
+BuildRequires:  libbonoboui-devel
+BuildRequires:  libghemical-devel >= 2.99.1
+BuildRequires:  libglade2-devel >= 2.4.0
+BuildRequires:  mesa-libGL-devel
+BuildRequires:  mesa-libGLU-devel
+BuildRequires:  mopac7-devel >= 1.14
+BuildRequires:  mpqc-devel
+BuildRequires:  liboglappth-devel >= 0.98
+BuildRequires:  pkgconfig(openbabel-3)
+Requires:       libghemical >= 2.99.1
+Requires:       hicolor-icon-theme
+Requires:       xorg-x11-fonts-ISO8859-1-100dpi
 
 %description
 Ghemical is a computational chemistry application.  Ghemical is
@@ -61,18 +56,14 @@ currently available.
 
 %prep
 %autosetup -p1
-# Add ACLOCAL_PATH for gettext 0.25 (ref: bug 2366708)
-export ACLOCAL_PATH=%{_datadir}/gettext/m4/
 autoreconf -ivf
 
 # fixup character set
 iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && \
-	touch -r AUTHORS AUTHORS.conv && \
-	mv -f AUTHORS.conv AUTHORS
-
-# help : use default xdg-open
-sed -i -e "s|mozilla|xdg-open|" src/gtk_app.cpp
-
+touch -r AUTHORS AUTHORS.conv && \
+mv -f AUTHORS.conv AUTHORS
+#help : use default xdg-open
+perl -pi -e "s|mozilla|xdg-open|" src/gtk_app.cpp
 cat >%{name}.desktop << EOF
 [Desktop Entry]
 Name=%{name}
@@ -87,10 +78,11 @@ Version=1.0
 EOF
 
 %build
-%configure \
-	--enable-threads \
-	--enable-openbabel \
-	%{nil}
+# -Wno-write-strings added to avoid build failures, please check them
+export CXXFLAGS="%optflags -Wno-write-strings"
+%configure --enable-threads --enable-openbabel \
+ OPENBABEL_CFLAGS="`pkg-config --cflags openbabel-3`" \
+ OPENBABEL_LIBS="`pkg-config --libs openbabel-3`"
 %make_build
 
 %install
@@ -106,10 +98,7 @@ desktop-file-install %{name}.desktop --dir=%{buildroot}%{_datadir}/applications
 %find_lang %{name}
 
 %files -f %{name}.lang
-%doc	AUTHORS
-%doc	ChangeLog
-%doc	TODO
-%license	COPYING
+%doc AUTHORS ChangeLog TODO COPYING
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
@@ -117,6 +106,10 @@ desktop-file-install %{name}.desktop --dir=%{buildroot}%{_datadir}/applications
 
 
 %changelog
+* Fri Jun 26 2026 Antonio Trande <sagitter@fedoraproject.org> - 3.0.0-31
+- Rebuild for openbabel-3.2.0
+- Add -Wno-write-strings
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-30
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-26 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 20:17 [rpms/ghemical] main: Rebuild for openbabel-3.2.0 Antonio Trande

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox