Compare commits

...
Sign in to create a new pull request.

35 commits

Author SHA1 Message Date
Neal Gompa
0f5ca176ca Fix bootstrap macro name 2026-01-13 07:34:23 -05:00
Neal Gompa
ad44498c2f Rebase to 1.4.4 2026-01-12 12:51:03 -05:00
Fedora Release Engineering
4ea4a2494d Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 20:38:22 +00:00
Orion Poplawski
88180e905e Make BR on fltk-fluid only for mingw builds as noted 2025-06-21 14:23:02 -06:00
Richard Shaw
61eff03e4a Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
Update to 1.3.11.
2025-03-22 08:50:43 -05:00
Fedora Release Engineering
8fd15badca Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 18:30:58 +00:00
Miroslav Suchý
13c401cba1 Migrate to SPDX license
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-10-29 22:38:00 +00:00
Fedora Release Engineering
1a97c3eff9 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 23:21:33 +00:00
Fedora Release Engineering
1e15b8e4e0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 11:47:13 +00:00
Fedora Release Engineering
b74bfd4bdf Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 19:31:50 +00:00
Yaakov Selkowitz
ae97515034 Disable mingw in flatpak builds 2023-08-01 00:36:52 -04:00
Yaakov Selkowitz
f8fdcea64f BuildRequires: mingw*-gcc-c++ 2023-07-19 17:34:11 -04:00
Fedora Release Engineering
85fb381ed1 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 19:56:43 +00:00
Yaakov Selkowitz
9b6370c6cd Disable mingw in RHEL builds
The mingw build is unwanted in RHEL and requires other unwanted
dependencies.
2023-04-21 18:12:00 -04:00
Fedora Release Engineering
1fc2276d8e Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 03:38:44 +00:00
Richard Shaw
8d8372cde4 Fix second instance of uname -i in bash script. 2022-09-05 12:00:17 -05:00
Richard Shaw
2c3f3989da Migrate MinGW build to native package. 2022-09-03 16:13:32 -05:00
Richard Shaw
6ab01c0d48 Spec file modernization and fixes:
Update to SPDX license tag
  Clean up spec file formatting
  Remove obsolete snapshot build support
  Migrate from uname -i to uname -m
2022-08-27 16:02:17 -05:00
Fedora Release Engineering
cea97d4577 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 03:22:23 +00:00
Fedora Release Engineering
17b5aa6cfa - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 03:11:41 +00:00
Richard Shaw
4f1f1e1581 Update to 1.3.8. 2021-11-20 16:01:43 -06:00
Fedora Release Engineering
6ff3addfc8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 23:08:51 +00:00
Richard Shaw
3244f7b387 Update to 1.3.6. 2021-06-27 16:00:34 -05:00
Richard Shaw
4817e07664 Update requires for devel package, fixes #1931645. 2021-02-22 16:25:55 -06:00
Fedora Release Engineering
429d1fa40b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 05:43:13 +00:00
Adam Jackson
7112746b02 Remove BuildRequires xprop entirely. If present, the configure script will call
it looking for a property on the root window that Fedora's X server does not
  set, and which would not work anyway since there is no X server running in the
  buildroot, so we can just remove the dependency.
2021-01-21 13:47:06 -05:00
Tom Stellard
73ae89a1fa Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-18 22:45:16 +00:00
Richard Shaw
9381429155 CMake change fixups. 2020-08-06 19:50:03 -05:00
Fedora Release Engineering
ea7490354c - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 01:01:13 +00:00
Adam Jackson
95d8ae3470 BuildRequires xprop not xorg-x11-server-utils
... though that's still really very silly, it's a configure-time check
for whether the server has a SERVER_OVERLAY_VISUALS property, which
XFree86-derived servers have never done, so this is all a complicated
way of saying "if false". Whatever.
2020-07-28 14:39:56 -04:00
Fedora Release Engineering
92a53feac5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 17:37:41 +00:00
Rex Dieter
6b800dce9a restore fltk_config.patch lost in last (cmake) merge 2020-05-14 09:05:10 -05:00
Rex Dieter
76f53b61af merge cmake PR
spec cosmetics
2020-05-11 11:06:28 -05:00
Richard Shaw
0191c85564 Change over to CMake based build. 2020-05-10 10:45:05 -05:00
Fedora Release Engineering
04f1910977 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 18:43:29 +00:00
8 changed files with 456 additions and 178 deletions

4
.gitignore vendored
View file

@ -1,2 +1,6 @@
/fltk-1.3.4-1-source.tar.gz
/fltk-1.3.5-source.tar.gz
/fltk-1.3.6-source.tar.gz
/fltk-1.3.8-source.tar.gz
/fltk-1.3.11-source.tar.gz
/fltk-1.4.4-source.tar.gz

View file

@ -1,58 +0,0 @@
diff -up fltk-1.3.4-1/fltk-config.in.fltk_config fltk-1.3.4-1/fltk-config.in
--- fltk-1.3.4-1/fltk-config.in.fltk_config 2016-01-30 20:49:56.000000000 -0600
+++ fltk-1.3.4-1/fltk-config.in 2017-03-04 12:29:28.910316677 -0600
@@ -44,8 +44,8 @@ CXX="@CXX@"
# flags for C++ compiler:
ARCHFLAGS="@ARCHFLAGS@"
-CFLAGS="@CFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
-CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
+CFLAGS=""
+CXXFLAGS=""
LDFLAGS="@LDFLAGS@"
LDLIBS="@LIBS@"
OPTIM="@OPTIM@"
@@ -228,7 +228,7 @@ if test "$BINARY_DIR" != ""; then
includes="-I$BINARY_DIR $includes"
fi
-if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
+if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32 -a "$libdir" != /usr/lib64; then
libs=-L$libdir
else
libs=
@@ -236,28 +236,28 @@ fi
# Calculate needed libraries
LDSTATIC="$libdir/libfltk.a $LDLIBS"
-LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
+LDLIBS="-lfltk$SHAREDSUFFIX"
if test x$use_forms = xyes; then
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_forms.a $LDSTATIC"
fi
if test x$use_gl = xyes; then
- LDLIBS="-lfltk_gl$SHAREDSUFFIX @GLLIB@ $LDLIBS"
+ LDLIBS="-lfltk_gl$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_gl.a @GLLIB@ $LDSTATIC"
fi
if test x$use_images = xyes; then
- LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
+ LDLIBS="-lfltk_images$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC"
fi
if test x$use_cairo = xyes; then
- LDLIBS="-lfltk_cairo$SHAREDSUFFIX $CAIROLIBS $LDLIBS"
+ LDLIBS="-lfltk_cairo$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_cairo.a $CAIROLIBS $LDSTATIC"
fi
-LDLIBS="$DSOLINK $LDFLAGS $libs $LDLIBS"
-LDSTATIC="$LDFLAGS $LDSTATIC"
+LDLIBS="$libs $LDLIBS"
+#LDSTATIC="$LDFLAGS $LDSTATIC"
# Answer to user requests
if test -n "$echo_help"; then

View file

@ -1,21 +0,0 @@
diff -up fltk-1.3.4-1/fluid/Makefile.x-fluid_mimetype fltk-1.3.4-1/fluid/Makefile
--- fltk-1.3.4-1/fluid/Makefile.x-fluid_mimetype 2016-07-17 14:51:54.000000000 -0500
+++ fltk-1.3.4-1/fluid/Makefile 2017-03-04 12:42:00.573346286 -0600
@@ -84,7 +84,7 @@ install-linux:
$(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
done
-$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
- $(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
+ #$(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
install-osx:
echo Installing Fluid in $(DESTDIR)/Applications...
@@ -104,7 +104,7 @@ uninstall:
uninstall-linux:
$(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
$(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
- $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
+ #$(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
uninstall-osx:
$(RM) -r $(DESTDIR)/Applications/fluid.app

View file

@ -0,0 +1,43 @@
diff --git a/fltk-config.in b/fltk-config.in
index c23b79ce6..0b5cd922b 100644
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -264,7 +264,7 @@ if test -n "$BINARY_DIR"; then
includes="-I$BINARY_DIR $includes"
fi
-if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
+if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32 -a "$libdir" != /usr/lib64; then
libs="-L$libdir"
else
libs=
@@ -272,7 +272,7 @@ fi
# Calculate needed libraries
LDSTATIC="$libdir/libfltk.a $LDLIBS"
-LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
+LDLIBS="-lfltk$SHAREDSUFFIX"
if test x$use_forms = xyes; then
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
@@ -280,17 +280,17 @@ if test x$use_forms = xyes; then
fi
if test x$use_gl = xyes; then
- LDLIBS="-lfltk_gl$SHAREDSUFFIX $GLLIBS $LDLIBS"
+ LDLIBS="-lfltk_gl$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_gl.a $GLLIBS $LDSTATIC"
fi
if test x$use_images = xyes; then
- LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
+ LDLIBS="-lfltk_images$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC"
fi
if test x$use_cairo = xyes -a -n "$CAIROLIBS"; then
- LDLIBS="$CAIROLIBS $LDLIBS"
+ LDLIBS="$LDLIBS"
LDSTATIC="$CAIROLIBS $LDSTATIC"
fi

33
fltk-cmake.patch Normal file
View file

@ -0,0 +1,33 @@
From e6064481c940ec0b487f84257d27eb2929d5013d Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@fedoraproject.org>
Date: Mon, 12 Jan 2026 07:55:53 -0500
Subject: [PATCH] CMake: Use the correct install path for CMake data files
Whether we are building natively or cross-compiling, we consistently
want to use a single path setup for installing CMake data files.
---
CMake/setup.cmake | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/CMake/setup.cmake b/CMake/setup.cmake
index 266e1299a..3089f87a8 100644
--- a/CMake/setup.cmake
+++ b/CMake/setup.cmake
@@ -93,13 +93,7 @@ set(STATICIMAGELIBS "")
#######################################################################
# set where config files go
-if(WIN32 AND NOT CYGWIN)
- set(FLTK_CONFIG_PATH CMake)
-elseif(APPLE AND NOT FLTK_BACKEND_X11)
- set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
-else()
- set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
-endif(WIN32 AND NOT CYGWIN)
+set(FLTK_CONFIG_PATH ${FLTK_LIBDIR}/cmake/fltk CACHE FILEPATH "Install location for cmake files.")
include(TestBigEndian)
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
--
2.52.0

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/bash
exec fltk-config-$(uname -i) "$@"
exec fltk-config-$(uname -m) "$@"

469
fltk.spec
View file

@ -1,175 +1,452 @@
#global snap r9671
# Explicitly use Makefiles
%global _cmake_generator "Unix Makefiles"
# TODO:
# * port .spec to use cmake
# FLTK major version (intentionally lazily evaluated!)
%define majorver %(echo "%{version}" | cut -d. -f1,2)
# trim changelog included in binary rpms
%global _changelog_trimtime %(date +%s -d "1 year ago")
# Break self-dependency cycles by disabling certain packages on major version bumps
%bcond bootstrap 0
Summary: C++ user interface toolkit
Name: fltk
Version: 1.3.5
Release: 2%{?dist}
# see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
License: LGPLv2+ with exceptions
URL: http://www.fltk.org/
%if "%{?snap:1}" == "1"
Source0: http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-%{snap}.tar.bz2
# MinGW is enabled by default (except for RHEL), to disable use '--without mingw'
%if 0%{?rhel} || 0%{?flatpak} || 0%{?_with_bootstrap}
%bcond_with mingw
%else
Source0: http://fltk.org/pub/%{name}/%{version}/%{name}-%{version}-source.tar.gz
%bcond_without mingw
%endif
Name: fltk
Version: 1.4.4
Release: 1%{?dist}
Summary: C++ user interface toolkit
# see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
License: LGPL-2.0-or-later WITH FLTK-exception
URL: http://www.fltk.org/
Source0: https://github.com/%{name}/%{name}/releases/download/release-%{version}/%{name}-%{version}-source.tar.gz
Source1: fltk-config.sh
## FIXME/TODO: upstream these asap -- Rex
# Use the correct cmake data install location
Patch0: fltk-cmake.patch
# add lib64 support, drop extraneous libs (bug #708185) and ldflags (#1112930)
Patch1: fltk-1.3.4-fltk_config.patch
Patch1: fltk-1.4.4-fltk_config.patch
## upstream patches
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: texlive-latex
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(libdecor-0) >= 0.2.0
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(pango) pkgconfig(pangocairo)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(gl) pkgconfig(glu)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(wayland-client) >= 1.18
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-egl)
# includes cursor-shape and tablet-v2 with all current fixes
BuildRequires: pkgconfig(wayland-protocols) >= 1.46
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(zlib)
## upstreamable patches
Patch100: fltk-1.3.4-x-fluid_mimetype.patch
%if %{with mingw}
# For MinGW builds
BuildRequires: fltk-fluid >= %{majorver}
# MinGW
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gettext
BuildRequires: mingw32-win-iconv
BuildRequires: mingw32-zlib
# Libraries
BuildRequires: mingw32-cairo
BuildRequires: mingw32-libpng
BuildRequires: mingw32-libjpeg
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(gl) pkgconfig(glu)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xproto)
BuildRequires: xorg-x11-utils
BuildRequires: zlib-devel
BuildRequires: autoconf
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-binutils
BuildRequires: mingw64-gettext
BuildRequires: mingw64-win-iconv
BuildRequires: mingw64-zlib
# Libraries
BuildRequires: mingw64-cairo
BuildRequires: mingw64-libpng
BuildRequires: mingw64-libjpeg
%endif
%description
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
It provides modern GUI functionality without the bloat, and supports
%global _description \
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit. \
It provides modern GUI functionality without the bloat, and supports \
3D graphics via OpenGL and its built-in GLUT emulation.
%description
%{_description}
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libstdc++-devel
Requires: pkgconfig(gl) pkgconfig(glu)
Requires: pkgconfig(ice) pkgconfig(sm)
Requires: pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libstdc++-devel
Requires: pkgconfig(libdecor-0) >= 0.2.0
Requires: pkgconfig(wayland-client) >= 1.18
Requires: pkgconfig(wayland-cursor)
Requires: pkgconfig(xkbcommon)
Requires: pkgconfig(fontconfig)
Requires: pkgconfig(gl) pkgconfig(glu)
Requires: pkgconfig(ice) pkgconfig(sm)
Requires: pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
Requires: pkgconfig(libjpeg)
Requires: pkgconfig(libpng)
Requires: pkgconfig(zlib)
%description devel
%{summary}.
%package static
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{version}-%{release}
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{version}-%{release}
%description static
%{summary}.
%package options
Summary: Fast Light Tool Kit Options Editor
Requires: %{name}%{?_isa} = %{version}-%{release}
%description options
%{summary}, an interactive options editor for applications
using %{name}.
%package fluid
Summary: Fast Light User Interface Designer
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-devel
Summary: Fast Light User Interface Designer
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-devel
%description fluid
%{summary}, an interactive GUI designer for %{name}.
%{summary}, an interactive GUI designer for %{name}.
%if %{with mingw}
%package -n mingw32-fltk
Summary: MinGW compiled fltk for the Win32 target
%description -n mingw32-fltk
%{_description}
# Win64
%package -n mingw64-fltk
Summary: MinGW compiled fltk for the Win64 target
%description -n mingw64-fltk
%{_description}
%package -n mingw32-fltk-static
Summary: MinGW compiled fltk for the Win32 target
%description -n mingw32-fltk-static
%{_description}
# Win64
%package -n mingw64-fltk-static
Summary: MinGW compiled fltk for the Win64 target
%description -n mingw64-fltk-static
%{_description}
%{?mingw_debug_package}
%endif
%prep
%if 0%{?snap:1}
%autosetup -p1 -n fltk-1.3.x-%{snap}
%else
%autosetup -p1
%endif
# verbose build output
sed -i.silent '\,^.SILENT:,d' makeinclude.in
autoconf
%conf
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DFLTK_BUILD_SHARED_LIBS:BOOL=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-DFLTK_OPTION_CAIRO_WINDOW:BOOL=ON \
-DFLTK_BUILD_HTML_DOCS:BOOL=ON \
-DFLTK_BUILD_PDF_DOCS:BOOL=OFF \
%{nil}
%if %{with mingw}
%mingw_cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DFLTK_OPTION_CAIRO_WINDOW:BOOL=ON \
-DFLTK_BUILD_SHARED_LIBS:BOOL=ON \
-DFLTK_BUILD_HTML_DOCS:BOOL=OFF \
-DFLTK_BUILD_PDF_DOCS:BOOL=OFF \
%{nil}
%endif
%build
# set DSOFLAGS too, used to link shlibs (LDFLAGS used only for static libs)
%{?__global_ldflags:DSOFLAGS="%{__global_ldflags}" ; export DSOFLAGS}
%cmake_build
%configure \
--with-links \
--with-optim="%{optflags}" \
--disable-localjpeg \
--disable-localzlib \
--disable-localpng \
--enable-shared \
--enable-threads \
--enable-xdbe \
--enable-xinerama \
--enable-xft
%cmake_build --target docs
%make_build
%if %{with mingw}
%mingw_make_build
%endif
%install
%make_install
%cmake_install
make install-linux -C fluid DESTDIR=$RPM_BUILD_ROOT
# Replace "static" applications with their "shared" equivalents
mv %{buildroot}%{_bindir}/fltk-options-shared %{buildroot}%{_bindir}/fltk-options
mv %{buildroot}%{_bindir}/fluid-shared %{buildroot}%{_bindir}/fluid
# Delete installed demo applications
rm %{buildroot}%{_bindir}/{blocks,checkers,glpuzzle,sudoku}
# Deal with license file of same name
mv src/xutf8/COPYING ./COPYING.xutf8
# we only apply this hack to multilib arch's
%ifarch x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparc
%global arch %(uname -i 2>/dev/null || echo undefined)
mv $RPM_BUILD_ROOT%{_bindir}/fltk-config \
$RPM_BUILD_ROOT%{_bindir}/fltk-config-%{arch}
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config
%ifarch x86_64 %{ix86}
%global arch %(uname -m 2>/dev/null || echo undefined)
mv %{buildroot}%{_bindir}/fltk-config \
%{buildroot}%{_bindir}/fltk-config-%{arch}
install -p -m755 -D %{SOURCE1} %{buildroot}%{_bindir}/fltk-config
%endif
# docs
rm -rf __docs
mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
%if %{with mingw}
%mingw_make_install
%mingw_debug_install_post
## unpackaged files
# errant docs
rm -rv $RPM_BUILD_ROOT%{_mandir}/cat*
# Delete redundant man pages
rm -rf %{buildroot}%{mingw32_mandir}
rm -rf %{buildroot}%{mingw64_mandir}
# Replace "static" applications with their "shared" equivalents
mv %{buildroot}%{mingw32_bindir}/fltk-options-shared.exe \
%{buildroot}%{mingw32_bindir}/fltk-options.exe
mv %{buildroot}%{mingw64_bindir}/fltk-options-shared.exe \
%{buildroot}%{mingw64_bindir}/fltk-options.exe
# Delete useless fluid binaries
rm -rf %{buildroot}{%{mingw32_bindir},%{mingw64_bindir}}/fluid*
# Delete installed demo applications
rm %{buildroot}{%{mingw32_bindir},%{mingw64_bindir}}/{blocks,checkers,glpuzzle,sudoku}.exe
%endif
%check
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/fluid.desktop
%ldconfig_scriptlets
%files
%doc ANNOUNCEMENT CHANGES CREDITS README
%license COPYING
%{_libdir}/libfltk.so.1.3
%{_libdir}/libfltk_forms.so.1.3
%{_libdir}/libfltk_gl.so.1.3
%{_libdir}/libfltk_images.so.1.3
%doc ANNOUNCEMENT CHANGES.txt CREDITS.txt README.txt
%license COPYING COPYING.xutf8
%{_libdir}/libfltk.so.%{majorver}{,.*}
%{_libdir}/libfltk_cairo.so.%{majorver}{,.*}
%{_libdir}/libfltk_forms.so.%{majorver}{,.*}
%{_libdir}/libfltk_gl.so.%{majorver}{,.*}
%{_libdir}/libfltk_images.so.%{majorver}{,.*}
%files devel
%doc __docs/*
%doc %{_vpath_builddir}/documentation/html
%{_bindir}/fltk-config
%{?arch:%{_bindir}/fltk-config-%{arch}}
%{_includedir}/FL/
%{_includedir}/Fl
%{_libdir}/libfltk.so
%{_libdir}/libfltk_cairo.so
%{_libdir}/libfltk_forms.so
%{_libdir}/libfltk_gl.so
%{_libdir}/libfltk_images.so
%{_libdir}/cmake/fltk/
%{_mandir}/man1/fltk-config.1*
%{_mandir}/man1/fltk-options.1*
%{_mandir}/man3/fltk.3*
%{_mandir}/man6/*.6*
%files static
%{_libdir}/libfltk.a
%{_libdir}/libfltk_cairo.a
%{_libdir}/libfltk_forms.a
%{_libdir}/libfltk_gl.a
%{_libdir}/libfltk_images.a
%files options
%{_bindir}/fltk-options
%{_mandir}/man1/fltk-options.1*
%{_datadir}/applications/fltk-options.desktop
%{_datadir}/mime/packages/fltk-options.xml
%{_datadir}/icons/hicolor/*/*/fltk-options.png
%files fluid
%{_bindir}/fluid
%{_mandir}/man1/fluid.1*
%{_datadir}/applications/fluid.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/fluid.xml
%{_datadir}/icons/hicolor/*/*/fluid.png
%if %{with mingw}
%files -n mingw32-fltk
%license COPYING COPYING.xutf8
%{mingw32_bindir}/fltk-config
%{mingw32_bindir}/fltk-options-cmd.exe
%{mingw32_bindir}/fltk-options.exe
%{mingw32_bindir}/libfltk.dll
%{mingw32_libdir}/libfltk.dll.a
%{mingw32_bindir}/libfltk_cairo.dll
%{mingw32_libdir}/libfltk_cairo.dll.a
%{mingw32_bindir}/libfltk_forms.dll
%{mingw32_libdir}/libfltk_forms.dll.a
%{mingw32_bindir}/libfltk_images.dll
%{mingw32_libdir}/libfltk_images.dll.a
%{mingw32_bindir}/libfltk_jpeg.dll
%{mingw32_libdir}/libfltk_jpeg.dll.a
%{mingw32_bindir}/libfltk_png.dll
%{mingw32_libdir}/libfltk_png.dll.a
%{mingw32_bindir}/libfltk_gl.dll
%{mingw32_libdir}/libfltk_gl.dll.a
%{mingw32_bindir}/libfltk_z.dll
%{mingw32_libdir}/libfltk_z.dll.a
%{mingw32_includedir}/FL/
%{mingw32_libdir}/cmake/fltk/
%files -n mingw64-fltk
%license COPYING COPYING.xutf8
%{mingw64_bindir}/fltk-config
%{mingw64_bindir}/fltk-options-cmd.exe
%{mingw64_bindir}/fltk-options.exe
%{mingw64_bindir}/libfltk.dll
%{mingw64_libdir}/libfltk.dll.a
%{mingw64_bindir}/libfltk_cairo.dll
%{mingw64_libdir}/libfltk_cairo.dll.a
%{mingw64_bindir}/libfltk_forms.dll
%{mingw64_libdir}/libfltk_forms.dll.a
%{mingw64_bindir}/libfltk_images.dll
%{mingw64_libdir}/libfltk_images.dll.a
%{mingw64_bindir}/libfltk_jpeg.dll
%{mingw64_libdir}/libfltk_jpeg.dll.a
%{mingw64_bindir}/libfltk_png.dll
%{mingw64_libdir}/libfltk_png.dll.a
%{mingw64_bindir}/libfltk_gl.dll
%{mingw64_libdir}/libfltk_gl.dll.a
%{mingw64_bindir}/libfltk_z.dll
%{mingw64_libdir}/libfltk_z.dll.a
%{mingw64_includedir}/FL/
%{mingw64_libdir}/cmake/fltk/
%files -n mingw32-fltk-static
%{mingw32_libdir}/libfltk.a
%{mingw32_libdir}/libfltk_cairo.a
%{mingw32_libdir}/libfltk_forms.a
%{mingw32_libdir}/libfltk_images.a
%{mingw32_libdir}/libfltk_jpeg.a
%{mingw32_libdir}/libfltk_png.a
%{mingw32_libdir}/libfltk_gl.a
%{mingw32_libdir}/libfltk_z.a
%files -n mingw64-fltk-static
%{mingw64_libdir}/libfltk.a
%{mingw64_libdir}/libfltk_cairo.a
%{mingw64_libdir}/libfltk_forms.a
%{mingw64_libdir}/libfltk_images.a
%{mingw64_libdir}/libfltk_jpeg.a
%{mingw64_libdir}/libfltk_png.a
%{mingw64_libdir}/libfltk_gl.a
%{mingw64_libdir}/libfltk_z.a
%endif
%changelog
* Mon Jan 12 2026 Neal Gompa <ngompa@fedoraproject.org> - 1.4.4-1
- Rebase to 1.4.4
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Mar 22 2025 Richard Shaw <hobbes1069@gmail.com> - 1.3.11-1
- Update to 1.3.11.
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Sep 05 2022 Richard Shaw <hobbes1069@gmail.com> - 1.3.8-5
- Fix second instance of uname -i in bash script.
* Sat Aug 27 2022 Richard Shaw <hobbes1069@gmail.com> - 1.3.8-4
- Spec file modernization and fixes:
Update to SPDX license tag
Clean up spec file formatting
Remove obsolete snapshot build support
Migrate from uname -i to uname -m
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Nov 20 2021 Richard Shaw <hobbes1069@gmail.com> - 1.3.8-1
- Update to 1.3.8.
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sun Jun 27 2021 Richard Shaw <hobbes1069@gmail.com> - 1.3.6-1
- Update to 1.3.6.
* Mon Feb 22 2021 Richard Shaw <hobbes1069@gmail.com> - 1.3.5-11
- Update requires for devel package, fixes #1931645.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 21 2021 Adam Jackson <ajax@redhat.com> - 1.3.5-9
- Remove BuildRequires xprop entirely. If present, the configure script will call
it looking for a property on the root window that Fedora's X server does not
set, and which would not work anyway since there is no X server running in the
buildroot, so we can just remove the dependency.
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-8
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Adam Jackson <ajax@redhat.com> - 1.3.5-7
- BuildRequires xprop not xorg-x11-server-utils
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu May 14 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-5
- restore fltk_config.patch lost in last (cmake) merge
* Mon May 11 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-4
- merge cmake PR
- spec cosmetics
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (fltk-1.3.5-source.tar.gz) = db7ea7c5f3489195a48216037b9371a50f1119ae7692d66f71b6711e5ccf78814670581bae015e408dee15c4bba921728309372c1cffc90113cdc092e8540821
SHA512 (fltk-1.4.4-source.tar.gz) = 7d120a726a19f0f7172ddf18285baad949383a0bd368dcb6efe8ad21c0506c77edaf87dc53c9c31f3b2523fd1c0fd738e83d3e506459eb7159d390876c79a9a2