Name: qb64 Version: 2.0.2 Release: 2%{?dist} Summary: QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility License: MIT URL: https://qb64.org Source0: https://github.com/QB64Team/qb64/releases/download/v2.0.2/qb64_2021-11-07-02-59-19_4d85302_lnx.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: alsa-lib-devel BuildRequires: libglvnd-devel BuildRequires: mesa-libGLU-devel BuildRequires: zlib-devel Requires: alsa-lib-devel Requires: gcc-c++ Requires: libglvnd-devel Requires: mesa-libGLU-devel Requires: xmessage Requires: zlib-devel %description QB64 is a modern extended BASIC+OpenGL language that retains QB4.5/QBasic compatibility and compiles native binaries for Windows (XP and up), Linux and macOS %global debug_package %{nil} %prep %setup -q -n qb64 rm -rf ./internal/c/parts/core/os/{osx,win} %build find . -name "*.sh" -exec chmod +x {} \; find ./internal/c/parts -type f -iname "*.a" -exec rm -f {} \; find ./internal/c/parts -type f -iname "*.o" -exec rm -f {} \; find ./internal/c/libqb -type f -iname "*.o" -exec rm -f {} \; echo "Building library 'LibQB'" pushd ./internal/c/libqb/os/lnx >/dev/null rm -f ./libqb_setup.o ./setup_build.sh popd >/dev/null echo "Building library 'FreeType'" pushd ./internal/c/parts/video/font/ttf/os/lnx >/dev/null rm -f ./src.o ./setup_build.sh popd >/dev/null echo "Building library 'Core:FreeGLUT'" pushd ./internal/c/parts/core/os/lnx >/dev/null rm -f ./src.a ./setup_build.sh popd >/dev/null echo "Building 'QB64'" cp -r ./internal/source/* ./internal/temp/ pushd ./internal/c >/dev/null g++ -no-pie -w qbx.cpp libqb/os/lnx/libqb_setup.o parts/video/font/ttf/os/lnx/src.o parts/core/os/lnx/src.a -lGL -lGLU -lX11 -lpthread -ldl -lrt -D FREEGLUT_STATIC -o ../../qb64 popd echo "Adding QB64 menu entry..." cat > qb64.desktop < - Fix perms for non-root users. * Sat Jan 01 2022 Scott Williams - Initial RPM creation for QB64 2.2 -