Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
40a4a9717e
!14 [sync] PR-13: add sw_64 support
From: @openeuler-sync-bot 
Reviewed-by: @Vanient, @duguhaotian 
Signed-off-by: @duguhaotian
2023-08-21 06:15:20 +00:00
suwei
534b7a88c9 Add sw_64 support
Signed-off-by: suwei <suwei@kylinsec.com.cn>
(cherry picked from commit 8b84bcc42b0987cf655ce856d80277061b6f0a71)
2023-08-18 11:33:54 +08:00
openeuler-ci-bot
0d4b588765
!12 【轻量级 PR】:fix bogus date in %changelog
From: @leeffo 
Reviewed-by: @Vanient, @duguhaotian 
Signed-off-by: @duguhaotian
2022-12-07 08:06:21 +00:00
loong-C
347d4c9ed3
fix bogus date in %changelog
![输入图片说明](https://images.gitee.com/uploads/images/2022/0615/104026_15f75185_9884780.png "屏幕截图.png")
2022-06-15 02:41:22 +00:00
openeuler-ci-bot
6e6d797afc
!8 libnetwork:disable go module build as go1.17 enable it by default
Merge pull request !8 from Vanient/openEuler-22.03-LTS-Next
2022-01-10 11:07:37 +00:00
xiadanni
83308b3aef libnetwork:disable go module build as go1.17 enable it by default
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2022-01-10 16:14:19 +08:00
openeuler-ci-bot
8628d5b21f !2 libnetwork:compile option compliance
From: @Vanient
Reviewed-by: @jing-rui,@caihaomin
Signed-off-by: @caihaomin
2021-03-18 15:23:24 +08:00
xiadanni
a8dbf2290b libnetwork:compile option compliance
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2021-03-18 11:45:54 +08:00
openeuler-ci-bot
709fea807f !1 libnetwork: modify source code struct
From: @Vanient
Reviewed-by: @jing-rui
Signed-off-by: @jing-rui
2020-09-19 17:01:25 +08:00
xiadanni
65fed5b7b7 libnetwork: modify source code struct
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2020-08-20 14:54:54 +08:00
3 changed files with 83 additions and 51 deletions

79
libnetwork.spec Normal file
View File

@ -0,0 +1,79 @@
%define debug_package %{nil}
Name: libnetwork
Version: 0.8.0.dev.2
Release: 104
Summary: Proxy used for docker port mapping
License: Apache License 2.0
URL: https://github.com/docker/libnetwork
Source: libnetwork-d00ceed.tar.gz
BuildRequires: golang >= 1.8.3
BuildRequires: make
Provides: docker-proxy
Obsoletes: docker-proxy
%description
%prep
%setup -c -n libnetwork
%build
cd libnetwork-d00ceed44cc447c77f25cdf5d59e83163bdcb4c9
export GO111MODULE=off
export CGO_ENABLED=0
export GOPATH=`pwd`/.gopath
mkdir -p $GOPATH/src/github.com/docker/
ln -sfn `pwd` $GOPATH/src/github.com/docker/libnetwork
cd $GOPATH/src/github.com/docker/libnetwork
CGO_ENABLED=1 \
CGO_CFLAGS="-fstack-protector-strong -fPIE" \
CGO_CPPFLAGS="-fstack-protector-strong -fPIE" \
CGO_LDFLAGS_ALLOW='-Wl,-z,relro,-z,now' \
CGO_LDFLAGS="-Wl,-z,relro,-z,now -Wl,-z,noexecstack" \
go build \
%ifarch sw_64
-buildmode=exe \
%else
-buildmode=pie \
%endif
-ldflags="-linkmode=external -s -w -buildid=IdByIsula -extldflags=-zrelro -extldflags=-znow " -o docker-proxy ./cmd/proxy
%install
install -d $RPM_BUILD_ROOT/%{_bindir}
install -p -m 755 libnetwork-d00ceed44cc447c77f25cdf5d59e83163bdcb4c9/docker-proxy $RPM_BUILD_ROOT/%{_bindir}/docker-proxy
%clean
%{__rm} -rf %{_bindir}/docker-proxy
%files
%{_bindir}/docker-proxy
%changelog
* Mon Aug 14 2023 suwei <suwei@kylinsec.com.cn> - 0.8.0.dev.2-104
- Type:enhencement
- Id:NA
- SUG:NA
- DESC:add sw_64 support
* Mon Jan 10 2022 xiadanni<xiadanni1@huawei.com> 0.8.0.dev.2-103
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:disable go module build
* Thu Mar 18 2021 xiadanni<xiadanni1@huawei.com> 0.8.0.dev.2-102
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:compile option compliance
* Thu Aug 20 2020 xiadanni<xiadanni1@huawei.com> 0.8.0.dev.2-101
- Type:cleancode
- Id:NA
- SUG:NA
- DESC:modify source code struct
* Mon Sep 30 2019 songnannan<songnannan2@huawei.com> 0.8.0.dev.2-2.h1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:the debuginfo and debugsource packages are not generated by default

4
libnetwork.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: moby/libnetwork
tag_prefix: ^v
seperator: .

View File

@ -1,51 +0,0 @@
%define debug_package %{nil}
Name: docker-proxy
Version: 0.8.0.dev.2
Release: 100
Summary: Proxy used for docker port mapping
License: Apache License 2.0
URL: https://github.com/docker/libnetwork
Source: %{name}.tar.gz
BuildRequires: golang >= 1.8.3
BuildRequires: make
%description
%prep
%setup -c -n libnetwork
%build
cwd=`pwd`
tar -xzvf libnetwork-d00ceed.tar.gz --strip-components 1
export CGO_ENABLED=0
export GOPATH=`pwd`/.gopath
mkdir -p $GOPATH/src/github.com/docker/
ln -sfn `pwd` $GOPATH/src/github.com/docker/libnetwork
cd $GOPATH/src/github.com/docker/libnetwork
go build -buildmode=pie -ldflags="-linkmode=external -s -w -buildid=IdByIsula -extldflags=-zrelro -extldflags=-znow " -o docker-proxy ./cmd/proxy
cd $cwd
%install
install -d $RPM_BUILD_ROOT/%{_bindir}
install -p -m 755 docker-proxy $RPM_BUILD_ROOT/%{_bindir}/docker-proxy
%clean
%{__rm} -rf %{_bindir}/docker-proxy
%files
%{_bindir}/docker-proxy
%changelog
* Sat Aug 19 2019 songnannan<songnannan2@huawei.com> 0.8.0.dev.2-2.h1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:the debuginfo and debugsource packages are not generated by default