summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/libs/tsl-sparse-map.spec55
1 files changed, 55 insertions, 0 deletions
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