%{?mingw_package_header} Name: mingw-fltk Version: 1.3.5 Release: 1%{?dist} Summary: C++ user interface toolkit License: LGPLv2+ with exceptions URL: http://www.fltk.org Source0: https://fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz Patch0: mingw-fltk-cmake.patch BuildArch: noarch BuildRequires: cmake BuildRequires: fltk-fluid BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw32-gettext BuildRequires: mingw32-win-iconv BuildRequires: mingw32-zlib # Librarys BuildRequires: mingw32-libpng BuildRequires: mingw32-libjpeg BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-binutils BuildRequires: mingw64-gettext BuildRequires: mingw64-win-iconv BuildRequires: mingw64-zlib # Librarys BuildRequires: mingw64-libpng BuildRequires: mingw64-libjpeg %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 -n mingw32-fltk Summary: %{summary} %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: %{summary} %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} %prep %autosetup -p1 -n fltk-%{version} %build %mingw_cmake -DOPTION_BUILD_SHARED_LIBS=TRUE %mingw_make -j12 %install %mingw_make_install DESTDIR=%{buildroot} # CMake option for install location seems to be ignored on MingGW, force it. # We'll worry if it breaks something later. #mkdir -p %{buildroot}%{mingw32_datadir}/cmake #mkdir -p %{buildroot}%{mingw64_datadir}/cmake #mv %{buildroot}%{mingw32_prefix}/CMake %{buildroot}%{mingw32_datadir}/cmake/fltk #mv %{buildroot}%{mingw64_prefix}/CMake %{buildroot}%{mingw64_datadir}/cmake/fltk %files -n mingw32-fltk %{mingw32_bindir}/fltk-config %{mingw32_libdir}/libfltk.dll.a %{mingw32_bindir}/libfltk.dll %{mingw32_libdir}/libfltk_forms.dll.a %{mingw32_bindir}/libfltk_forms.dll %{mingw32_libdir}/libfltk_images.dll.a %{mingw32_bindir}/libfltk_images.dll %{mingw32_libdir}/libfltk_gl.dll.a %{mingw32_bindir}/libfltk_gl.dll %{mingw32_includedir}/FL/ %{mingw32_datadir}/cmake/fltk/ %exclude %{mingw32_bindir}/lib*.dll.debug %exclude %{mingw32_datadir}/man/* %files -n mingw64-fltk %{mingw64_bindir}/fltk-config %{mingw64_libdir}/libfltk.dll.a %{mingw64_bindir}/libfltk.dll %{mingw64_libdir}/libfltk_forms.dll.a %{mingw64_bindir}/libfltk_forms.dll %{mingw64_libdir}/libfltk_images.dll.a %{mingw64_bindir}/libfltk_images.dll %{mingw64_libdir}/libfltk_gl.dll.a %{mingw64_bindir}/libfltk_gl.dll %{mingw64_includedir}/FL/ %{mingw64_datadir}/cmake/fltk/ %exclude %{mingw64_bindir}/lib*.dll.debug %exclude %{mingw64_datadir}/man/* %files -n mingw32-fltk-static %{mingw32_libdir}/libfltk.a %{mingw32_libdir}/libfltk_forms.a %{mingw32_libdir}/libfltk_images.a %{mingw32_libdir}/libfltk_gl.a %files -n mingw64-fltk-static %{mingw64_libdir}/libfltk.a %{mingw64_libdir}/libfltk_forms.a %{mingw64_libdir}/libfltk_images.a %{mingw64_libdir}/libfltk_gl.a %changelog * Sun May 10 2020 Richard Shaw - 1.3.5-1 - Initial packaging.