File mingw32-fltk.spec of Package mingw32-fltk
#
# spec file for package mingw32-fltk
#
# Copyright (c) 2018-2024, 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: mingw32-%{realname}
Version: 1.3.4
Release: 0
Summary: FLTK Library
License: LGPL-2.1-or-later
Group: System/Libraries
Url: http://www.fltk.org/
Source: http://fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz
Patch0: fltk-1.3.4-fltk_config.patch
Patch1: fltk-1.3.2-verbose_build.patch
Patch2: fltk-1.3.4-disable-tests-and-docs.patch
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-libpng-devel
BuildRequires: mingw32-libjpeg8-devel
BuildRequires: mingw32-zlib-devel
%{_mingw32_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 mingw32-%{lname}
Summary: The FLTK GUI toolkit library
Group: System/Libraries
%description -n mingw32-%{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 -n mingw32-%{realname}-devel
Summary: Development files for the FLTK GUI toolkit
Group: Development/Libraries/C and C++
Requires: mingw32-%{lname} = %{version}
%description -n mingw32-%{realname}-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.
%{_mingw32_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%patch -P 0 -p1
%patch -P 1 -p0
%patch -P 2 -p1
%build
%{_mingw32_configure} \
--enable-shared \
--enable-threads
%{_mingw32_make} %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-%{lname}
%license COPYING
%doc CHANGES README
%{_mingw32_bindir}/mgwfltknox-*.dll
%{_mingw32_bindir}/mgwfltknox_forms-*.dll
%{_mingw32_bindir}/mgwfltknox_gl-*.dll
%{_mingw32_bindir}/mgwfltknox_images-*.dll
%files -n mingw32-%{realname}-devel
%{_mingw32_bindir}/fltk-config
%{_mingw32_includedir}/FL
%{_mingw32_libdir}/libfltk*.a
%changelog