etipc/etipc.spec
chengjunjia 67a53d57a1
为解决CI编译报错问题,暂时将源码指向chengjunjia的私仓
Signed-off-by: chengjunjia <jiachengjun2@huawei.com>
2024-09-14 08:32:42 +00:00

45 lines
1.2 KiB
RPMSpec

%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
Source0: https://gitee.com/chengjunjia/etipc/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