summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--robin-map-dev.spec52
-rw-r--r--sources1
3 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0b18ee1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/robin-map-dev-1.4.1.tar.gz
diff --git a/robin-map-dev.spec b/robin-map-dev.spec
new file mode 100644
index 0000000..37a85e7
--- /dev/null
+++ b/robin-map-dev.spec
@@ -0,0 +1,52 @@
+# topdir: robin-map-dev-1.4.1 (normalized by tar --transform)
+%global debug_package %{nil}
+
+Name: robin-map-dev
+Version: 1.4.1
+Release: 1%{?dist}
+Summary: A C++ fast hash map and hash set using robin hood hashing
+
+License: MIT
+URL: https://github.com/Tessil/robin-map
+# GitHub tag archive; #/ anchor forces spectool save name to %{name}-%{version}.tar.gz
+Source0: https://github.com/Tessil/robin-map/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+
+BuildArch: noarch
+BuildRequires: cmake
+BuildRequires: gcc-c++
+
+%description
+The robin-map library is a C++ implementation of a fast hash map and hash set
+using open-addressing and linear robin hood hashing with backward shift
+deletion to resolve collisions.
+
+Four classes are provided: tsl::robin_map, tsl::robin_set, tsl::robin_pg_map
+and tsl::robin_pg_set. The first two are faster and use a power of two growth
+policy, the last two use a prime growth policy instead.
+
+This is a header-only library; this package ships the headers and the CMake
+integration files.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+%cmake \
+ -DTSL_ROBIN_MAP_ENABLE_INSTALL=ON
+%cmake_build
+
+%install
+%cmake_install
+
+%files
+%license LICENSE
+%doc README.md
+%{_includedir}/tsl/
+%{_datadir}/cmake/tsl-robin-map/
+
+%changelog
+* Wed Sep 23 2026 openEuler Builder <builder@openeuler.org> - 1.4.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..d44d997
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1b8ebeaba9e93e24d7b76a6dfffb80d9 robin-map-dev-1.4.1.tar.gz