# 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 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 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 - 1.0.0-1 - Initial package for Megascan 1.0.0