初始化,增加etipc源码包、spec文件说明
1. 将openeuler/etipc路径下的源码打成zip压缩包拷贝下来; 2. 撰写etipc.spec文件,使能euler在线CI可编译rpm包 Signed-off-by: chengjunjia <jiachengjun2@huawei.com>
This commit is contained in:
parent
4c4e0634d3
commit
8d58a6a3ce
BIN
etipc-1.7.7.zip
Normal file
BIN
etipc-1.7.7.zip
Normal file
Binary file not shown.
45
etipc.spec
Normal file
45
etipc.spec
Normal file
@ -0,0 +1,45 @@
|
||||
%global debug_package %{nil}
|
||||
%global __os_install_post %{nil}
|
||||
|
||||
Name: etipc
|
||||
Summary: ETIPC is an enhanced tipcfor the embedding products by Huawei
|
||||
Version: 1.7.7
|
||||
Release: 1
|
||||
License: GPLv2
|
||||
URL: https://gitee.com/chengjunjia/etipc_build
|
||||
Source0: https://gitee.com/chengjunjia/etipc_build/raw/openEuler-24.03-LTS/etipc-1.7.7.zip
|
||||
|
||||
BuildRequires: gcc kernel-devel kernel-headers kernel glibc glibc-devel glib2-devel cmake rpm
|
||||
# Requires : kmod
|
||||
|
||||
ExclusiveArch: x86_64 aarch64 loongarch64 sw_64 riscv64 ppc64le
|
||||
|
||||
%define kernel %(ver=`rpm -qa|grep kernel-devel`;echo ${ver#*kernel-devel-})
|
||||
|
||||
%description
|
||||
ETIPC is an enhanced tipcfor the embedding products by Huawei.
|
||||
The original version of tipc is in the Linux Kernel from Ericsson.
|
||||
|
||||
%prep
|
||||
%autosetup -n etipc-%{version}
|
||||
|
||||
%build
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
%make_build KERNEL_DIR=/usr/src/kernels/%{kernel}
|
||||
|
||||
%install
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
%make_install KERNEL_DIR=/usr/src/kernels/%{kernel} INSTALL_LIB=%{buildroot}%{_libdir} INCLUDE_PATH=%{buildroot}%{_includedir}
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root)
|
||||
%{_libdir}/recv
|
||||
%{_libdir}/msend
|
||||
%{_libdir}/usend
|
||||
%{_libdir}/tipc_config
|
||||
%{_libdir}/tipc.ko
|
||||
%{_includedir}
|
||||
|
||||
%changelog
|
||||
* Wed Sep 11 2024 jiachengjun <jiachengjun2@huawei.com> - 1.7.7
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user