Name: pluto Version: 0.10.5 Release: 1%{?dist} Summary: A superset of Lua with a focus on general-purpose programming. License: MIT URL: https://pluto-lang.org/ Source0: Pluto-0.10.5.tar.gz #Patch0: meu-patch.patch # Dependências para construir o pacote BuildRequires: gcc,make,gcc-c++ #Requires: alguma-dependencia # Dependências para instalar o pacote %description Pluto is a superset of Lua with a focus on general-purpose programming. While being remarkably compatible with Lua 5.4 source-code & bytecode, it enhances the standard library & adds more than a dozen highly-desired syntaxes such as switch statements, compound operators, classes, class inheritance, string interpolation, type hinting, enums, and so on. %prep %setup -q -n Pluto-0.10.5 %build unset CFLAGS unset CXXFLAGS export CFLAGS="-O2 -g -pipe -Wall -Wno-error" export CXXFLAGS="-O2 -g -pipe -Wall -Wno-error -std=c++17" unset RPM_OPT_FLAGS export BUILD_CFLAGS="$CFLAGS" export BUILD_CXXFLAGS="$CXXFLAGS" cd %{_builddir}/Pluto-0.10.5/src make clean make pluto plutoc %{?_smp_mflags} %install rm -rf %{buildroot} cd %{_builddir}/Pluto-0.10.5 make install INSTALL_TOP=%{buildroot}/usr INSTALL_BIN=%{buildroot}/usr/bin INSTALL_INC=%{buildroot}/usr/include INSTALL_LIB=%{buildroot}/usr/lib64 INSTALL_MAN=%{buildroot}/usr/share/man/man1 INSTALL_LMOD=%{buildroot}/usr/share/lua/%{version} INSTALL_CMOD=%{buildroot}/usr/lib64/lua/%{version} %files %doc README COPYING /usr/bin/pluto /usr/bin/plutoc /usr/include/lua.h /usr/include/luaconf.h /usr/include/lualib.h /usr/include/lauxlib.h /usr/include/lua.hpp /usr/lib64/libpluto.so /usr/lib64/libplutostatic.a /usr/share/man/man1/lua.1 /usr/share/man/man1/luac.1 /usr/share/lua/0.10.5/ /usr/lib64/lua/0.10.5/ %changelog * Sat May 10 2025 - Fábio Rodrigues Ribeiro - 0.10.5-1 - Versão inicial do pacote.