add spec and package

This commit is contained in:
fly_1997 2024-04-18 19:31:04 +08:00
parent 4668a1a936
commit dce5a02481
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,21 @@
From 695d4bc581a6ee0ddb77da748d51efb59e419baf Mon Sep 17 00:00:00 2001
From: fly_1997 <flylove7@outlook.com>
Date: Thu, 18 Apr 2024 14:25:41 +0800
Subject: [PATCH] add thread aware plugin config
---
thread_aware/thread_scenario.ini | 1 +
1 file changed, 1 insertion(+)
create mode 100644 thread_aware/thread_scenario.ini
diff --git a/thread_aware/thread_scenario.ini b/thread_aware/thread_scenario.ini
new file mode 100644
index 0000000..74b362f
--- /dev/null
+++ b/thread_aware/thread_scenario.ini
@@ -0,0 +1 @@
+redis
\ No newline at end of file
--
2.33.0

Binary file not shown.

38
oeAware-scenario.spec Normal file
View File

@ -0,0 +1,38 @@
Name: oeAware-scenario
Version: v1.0.0
Release: 1
Summary: %{name} provides low-overhead scenario awareness
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz
Patch1: add-thread-aware-plugin-config.patch
BuildRequires: cmake make gcc-c++
%description
%{name} provides low-overhead scenario awareness
%prep
%autosetup -n %{name}-%{version} -p1
%build
cd thread_aware
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_libdir}/oeAware-plugin/scenario
install -D -m 0740 ./thread_aware/build/*.so %{buildroot}%{_libdir}/oeAware-plugin/scenario
install -D -m 0640 ./thread_aware/thread_scenario.ini %{buildroot}%{_libdir}/oeAware-plugin/scenario
%files
%attr(0640, root, root) %{_libdir}/oeAware-plugin/scenario/*.ini
%attr(0440, root, root) %{_libdir}/oeAware-plugin/scenario/*.so
%changelog
* Thu Apr 18 2024 fly_1997 <flylove7@outlook.com> -v1.0.0-1
- Package init