File mingw64-fltk.spec of Package mingw64-fltk
#
# spec file for package mingw64-fltk
#
# Copyright (c) 2018-2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lname libfltk1
%define realname fltk
Name: mingw64-%{realname}
Version: 1.3.11
Release: 0
Summary: FLTK Library
License: LGPL-2.1-or-later
Group: System/Libraries
Url: https://www.fltk.org/
Source: https://github.com/fltk/fltk/releases/download/release-%{version}/%{realname}-%{version}-source.tar.gz
Patch1: fltk-1.3.2-verbose_build.patch
Patch2: fltk-1.3.4-disable-tests-and-docs.patch
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-libpng-devel
BuildRequires: mingw64-libjpeg8-devel
BuildRequires: mingw64-zlib-devel
%{_mingw64_package_header_debug}
BuildArch: noarch
%description
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a C++
graphical user interface toolkit for the X Window System (UNIX(r)),
OpenGL(r), and Microsoft(r) Windows(r) NT 4.0, 95, or 98. The
installation of this package requires you to install a 3D library. If
you do not have hardware 3D, you can use the software OpenGL library in
the mesasoft package (series x3d). The library can be recompiled
without 3D support.
%package -n mingw64-%{lname}
Summary: The FLTK GUI toolkit library
Group: System/Libraries
%description -n mingw64-%{lname}
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a C++
graphical user interface toolkit for the X Window System,
OpenGL, and Microsoft Windows NT 4.0, 95, or 98. The
installation of this package requires a 3D library such as Mesa.
%package devel
Summary: Development files for the FLTK GUI toolkit
Group: Development/Libraries/C and C++
Requires: mingw64-%{lname} = %{version}
%description devel
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a C++
graphical user interface toolkit for the X Window System,
OpenGL, and Microsoft Windows NT 4.0, 95, or 98. The
installation of this package requires a 3D library such as Mesa.
%{_mingw64_debug_package}
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_configure} \
--enable-shared \
--enable-threads
%{_mingw64_make} %{?_smp_mflags}
%install
%make_install
%files -n mingw64-%{lname}
%license COPYING
%doc CHANGES README
%{_mingw64_bindir}/mgwfltknox-*.dll
%{_mingw64_bindir}/mgwfltknox_forms-*.dll
%{_mingw64_bindir}/mgwfltknox_gl-*.dll
%{_mingw64_bindir}/mgwfltknox_images-*.dll
%files devel
%{_mingw64_bindir}/fltk-config
%{_mingw64_includedir}/FL
%{_mingw64_libdir}/libfltk*.a
%changelog