blob: b5bce31e3c17585f54afa85db6d334342f6ee3c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
|