代码拉取完成,页面将自动刷新
%global debug_package %{nil}
%define tempdir github.com/openSUSE/umoci
Name: umoci
Version: 0.4.7
Release: 4
Summary: Open Container Image manipulation tool
License: ISC and MIT and Apache-2.0
URL: https://github.com/opencontainers/umoci
Source0: https://github.com/opencontainers/umoci/archive/v0.4.7.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Source2: sys.tar.gz
Patch0000: fix-bad-build-flags.patch
Patch0001: add-sw_64-support.patch
BuildRequires: fdupes go >= 1.6
%description
Umoci modifies Open Container images. Umoci intends to be a complete manipulation tool for OCI images.
In particular, it should be seen as a more end-user-focused version of the oci-image-tools provided by
the OCI.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
tar -xf %SOURCE1
%ifarch loongarch64
rm -rf vendor/golang.org/x/sys
tar -xf %{SOURCE2} -C vendor/golang.org/x
%endif
%ifarch sw_64
sed -i 's/-buildmode=pie/-buildmode=exe/g' Makefile
%endif
%build
cd go-md2man-*
go build -mod=vendor -o go-md2man .
export GO_MD2MAN=$(realpath go-md2man)
cd -
export GOPATH=$HOME/go
mkdir -pv $HOME/go/src/%{tempdir}
rm -rf $HOME/go/src/%{tempdir}/*
cp -ar * $HOME/go/src/%{tempdir}
make umoci
make docs
%install
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
%fdupes %{buildroot}
for man_file in doc/man/*.1; do
install -D -m 0644 $man_file %{buildroot}/%{_mandir}/man1/$(basename $man_file)
done
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/%{name}
%files help
%doc README.md doc/* CHANGELOG.md
%{_mandir}/man1/umoci*
%changelog
* Tue Mar 18 2025 mahailiang <mahailiang@uniontech.com> - 0.4.7-4
- add sw_64 support for umoci
* Tue Jul 11 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.4.7-3
- add loong64 support for umoci
* Tue Feb 15 2022 caodongxia <caodongxia@huawei.com> - 0.4.7-2
- fix bad build flags
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.4.7-1
- Upgrade to version 0.4.7
* Fri Apr 16 2021 wangyue <wangyue92@huawei.com> - 0.4.5-5
- Fix CVE-2021-29136
* Tue Feb 9 2021 lingsheng <lingsheng@huawei.com> - 0.4.5-4
- Fix unresolvable
* Wed Sep 9 2020 Ge Wang <wangge20@huawei.com> - 0.4.5-3
- Modify Source0 Url
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.4.5-2
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。