%global debug_package %{nil} %global forgeurl https://github.com/Ravenbrook/mps %global commit 9fd0577cf1231e61c9801c81499e5d16d0743806 %forgemeta Name: libmps Version: 1.118.90 Release: %autorelease Summary: The Memory Pool System License: BSD-2-Clause URL: %{forgeurl} Source: %{forgesource} BuildRequires: gcc BuildRequires: make %description Ravenbrook Memory Pooling System for building garbage collectors %prep %forgeautosetup %build gcc -O2 -flto=auto -ffat-lto-objects -fPIC -pipe -fstack-clash-protection -c code/mps.c gcc-ar rvs libmps.a mps.o %install mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir}/%{name} install -m 644 libmps.a %{buildroot}/%{_libdir} install -m 644 code/mps*.h %{buildroot}/%{_includedir}/%{name} %files %{_libdir}/libmps.a %{_includedir}/%{name}/mps*.h %license license.txt %changelog %autochangelog