189 lines
5.7 KiB
RPMSpec
189 lines
5.7 KiB
RPMSpec
%global is_systemd 1
|
|
|
|
Name: isula-build
|
|
Version: 0.9.5
|
|
Release: 6
|
|
Summary: A tool to build container images
|
|
License: Mulan PSL V2
|
|
URL: https://gitee.com/openeuler/isula-build
|
|
Source0: https://gitee.com/openeuler/isula-build/repository/archive/v%{version}.tar.gz
|
|
Source1: git-commit
|
|
Source2: VERSION-openeuler
|
|
Source3: apply-patches
|
|
Source4: gen-version.sh
|
|
Source5: series.conf
|
|
Source6: patch.tar.gz
|
|
BuildRequires: make btrfs-progs-devel device-mapper-devel glib2-devel gpgme-devel
|
|
BuildRequires: libassuan-devel libseccomp-devel git bzip2 systemd-devel
|
|
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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
cp %{SOURCE0} .
|
|
cp %{SOURCE1} .
|
|
cp %{SOURCE2} .
|
|
cp %{SOURCE3} .
|
|
cp %{SOURCE4} .
|
|
cp %{SOURCE5} .
|
|
cp %{SOURCE6} .
|
|
|
|
%build
|
|
sh ./apply-patches
|
|
%{make_build} safe
|
|
./bin/isula-build completion > __isula-build
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
# install binary
|
|
install -p ./bin/isula-build %{buildroot}%{_bindir}/isula-build
|
|
install -p ./bin/isula-builder %{buildroot}%{_bindir}/isula-builder
|
|
# install service
|
|
%if 0%{?is_systemd}
|
|
install -d %{buildroot}%{_unitdir}
|
|
install -p isula-build.service %{buildroot}%{_unitdir}/isula-build.service
|
|
%endif
|
|
# install config file
|
|
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
|
|
# 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
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
if ! getent group isula > /dev/null; then
|
|
groupadd --system isula
|
|
fi
|
|
|
|
%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
|
|
%attr(551,root,root) %{_bindir}/isula-build
|
|
%attr(550,root,root) %{_bindir}/isula-builder
|
|
|
|
%dir %attr(650,root,root) %{_sysconfdir}/isula-build
|
|
%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
|
|
/usr/share/bash-completion/completions/isula-build
|
|
|
|
%changelog
|
|
* Wed Mar 03 2021 lixiang <lixiang172@huawei.com> - 0.9.5-6
|
|
- Type:enhancement
|
|
- CVE:NA
|
|
- SUG:restart
|
|
- DESC:sync patches from upstream
|
|
|
|
* Wed Feb 10 2021 lixiang <lixiang172@huawei.com> - 0.9.5-5
|
|
- Type:enhancement
|
|
- CVE:NA
|
|
- SUG:restart
|
|
- DESC:remove empty lines when showing image list
|
|
|
|
* 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
|
|
|
|
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-3
|
|
- Type:enhancement
|
|
- CVE:NA
|
|
- SUG:restart
|
|
- DESC:remove go-md2man build require
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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
|
|
- Change default umask of isula-builder process
|
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-12
|
|
- Fix printing FROM command double times to console
|
|
|
|
* 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
|
|
- Add more fuzz tests
|
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-9
|
|
- Imporve daemon push and pull unit test
|
|
|
|
* 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
|
|
|
|
* Thu Nov 19 2020 lixiang <lixiang172@huawei.com> - 0.9.4-6
|
|
- Support build Dockerfile only have FROM command
|
|
|
|
* Wed Nov 18 2020 lixiang <lixiang172@huawei.com> - 0.9.4-5
|
|
- Delete patches no longer usefull
|
|
|
|
* Tue Nov 17 2020 lixiang <lixiang172@huawei.com> - 0.9.4-4
|
|
- Fix unsuitable filemode for isula-build(er)
|
|
|
|
* Thu Nov 12 2020 lixiang <lixiang172@huawei.com> - 0.9.4-3
|
|
- Chown config root path before daemon started
|
|
|
|
* Tue Nov 10 2020 lixiang <lixiang172@huawei.com> - 0.9.4-2
|
|
- Fix panic when user knock ctrl-c in pull/push/save command
|
|
|
|
* Fri Nov 06 2020 lixiang <lixiang172@huawei.com> - 0.9.4-1
|
|
- Bump version to 0.9.4
|
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-2
|
|
- Sync patch from upstream
|
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-1
|
|
- Bump version to 0.9.3
|
|
|
|
* Fri Sep 04 2020 lixiang <lixiang172@huawei.com> - 0.9.2-3
|
|
- Fix Source0 and do not startup after install by default
|
|
|
|
* 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
|
|
|
|
* Sat Jul 25 2020 lixiang <lixiang172@huawei.com> - 0.9.0-1
|
|
- Package init
|