summaryrefslogtreecommitdiff
path: root/megascan.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-26 03:56:34 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-26 03:56:34 +0000
commit4ce10ef29723bc52ef5501d65794ec85048e18bc (patch)
treed9393be91f178e3b64c08f585c4d1f4b109a6842 /megascan.spec
parent6bbd7b262d07965676e5b81d58fb99eb3a95cea5 (diff)
automatic import of megascanopeneuler24.03_LTS_SP4
Diffstat (limited to 'megascan.spec')
-rw-r--r--megascan.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/megascan.spec b/megascan.spec
new file mode 100644
index 0000000..b5bce31
--- /dev/null
+++ b/megascan.spec
@@ -0,0 +1,60 @@
+# topdir: megascan-1.0.0
+%global debug_package %{nil}
+
+Name: megascan
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: High-performance multi-pattern matching library for large rule sets
+
+License: MulanPSL-2.0
+URL: https://gitcode.com/boostkit/Megascan
+Source0: https://gitcode.com/boostkit/Megascan/archive/refs/tags/Megascan-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+
+BuildRequires: gcc
+BuildRequires: cmake
+BuildRequires: make
+
+%description
+Megascan is a high-performance multi-pattern matching library that combines
+Hash algorithms with a compact AC automaton, targeting ultra-large fixed-length
+rule sets and hundreds of thousands of variable-length rules. It provides a
+handler-compatible interface together with database, scratch and stream based
+scan interfaces, supporting ordinary rules, combined rules, block scanning,
+cross-shard stream scanning and dynamic deletion.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for developing applications with %{name}.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
+cmake --build build %{?_smp_mflags}
+
+%install
+install -d %{buildroot}%{_libdir}
+install -p -m 755 output/lib/libms.so %{buildroot}%{_libdir}/
+install -d %{buildroot}%{_includedir}
+install -p -m 644 output/include/*.h %{buildroot}%{_includedir}/
+
+%files
+%license LICENSE
+%doc README.md
+%{_libdir}/libms.so
+
+%files devel
+%{_includedir}/*.h
+
+%changelog
+* Thu Nov 26 2026 openEuler Builder <builder@openeuler.org> - 1.0.0-1
+- Initial package for Megascan 1.0.0