2020-07-30 09:44:01 +08:00
|
|
|
%global is_systemd 1
|
|
|
|
|
|
|
|
|
|
Name: isula-build
|
2021-01-26 15:45:02 +08:00
|
|
|
Version: 0.9.5
|
2021-02-09 19:50:23 +08:00
|
|
|
Release: 4
|
2020-07-30 09:44:01 +08:00
|
|
|
Summary: A tool to build container images
|
|
|
|
|
License: Mulan PSL V2
|
|
|
|
|
URL: https://gitee.com/openeuler/isula-build
|
2020-09-04 11:40:07 +08:00
|
|
|
Source0: https://gitee.com/openeuler/isula-build/repository/archive/v%{version}.tar.gz
|
2020-09-10 18:24:16 +08:00
|
|
|
Source1: git-commit
|
|
|
|
|
Source2: VERSION-openeuler
|
|
|
|
|
Source3: apply-patches
|
|
|
|
|
Source4: gen-version.sh
|
|
|
|
|
Source5: series.conf
|
|
|
|
|
Source6: patch.tar.gz
|
2020-07-30 09:44:01 +08:00
|
|
|
BuildRequires: make btrfs-progs-devel device-mapper-devel glib2-devel gpgme-devel
|
2021-02-09 16:46:51 +08:00
|
|
|
BuildRequires: libassuan-devel libseccomp-devel git bzip2 systemd-devel
|
2020-07-30 09:44:01 +08:00
|
|
|
BuildRequires: golang >= 1.13
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
|
Requires: systemd-units
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
isula-build is a tool used for container images building.
|
|
|
|
|
|
2020-11-27 17:31:40 +08:00
|
|
|
%debug_package
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
%prep
|
2020-09-10 18:24:16 +08:00
|
|
|
cp %{SOURCE0} .
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
cp %{SOURCE4} .
|
|
|
|
|
cp %{SOURCE5} .
|
|
|
|
|
cp %{SOURCE6} .
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-09-10 18:24:16 +08:00
|
|
|
sh ./apply-patches
|
2020-07-30 09:44:01 +08:00
|
|
|
%{make_build} safe
|
2020-09-01 21:00:21 +08:00
|
|
|
./bin/isula-build completion > __isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
|
# install binary
|
2020-11-19 19:41:41 +08:00
|
|
|
install -p ./bin/isula-build %{buildroot}%{_bindir}/isula-build
|
|
|
|
|
install -p ./bin/isula-builder %{buildroot}%{_bindir}/isula-builder
|
2020-07-30 09:44:01 +08:00
|
|
|
# install service
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
install -d %{buildroot}%{_unitdir}
|
2020-11-19 19:41:41 +08:00
|
|
|
install -p isula-build.service %{buildroot}%{_unitdir}/isula-build.service
|
2020-07-30 09:44:01 +08:00
|
|
|
%endif
|
|
|
|
|
# install config file
|
2020-11-19 19:41:41 +08:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/isula-build
|
|
|
|
|
install -p ./cmd/daemon/config/configuration.toml %{buildroot}%{_sysconfdir}/isula-build/configuration.toml
|
|
|
|
|
install -p ./cmd/daemon/config/storage.toml %{buildroot}%{_sysconfdir}/isula-build/storage.toml
|
|
|
|
|
install -p ./cmd/daemon/config/registries.toml %{buildroot}%{_sysconfdir}/isula-build/registries.toml
|
|
|
|
|
install -p ./cmd/daemon/config/policy.json %{buildroot}%{_sysconfdir}/isula-build/policy.json
|
2020-09-01 21:00:21 +08:00
|
|
|
# install bash completion script
|
|
|
|
|
install -d %{buildroot}/usr/share/bash-completion/completions
|
|
|
|
|
install -p -m 600 __isula-build %{buildroot}/usr/share/bash-completion/completions/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
2020-11-06 17:32:23 +08:00
|
|
|
%post
|
|
|
|
|
if ! getent group isula > /dev/null; then
|
|
|
|
|
groupadd --system isula
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
%files
|
|
|
|
|
# default perm for files and folder
|
|
|
|
|
%defattr(0640,root,root,0550)
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
%config(noreplace) %attr(0640,root,root) %{_unitdir}/isula-build.service
|
|
|
|
|
%endif
|
2020-11-17 15:56:56 +08:00
|
|
|
%attr(551,root,root) %{_bindir}/isula-build
|
|
|
|
|
%attr(550,root,root) %{_bindir}/isula-builder
|
2020-11-19 19:41:41 +08:00
|
|
|
|
|
|
|
|
%dir %attr(650,root,root) %{_sysconfdir}/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/configuration.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/storage.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/registries.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/policy.json
|
2020-09-01 21:00:21 +08:00
|
|
|
/usr/share/bash-completion/completions/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2021-02-09 19:50:23 +08:00
|
|
|
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:remove Healthcheck field when build from scratch
|
|
|
|
|
|
2021-02-09 16:46:51 +08:00
|
|
|
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:remove go-md2man build require
|
|
|
|
|
|
2021-02-04 20:22:15 +08:00
|
|
|
* Thu Feb 4 2021 leizhongkai<leizhongkai@huawei.com> - 0.9.5-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:make `isula-build ctr-img images` display comfortably
|
|
|
|
|
|
2021-01-26 15:45:02 +08:00
|
|
|
* Tue Jan 26 2021 lixiang <lixiang172@huawei.com> - 0.9.5-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:Bump version to 0.9.5
|
|
|
|
|
|
2020-12-11 14:46:37 +08:00
|
|
|
* Fri Dec 11 2020 lixiang <lixiang172@huawei.com> - 0.9.4-14
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:Modify gen-version script and add changelog automatically
|
|
|
|
|
|
|
|
|
|
* Fri Dec 11 2020 lujingxiao <lujingxiao@huawei.com> - 0.9.4-13
|
2020-12-11 11:29:49 +08:00
|
|
|
- Change default umask of isula-builder process
|
|
|
|
|
|
2020-12-08 15:42:48 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-12
|
|
|
|
|
- Fix printing FROM command double times to console
|
|
|
|
|
|
2020-12-08 15:41:07 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-11
|
|
|
|
|
- Fix problems found by code review
|
|
|
|
|
|
|
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-10
|
2020-12-08 15:37:19 +08:00
|
|
|
- Add more fuzz tests
|
|
|
|
|
|
2020-12-08 15:41:07 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-9
|
2020-12-08 15:34:21 +08:00
|
|
|
- Imporve daemon push and pull unit test
|
|
|
|
|
|
2020-11-27 17:31:40 +08:00
|
|
|
* Fir Nov 27 2020 lixiang <lixiang172@huawei.com> - 0.9.4-8
|
|
|
|
|
- Add compile flag ftrapv and enable debuginfo
|
|
|
|
|
|
|
|
|
|
* Thu Nov 20 2020 xiadanni <xiadanni1@huawei.com> - 0.9.4-7
|
|
|
|
|
- Mask /proc/pin_memory
|
|
|
|
|
|
2020-11-19 19:41:41 +08:00
|
|
|
* Thu Nov 19 2020 lixiang <lixiang172@huawei.com> - 0.9.4-6
|
|
|
|
|
- Support build Dockerfile only have FROM command
|
|
|
|
|
|
2020-11-18 16:21:47 +08:00
|
|
|
* Wed Nov 18 2020 lixiang <lixiang172@huawei.com> - 0.9.4-5
|
|
|
|
|
- Delete patches no longer usefull
|
|
|
|
|
|
2020-11-17 15:56:56 +08:00
|
|
|
* Tue Nov 17 2020 lixiang <lixiang172@huawei.com> - 0.9.4-4
|
|
|
|
|
- Fix unsuitable filemode for isula-build(er)
|
|
|
|
|
|
2020-11-12 21:06:15 +08:00
|
|
|
* Thu Nov 12 2020 lixiang <lixiang172@huawei.com> - 0.9.4-3
|
|
|
|
|
- Chown config root path before daemon started
|
|
|
|
|
|
2020-11-10 15:05:20 +08:00
|
|
|
* Tue Nov 10 2020 lixiang <lixiang172@huawei.com> - 0.9.4-2
|
|
|
|
|
- Fix panic when user knock ctrl-c in pull/push/save command
|
|
|
|
|
|
2020-11-06 17:32:23 +08:00
|
|
|
* Fri Nov 06 2020 lixiang <lixiang172@huawei.com> - 0.9.4-1
|
|
|
|
|
- Bump version to 0.9.4
|
|
|
|
|
|
2020-09-19 15:28:16 +08:00
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-2
|
|
|
|
|
- Sync patch from upstream
|
|
|
|
|
|
2020-09-10 18:24:16 +08:00
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-1
|
|
|
|
|
- Bump version to 0.9.3
|
|
|
|
|
|
2020-09-04 11:40:07 +08:00
|
|
|
* Fri Sep 04 2020 lixiang <lixiang172@huawei.com> - 0.9.2-3
|
|
|
|
|
- Fix Source0 and do not startup after install by default
|
|
|
|
|
|
2020-09-01 21:00:21 +08:00
|
|
|
* Sat Aug 15 2020 lixiang <lixiang172@huawei.com> - 0.9.2-2
|
|
|
|
|
- Add bash completion script in rpm
|
|
|
|
|
|
|
|
|
|
* Wed Aug 12 2020 xiadanni <xiadanni1@huawei.com> - 0.9.2-1
|
|
|
|
|
- Bump version to 0.9.2
|
|
|
|
|
|
|
|
|
|
* Wed Aug 05 2020 xiadanni <xiadanni1@huawei.com> - 0.9.1-1
|
|
|
|
|
- Bump version to 0.9.1
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
* Sat Jul 25 2020 lixiang <lixiang172@huawei.com> - 0.9.0-1
|
|
|
|
|
- Package init
|