summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-15 16:51:27 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-15 16:51:27 -0800
commit3a6bc578533d9900d5ec8e6fc193cec7e13fe118 (patch)
treed91065b981bc40a1b9f49b5a1625f676eea41f13 /libs
parent08bc9050f2229565a7880c7e412c4866666eeab6 (diff)
downloadspecs-3a6bc578533d9900d5ec8e6fc193cec7e13fe118.tar.gz
specs-3a6bc578533d9900d5ec8e6fc193cec7e13fe118.tar.xz
specs-3a6bc578533d9900d5ec8e6fc193cec7e13fe118.zip
Put tsl-sparse-map in the right place
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'libs')
-rw-r--r--libs/tsl-sparse-map.spec57
1 files changed, 57 insertions, 0 deletions
diff --git a/libs/tsl-sparse-map.spec b/libs/tsl-sparse-map.spec
new file mode 100644
index 0000000..988f43b
--- /dev/null
+++ b/libs/tsl-sparse-map.spec
@@ -0,0 +1,57 @@
+%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
+# Directory shared with other libraries by the same author, e.g. robin-map
+%dir %{_includedir}/tsl
+%{_includedir}/tsl/sparse_*.h
+%{_datadir}/cmake/%{name}
+
+%changelog
+%autochangelog