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/giac] f44: Enable bundled FLTK support
Date: Fri, 10 Jul 2026 13:34:41 GMT [thread overview]
Message-ID: <178369048141.1.374823470535013494.rpms-giac-19968a2bfc61@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/giac
Branch : f44
Commit : 19968a2bfc6197053f8e8f4eee028b81faebc9bc
Author : Antonio Trande <sagitter@fedoraproject.org>
Date : 2026-07-10T14:37:15+02:00
Stats : +23/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/giac/c/19968a2bfc6197053f8e8f4eee028b81faebc9bc?branch=f44
Log:
Enable bundled FLTK support
---
diff --git a/giac.spec b/giac.spec
index 1a4efe2..cf9fb76 100644
--- a/giac.spec
+++ b/giac.spec
@@ -9,7 +9,7 @@
%bcond_without flexiblas
# giac is not ready for FLTK-1.4.*
-%bcond_without fltk
+%bcond_with system_fltk
%global _lto_cflags %{nil}
@@ -99,15 +99,17 @@ BuildRequires: libcurl-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libsamplerate-devel
-%if %{with fltk}
-#BuildRequires: fltk-devel
+%if %{with system_fltk}
+BuildRequires: fltk-devel
%endif
BuildRequires: libXinerama-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
Provides: bundled(tinymt32)
+%if %{without system_fltk}
Provides: bundled(fltk) = 1.3.8
+%endif
# The micropython inside is a custom port with
# addtional built-in modules that are linked to giac.
@@ -240,6 +242,10 @@ sed -e 's|LIB(blas|LIB(flexiblas|g' -e 's|LIB(lapack|LIB(flexiblas|g' \
# Prepare Micropython lib's License
cp -p micropython-1.12/LICENSE micropython-1.12/micropython-LICENSE
+%if %{with system_fltk}
+rm -rf fltk-*
+%endif
+
# Update configure.ac obsolete macros
autoupdate -vf
@@ -249,9 +255,13 @@ autoreconf -ivf
%build
# https://xcas.univ-grenoble-alpes.fr/forum/viewtopic.php?f=4&t=2817
OPT_FLAGS=$(echo "%build_cxxflags" | %{__sed} -e 's/-Werror=format-security/-Wno-error=format-security/')
-export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17"
export CFLAGS_FEDORA="$OPT_FLAGS -std=gnu17"
-%if %{with fltk}
+%if %{with system_fltk}
+export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17"
+%else
+export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17 -I../fltk-1.3.8"
+%endif
+%if %{without system_fltk}
export LIBFLTK=GIAC
%endif
%configure --enable-static=yes --with-included-gettext=no --enable-nls=no \
@@ -262,7 +272,7 @@ export LIBFLTK=GIAC
%ifarch %{power64}
--disable-micropy \
%endif
- --disable-fltk
+ --enable-fltk
# The --disable-rpath option of configure was not enough to get rid of the hardcoded libdir
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -276,10 +286,14 @@ g++ $OPT_FLAGS -fpermissive -std=gnu++17 src/mkjs.cc -o src/mkjs
# https://xcas.univ-grenoble-alpes.fr/forum/viewtopic.php?f=4&t=2817
OPT_FLAGS=$(echo "%build_cflags" | %{__sed} -e 's/-Werror=format-security/-Wno-error=format-security/')
-export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17"
export CFLAGS_FEDORA="$OPT_FLAGS -std=gnu17"
-export LDFLAGS_FEDORA="$OPT_FLAGS"
-export ACLOCAL=aclocal
+%if %{with system_fltk}
+export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17"
+export LDFLAGS_FEDORA="$OPT_FLAGS %{__global_ldflags}"
+%else
+export CXXFLAGS="$OPT_FLAGS -fpermissive -std=gnu++17 -I../fltk-1.3.8"
+export LDFLAGS_FEDORA="$OPT_FLAGS %{__global_ldflags} -L../fltk-1.3.8/lib -lfltk -lfltk_forms -lfltk_gl -lfltk_images"
+%endif
%make_build
# Rebuild giac_*.info and Convert info file to utf-8
reply other threads:[~2026-07-10 13:34 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=178369048141.1.374823470535013494.rpms-giac-19968a2bfc61@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