当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
138 Star 0 Fork 2

src-openEuler/golang-github-vishvananda-netlink
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
golang-github-vishvananda-netlink.spec 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
sugarfillet 提交于 2019-12-16 15:16 . package init
%global debug_package %{nil}
Name: golang-github-vishvananda-netlink
Version: 0
Release: 0.18
Summary: Go netlink library
License: ASL 2.0
URL: https://github.com/vishvananda/netlink
Source0: https://github.com/vishvananda/netlink/archive/f5a6f697a596c788d474984a38a0ac4ba0719e93/netlink-f5a6f69.tar.gz
ExclusiveArch: x86_64 aarch64
BuildRequires: golang
%description
Go implement of netlink library.
%package devel
Summary: Go netlink development library
BuildArch: noarch
BuildRequires: golang(github.com/vishvananda/netns)
Requires: golang(github.com/vishvananda/netns)
Provides: golang(github.com/vishvananda/netlink) = %{version}-%{release}
Provides: golang(github.com/vishvananda/netlink/nl) = %{version}-%{release}
Provides: %{name}-unit-test = %{version}-%{release}
Obsoletes: %{name}-unit-test < %{version}-%{release}
%description devel
This package contains library and tests for application developments using %{name}.
%prep
%autosetup -n netlink-f5a6f697a596c788d474984a38a0ac4ba0719e93
%build
%install
install -d -p %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/
echo "%%dir %%{gopath}/src/github.com/vishvananda/netlink/." >> devel.file-list
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/$file
echo "%%{gopath}/src/github.com/vishvananda/netlink/$file" >> devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/github.com/vishvananda/netlink/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
install -d -p %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/
for file in $(find . -iname "*_test.go") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/github.com/vishvananda/netlink/$file
echo "%%{gopath}/src/github.com/vishvananda/netlink/$file" >> devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/github.com/vishvananda/netlink/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
sort -u -o devel.file-list devel.file-list
%check
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
go test github.com/vishvananda/netlink/nl
%files devel -f devel.file-list
%license LICENSE
%doc README.md
%dir /usr/share/gocode/src/github.com/vishvananda
%changelog
* Thu Dec 12 2019 Shuaishuai Song <songshuaishuai2@huawei.com> - 0-0.18
- package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/golang-github-vishvananda-netlink.git
git@gitee.com:src-openeuler/golang-github-vishvananda-netlink.git
src-openeuler
golang-github-vishvananda-netlink
golang-github-vishvananda-netlink
master

搜索帮助