From fac2aadf328bb81b1c08c6940d5d32d3ec7f9985 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 15 Dec 2021 16:49:10 -0800 Subject: dcavalca's tsl-sparse-map Signed-off-by: Michel Alexandre Salim --- meta/libs/tsl-sparse-map.spec | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 meta/libs/tsl-sparse-map.spec diff --git a/meta/libs/tsl-sparse-map.spec b/meta/libs/tsl-sparse-map.spec new file mode 100644 index 0000000..5135a88 --- /dev/null +++ b/meta/libs/tsl-sparse-map.spec @@ -0,0 +1,55 @@ +%global debug_package %{nil} + +%global srcname sparse-map + +%global _description %{expand: +The sparse-map library is a C++ implementation of a memory efficient hash map +and hash set. It uses open-addressing with sparse quadratic probing. The goal +of the library is to be the most memory efficient possible, even at low load +factor, while keeping reasonable performances.} + +Name: tsl-%{srcname} +Version: 0.6.2 +Release: %autorelease +Summary: C++ implementation of a memory efficient hash map and hash set + +License: MIT +URL: https://github.com/Tessil/%{srcname} +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ + +BuildRequires: boost-devel + +%description %{_description} + +%package devel +Summary: %{summary} + +%description devel %{_description} + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +pushd tests +%cmake +%cmake_build +./%{_vpath_builddir}/tsl_sparse_map_tests + +%files devel +%license LICENSE +%doc README.md +%{_includedir}/tsl +%{_datadir}/cmake/%{name} + +%changelog +%autochangelog -- cgit