Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37496859
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libmimalloc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Group: System/Libraries

BuildRequires(pre): rpm-macros-cmake

%define oldname mimalloc
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}

Name:           libmimalloc
Version:        2.1.2
Release:        alt1
Summary:        A general purpose allocator with excellent performance

License:        MIT
URL:            https://github.com/microsoft/mimalloc
Source:         %name-%version.tar

BuildRequires:  ctest cmake
BuildRequires:  gcc-c++

%description
mimalloc (pronounced "me-malloc")
is a general purpose allocator with excellent performance characteristics.
Initially developed by Daan Leijen for the run-time systems.

%package -n libmimalloc2
Summary:        Shared library for the %oldname library
Group:          System/Libraries

%description -n libmimalloc2
mimalloc (pronounced "me-malloc")
is a general purpose allocator with excellent performance characteristics.
Initially developed by Daan Leijen for the run-time systems.

This package contains the shared library.

%package -n libmimalloc-devel
Group: Development/C
Summary:        Development files for %oldname
Requires:       libmimalloc2 = %EVR
Provides: %oldname-devel = %EVR

%description -n libmimalloc-devel
Development package for mimalloc.

%prep
%setup

# Remove unneeded binaries from source tree.

rm -rf bin

%build
%cmake \
   -DMI_BUILD_OBJECT=OFF \
   -DMI_OVERRIDE=OFF \
   -DMI_INSTALL_TOPLEVEL=ON \
   -DMI_BUILD_STATIC=OFF \
   -DMI_BUILD_TESTS=ON \
   -DCMAKE_BUILD_TYPE=Release
%cmake_build


%install
%cmake_install


%check
cd %_cmake__builddir; ctest -V; cd -


%files -n libmimalloc2
%doc --no-dereference LICENSE
%doc readme.md
%_libdir/libmimalloc.so.2
%_libdir/libmimalloc.so.2.*

%files -n libmimalloc-devel
%_libdir/libmimalloc.so
%_libdir/cmake/%oldname
%_includedir/*
%_pkgconfigdir/*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin