%global debug_package %{nil} %define _build_id_links none %if 0%{?rhel} && 0%{?rhel} < 10 %global gcc_toolset_enable source /opt/rh/gcc-toolset-15/enable %else %global gcc_toolset_enable source /usr/lib/gcc-toolset/15-env.source %endif Name: jemalloc Version: 5.3.1 Release: 1%{?dist} Summary: General-purpose scalable concurrent malloc implementation License: LicenseRef-Callaway-BSD URL: https://jemalloc.net/ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: gcc-toolset-15-gcc-plugin-annobin BuildRequires: perl-generators BuildRequires: make %description General-purpose scalable concurrent malloc(3) implementation. This distribution is the stand-alone "portable" implementation of %{name}. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %build %{gcc_toolset_enable} %configure \ --enable-prof \ --enable-autogen \ --disable-doc make %{?_smp_mflags} %check %{gcc_toolset_enable} make %{?_smp_mflags} check %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # None of these in fedora find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';' %files %{_libdir}/libjemalloc.so.* %{_bindir}/jemalloc.sh %doc COPYING README VERSION %files devel %{_includedir}/jemalloc %{_bindir}/jemalloc-config %{_libdir}/pkgconfig/jemalloc.pc %{_bindir}/jeprof %{_libdir}/libjemalloc.so %ldconfig_scriptlets %changelog %autochangelog