加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
clibcni.spec 5.95 KB
一键复制 编辑 原始数据 按行查看 历史
邹鹏 提交于 2023-11-28 16:13 . Add ppc64le architecture
%global _version 2.1.0
%global _release 2
Name: clibcni
Version: %{_version}
Release: %{_release}
Summary: CNI - the Container Network Interface
Group: System Environment/Libraries
License: Mulan PSL v2
URL: https://gitee.com/openeuler/clibcni
Source0: https://gitee.com/openeuler/clibcni/repository/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
%define libisulaver_lower 2.1.1-0
BuildRequires: gcc git gcc-c++
BuildRequires: cmake
BuildRequires: libisula-devel > %{libisulaver_lower} yajl-devel gtest-devel gmock-devel
Requires: libisula > %{libisulaver_lower}
%ifarch x86_64 aarch64 riscv64 loongarch64 ppc64le
Provides: lib%{name}.so()(64bit)
%endif
%description
CNI (Container Network Interface), a Cloud Native Computing Foundation project,
consists of a specification and libraries for writing plugins to configure
network interfaces in Linux containers, along with a number of supported
plugins. CNI concerns itself only with network connectivity of containers and
removing allocated resources when the container is deleted. Because of this
focus, CNI has a wide range of support and the specification is simple to implement.
%package devel
Summary: Huawei CNI C Library
Group: Libraries
ExclusiveArch: x86_64 aarch64 sw_64 riscv64 loongarch64 ppc64le
Requires: %{name} = %{version}-%{release}
%description devel
the %{name}-libs package contains libraries for running %{name} applications.
%prep
%autosetup -n clibcni-v%{_version} -Sgit -p1
%build
mkdir -p build
cd build
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} ../
%make_build
%install
rm -rf %{buildroot}
cd build
install -d $RPM_BUILD_ROOT/%{_libdir}
install -m 0644 ./src/libclibcni.so %{buildroot}/%{_libdir}/libclibcni.so
chmod +x %{buildroot}/%{_libdir}/libclibcni.so
install -d $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
install -m 0644 ./conf/clibcni.pc %{buildroot}/%{_libdir}/pkgconfig/clibcni.pc
install -d $RPM_BUILD_ROOT/%{_includedir}/clibcni
install -m 0644 ../src/api.h %{buildroot}/%{_includedir}/clibcni/api.h
install -m 0644 ../src/types/types.h %{buildroot}/%{_includedir}/clibcni/types.h
install -m 0644 ../src/version/version.h %{buildroot}/%{_includedir}/clibcni/version.h
find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'
find %{buildroot} -name '*.cmake' -exec rm -f {} ';'
%clean
rm -rf %{buildroot}
%pre
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/lib%{name}.so*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Nov 28 2023 peng.zou <peng.zou@shingroup.cn> - 2.1.0-2
- Type: feature
- ID: NA
- SUG: NA
- DESC: Add ppc64le architecture
* Thu Nov 16 2023 jikai <jikai11@huawei.com> - 2.1.0-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: Update to 2.1.0
* Fri May 12 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 2.0.7-8
- Type: feature
- ID: NA
- SUG: NA
- DESC: Add loongarch64 architecture
* Mon Mar 27 2023 misaka00251 <liuxin@iscas.ac.cn> - 2.0.7-7
- Type: feature
- ID: NA
- SUG: NA
- DESC: Add riscv64 architecture
* Mon Feb 06 2023 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.7-6
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: modify lcr dependence to libisula
* Wed Dec 21 2022 wangrunze <wangrunze13@huawei.com> - 2.0.7-5
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: update lcr dependence version
* Thu Nov 3 2022 wuzx<wuzx1226@qq.com> - 2.0.7-4
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Tue Oct 18 2022 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.7-3
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: add required package lcr lower and upper version
* Thu Jun 2 2022 haozi007 <liuhao27@huawei.com> - 2.0.7-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove rpath by cmake
* Thu Feb 24 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update to version v2.0.7
* Mon Jan 10 2022 haozi007 <liuhao27@huawei.com> - 2.0.6-7
- Type: sync patch from upstream
- ID: NA
- SUG: NA
- DESC: sync from openeuler
* Mon Jan 10 2022 haozi007 <liuhao27@huawei.com> - 2.0.6-6
- Type: adapt to new gmock
- ID: NA
- SUG: NA
- DESC: add gmock build requires
* Mon Dec 06 2021 gaohuatao <gaohuatao@huawei.com> - 2.0.6-5
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: specify version
* Tue Nov 23 2021 liuhao <liuhao27@huawei.com> - 2.0.6-4
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: improve coverage of ut
* Mon Nov 22 2021 liuhao <liuhao27@huawei.com> - 2.0.6-3
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: improve coverage of ut
* Tue Nov 16 2021 wujing <wujing50@huawei.com> - 2.0.6-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove build platform restrictions
* Tue Nov 09 2021 haozi007 <liuhao27@huawei.com> - 2.0.6-1
- Type: upgrade version
- ID: NA
- SUG: NA
- DESC: upgrade to v2.0.6
* Mon Jun 28 2021 haozi007 <liuhao27@huawei.com> - 2.0.4-20210628.190359.git14c104bc
- Type: add g++ to build require
- ID: NA
- SUG: NA
- DESC: add g++ to build require
* Mon Jun 28 2021 haozi007 <liuhao27@huawei.com> - 2.0.4-20210628.151504.git61ae9f6b
- Type: add git to build require
- ID: NA
- SUG: NA
- DESC: add git to build require
* Sat May 8 2021 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.4-20210508.150021.git73679d5d
- Type: sync from upstream
- ID: NA
- SUG: NA
- DESC: update from master
* Wed Dec 30 2020 lifeng <lifeng68@huawei.com> - 2.0.4-20201230.152647.gitf9277cd7
- Type: update version to v2.0.4
- ID:NA
- SUG:NA
* Sat Nov 28 2020 haozi007 <liuhao27@huawei.com> - 2.0.3-20201128.142102.git866f22d3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix parse ipv6 format error
* Thu Nov 12 2020 gaohuatao <gaohuatao@huawei.com> - 2.0.3-20201112.165252.gitc4aadda4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: update from openeuler master
* Fri Sep 04 2020 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.3-20200904.104745.git413e6757
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: upgrade from v2.0.2 to v2.0.3
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化