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

A new commit has been pushed.

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

Log:
Rebuild for openbabel-3.2.0| Revert last commit

---
diff --git a/ghemical.spec b/ghemical.spec
index c4b1266..42add66 100644
--- a/ghemical.spec
+++ b/ghemical.spec
@@ -1,16 +1,17 @@
-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
+Name:			ghemical
+Summary:		Molecular mechanics and quantum mechanics front end for GNOME
+Version:		3.0.0
+Release:		31%{?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
 # 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 ; 
@@ -18,31 +19,35 @@ 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:  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
+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
 
 %description
 Ghemical is a computational chemistry application.  Ghemical is
@@ -56,14 +61,18 @@ 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
-perl -pi -e "s|mozilla|xdg-open|" src/gtk_app.cpp
+	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
+
 cat >%{name}.desktop << EOF
 [Desktop Entry]
 Name=%{name}
@@ -80,9 +89,10 @@ EOF
 %build
 # -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`"
+%configure \
+	--enable-threads \
+	--enable-openbabel \
+	%{nil}
 %make_build
 
 %install
@@ -98,7 +108,10 @@ desktop-file-install %{name}.desktop --dir=%{buildroot}%{_datadir}/applications
 %find_lang %{name}
 
 %files -f %{name}.lang
-%doc AUTHORS ChangeLog TODO COPYING
+%doc	AUTHORS
+%doc	ChangeLog
+%doc	TODO
+%license	COPYING
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/*/apps/%{name}.png

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

only message in thread, other threads:[~2026-06-26 20:23 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:23 [rpms/ghemical] main: Rebuild for openbabel-3.2.0| Revert last commit Antonio Trande

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