public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Antonio Trande <sagitter@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ghemical] main: Rebuild for openbabel-3.2.0
Date: Fri, 26 Jun 2026 20:17:35 GMT	[thread overview]
Message-ID: <178250505553.1.7617954613962560352.rpms-ghemical-3b4f409e3d58@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-06-26 20:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178250505553.1.7617954613962560352.rpms-ghemical-3b4f409e3d58@fedoraproject.org \
    --to=sagitter@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox