2022-07-04 10:29:52 +08:00
|
|
|
%global _version 2.0.8
|
2022-07-14 09:39:50 +08:00
|
|
|
%global _release 2
|
2020-05-26 19:32:55 +08:00
|
|
|
%global _inner_name isula_libutils
|
|
|
|
|
|
2019-09-30 10:54:40 -04:00
|
|
|
Name: lcr
|
|
|
|
|
Version: %{_version}
|
2019-11-06 19:35:27 +08:00
|
|
|
Release: %{_release}
|
2020-07-01 17:30:32 +08:00
|
|
|
URL: https://gitee.com/openeuler/lcr
|
2020-09-02 11:28:50 +08:00
|
|
|
Source: https://gitee.com/openeuler/lcr/repository/archive/v%{version}.tar.gz
|
2019-09-30 10:54:40 -04:00
|
|
|
Summary: Lightweight Container Runtime
|
|
|
|
|
Group: Applications/System
|
2020-05-26 19:32:55 +08:00
|
|
|
License: LGPLv2.1+
|
2019-11-06 19:35:27 +08:00
|
|
|
BuildRoot: %{_tmppath}/lcr-%{version}
|
2019-09-30 10:54:40 -04:00
|
|
|
|
2022-07-14 09:39:50 +08:00
|
|
|
|
|
|
|
|
Patch0001: 0001-feat-Add-json-spec-for-rest-resize-api.patch
|
|
|
|
|
|
2021-12-06 19:55:35 +08:00
|
|
|
%define lxcver 4.0.3-2021112501
|
2021-06-04 09:29:56 +08:00
|
|
|
|
2021-06-28 16:54:16 +08:00
|
|
|
BuildRequires: cmake gcc gcc-c++ git
|
2021-06-04 09:29:56 +08:00
|
|
|
BuildRequires: lxc >= %{lxcver}
|
|
|
|
|
BuildRequires: lxc-devel >= %{lxcver}
|
2021-06-07 09:54:56 +08:00
|
|
|
BuildRequires: zlib-devel yajl-devel gtest-devel
|
|
|
|
|
Requires: lxc >= %{lxcver} yajl zlib
|
2019-09-30 10:54:40 -04:00
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
Provides: liblcr.so()(64bit)
|
2020-05-26 19:32:55 +08:00
|
|
|
Provides: libisula_libutils.so()(64bit)
|
2019-09-30 10:54:40 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
Provides: liblcr.so()(64bit)
|
2020-05-26 19:32:55 +08:00
|
|
|
Provides: libisula_libutils.so()(64bit)
|
2019-09-30 10:54:40 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Containers are insulated areas inside a system, which have their own namespace
|
|
|
|
|
for filesystem, network, PID, IPC, CPU and memory allocation and which can be
|
|
|
|
|
created using the Control Group and Namespace features included in the Linux
|
|
|
|
|
kernel.
|
|
|
|
|
|
|
|
|
|
This package provides the lightweight container tools and library to control
|
|
|
|
|
lxc-based containers.
|
|
|
|
|
|
2020-05-26 19:32:55 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: Huawei container runtime, json and log C Library
|
|
|
|
|
Group: Libraries
|
|
|
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
the %{name}-libs package contains libraries for running iSula applications.
|
|
|
|
|
|
2019-09-30 10:54:40 -04:00
|
|
|
|
|
|
|
|
%prep
|
2022-02-24 19:19:01 +08:00
|
|
|
%autosetup -n lcr-v%{_version} -Sgit -p1
|
2019-09-30 10:54:40 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir -p build
|
|
|
|
|
cd build
|
2021-03-19 17:30:31 +08:00
|
|
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} ../
|
2019-09-30 10:54:40 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
cd build
|
2019-11-06 19:35:27 +08:00
|
|
|
mkdir -p %{buildroot}/{%{_libdir},%{_libdir}/pkgconfig,%{_includedir}/lcr,%{_bindir}}
|
2019-09-30 10:54:40 -04:00
|
|
|
install -m 0644 ./src/liblcr.so %{buildroot}/%{_libdir}/liblcr.so
|
|
|
|
|
install -m 0644 ./conf/lcr.pc %{buildroot}/%{_libdir}/pkgconfig/lcr.pc
|
2019-11-06 19:35:27 +08:00
|
|
|
install -m 0644 ../src/lcrcontainer.h %{buildroot}/%{_includedir}/lcr/lcrcontainer.h
|
2020-09-04 09:31:24 +08:00
|
|
|
chmod +x %{buildroot}/%{_libdir}/liblcr.so
|
2019-09-30 10:54:40 -04:00
|
|
|
|
2020-05-26 19:32:55 +08:00
|
|
|
install -m 0644 ./src/libisula_libutils.so %{buildroot}/%{_libdir}/libisula_libutils.so
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_includedir}/%{_inner_name}
|
|
|
|
|
install -m 0644 ../build/json/*.h %{buildroot}/%{_includedir}/%{_inner_name}/
|
|
|
|
|
install -m 0644 ../src/json/*.h %{buildroot}/%{_includedir}/%{_inner_name}/
|
|
|
|
|
install -m 0644 ../third_party/log.h %{buildroot}/%{_includedir}/%{_inner_name}/log.h
|
2020-09-04 09:31:24 +08:00
|
|
|
install -m 0644 ../third_party/go_crc64.h %{buildroot}/%{_includedir}/%{_inner_name}/go_crc64.h
|
|
|
|
|
chmod +x %{buildroot}/%{_libdir}/libisula_libutils.so
|
2020-05-26 19:32:55 +08:00
|
|
|
|
2019-09-30 10:54:40 -04:00
|
|
|
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}/*
|
2019-11-06 19:35:27 +08:00
|
|
|
%{_libdir}/pkgconfig/lcr.pc
|
2020-05-26 19:32:55 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
2019-11-06 19:35:27 +08:00
|
|
|
%{_includedir}/lcr/lcrcontainer.h
|
2020-05-26 19:32:55 +08:00
|
|
|
%{_includedir}/%{_inner_name}/*.h
|
|
|
|
|
|
2019-09-30 10:54:40 -04:00
|
|
|
%changelog
|
2022-07-14 09:39:50 +08:00
|
|
|
* Thu Jul 14 2022 haozi007<liuhao27@huawei.com> - 2.0.8-2
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: add resize restful json
|
|
|
|
|
|
2022-07-04 10:29:52 +08:00
|
|
|
* Mon Jul 04 2022 czrz<chengzeruizhi@huawei.com> - 2.0.8-1
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: upgrade version to v2.0.8
|
|
|
|
|
|
2022-06-16 08:15:10 +01:00
|
|
|
* Thu Jun 16 2022 haozi007 <liuhao27@huawei.com> - 2.0.7-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: use vsnprintf replace vsprintf
|
|
|
|
|
|
2022-04-18 17:16:41 +08:00
|
|
|
* Mon Apr 18 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: sync patches from upstream
|
|
|
|
|
|
2022-03-02 14:15:20 +08:00
|
|
|
* Wed Mar 02 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: parse userns-remap in daemmon.json
|
|
|
|
|
|
2022-02-24 19:19:01 +08:00
|
|
|
* Thu Feb 24 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update to v2.0.7
|
|
|
|
|
|
2021-12-29 10:19:18 +08:00
|
|
|
* Wed Dec 29 2021 wangfengtu <wangfengtu@huawei.com> - 2.0.6-8
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix compile error
|
|
|
|
|
|
2021-12-06 19:55:35 +08:00
|
|
|
* Mon Dec 06 2021 gaohuatao <gaohuatao@huawei.com> - 2.0.6-7
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: specify version
|
2021-12-29 10:19:18 +08:00
|
|
|
|
2021-11-24 09:30:22 +00:00
|
|
|
* Wed Nov 24 2021 haozi007 <liuhao27@huawei.com> - 2.0.6-6
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: support null value in json
|
|
|
|
|
|
2021-11-23 10:52:33 +08:00
|
|
|
* Tue Nov 23 2021 chengzeruizhi <chengzeruizhi@huawei.com> - 2.0.6-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: add new fields in config v2 and inspect to support modifications on iSulad
|
|
|
|
|
|
2021-11-19 10:52:43 +08:00
|
|
|
* Fri Nov 19 2021 gaohuatao <gaohuatao@huawei.com> - 2.0.6-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: sync from upstream
|
|
|
|
|
|
2021-11-16 15:29:02 +08:00
|
|
|
* Tue Nov 16 2021 wujing <wujing50@huawei.com> - 2.0.6-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: remove build platform restrictions
|
|
|
|
|
|
2022-02-24 19:19:01 +08:00
|
|
|
* Tue Nov 09 2021 gaohuatao <gaohuatao@huawei.com> - 2.0.6-2
|
2021-11-09 17:22:03 +08:00
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update source
|
|
|
|
|
|
2022-02-24 19:19:01 +08:00
|
|
|
* Tue Nov 09 2021 gaohuatao <gaohuatao@huawei.com> - 2.0.6-1
|
2021-11-09 10:44:50 +08:00
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update to 2.0.6
|
|
|
|
|
|
2021-06-28 16:54:16 +08:00
|
|
|
* Mon Jun 28 2021 wujing <wujing50@huawei.com> - 2.0.5-20210628.165131.git738752d8
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: add git and gcc to build require
|
|
|
|
|
|
2021-06-24 18:56:52 +08:00
|
|
|
* Thu Jun 24 2021 wujing <wujing50@huawei.com> - 2.0.5-20210624.185408.git4ce88a49
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: support auto resize of isulad shim
|
|
|
|
|
|
2021-05-18 11:09:12 +08:00
|
|
|
* Tue May 18 2021 wagnfengtu <wagnfengtu@huawei.com> - 2.0.5-20210518.110611.git5225bddc
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: sync patches from upstream
|
|
|
|
|
|
2021-03-19 17:30:31 +08:00
|
|
|
* Fri Mar 19 2021 wujing <wujing50@huawei.com> - 2.0.5-20210319.090408.git6ac27845
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: add secure compile options
|
|
|
|
|
|
2021-02-02 09:32:17 +08:00
|
|
|
* Tue Feb 2 2021 lifeng <lifeng68@huawei.com> - 2.0.5-20210202.093043.git36603cff
|
|
|
|
|
- Type:sync with upstream
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
|
2020-12-30 15:03:37 +08:00
|
|
|
* Wed Dec 30 2020 lifeng <lifeng68@huawei.com> - 2.0.5-20201230.150203.git5e91f13f
|
|
|
|
|
- Type:update to v2.0.5
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
|
2020-12-03 18:57:18 +08:00
|
|
|
* Thu Dec 3 2020 haozi007 <liuhao27@huawei.com> - 2.0.4-20201203.185548.gitcc470dc1
|
|
|
|
|
- Type:update from master
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update from master
|
|
|
|
|
|
2020-11-12 18:42:50 +08:00
|
|
|
* Thu Nov 12 2020 gaohuatao <gaohuatao@huawei.com> - 2.0.4-20201112.184125.gite8506076
|
|
|
|
|
- Type:update from master
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update from master
|
|
|
|
|
|
2020-10-14 15:22:14 +08:00
|
|
|
* Wed Oct 14 2020 lifeng <lifeng68@huawei.com> - 2.0.4-20201014.151549.gita811a32f
|
|
|
|
|
- Type:upgrade to v2.0.4
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: upgrade to v2.0.4
|
|
|
|
|
|
2020-09-04 09:31:24 +08:00
|
|
|
* Fri Sep 04 2020 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.3-20200904.101728.git8b4641a4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: modify spec file
|
|
|
|
|
|
2020-09-03 18:30:03 +08:00
|
|
|
* Thu Sep 03 2020 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.0.3-20200903.182540.git62664adf
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: upgrade from v2.0.2 to v2.0.3
|
|
|
|
|
|
2020-09-02 11:28:50 +08:00
|
|
|
* Wed Sep 02 2020 YoungJQ <yangjiaqi11@huawei.com> - 2.0.2-20200902.112545.git24f07933
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: modify source0 address
|
|
|
|
|
|
2019-09-30 10:54:40 -04:00
|
|
|
* Fri Apr 14 2017 Hui Wang <hw.huiwang@huawei.com> - 0.0.1
|
|
|
|
|
- Initial RPM release
|