Summary of changes:
67dcc63... First package for Fedora - resolves: #1164176 (*)
(*) This commit already existed in another branch; no separate mail sent
Summary of changes:
67dcc63... First package for Fedora - resolves: #1164176 (*)
(*) This commit already existed in another branch; no separate mail sent
Summary of changes:
67dcc63... First package for Fedora - resolves: #1164176 (*)
(*) This commit already existed in another branch; no separate mail sent
commit 67dcc63e4fe27bbcccce9affa0c54c1dab9d7dd0
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Nov 21 10:16:08 2014 +0100
First package for Fedora
- resolves: #1164176
.gitignore | 1 +
golang-github-vishvananda-netlink.spec | 74 ++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4d50e27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/netlink-2187ba6.tar.gz
diff --git a/golang-github-vishvananda-netlink.spec b/golang-github-vishvananda-netlink.spec
new file mode 100644
index 0000000..d8ffc9a
--- /dev/null
+++ b/golang-github-vishvananda-netlink.spec
@@ -0,0 +1,74 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project vishvananda
+%global repo netlink
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 2187ba67a244c1c32f53bf88876e766bbbbcd5e6
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Simple netlink library for go
+License: ASL 2.0
+URL: https://%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+The netlink package provides a simple netlink library for go.
+Netlink is the interface a user-space program in linux uses to communicate
+with the kernel. It can be used to add and remove interfaces, set ip addresses
+and routes, and configure ipsec. Netlink communication requires elevated
+privileges, so in most cases this code needs to be run as root. Since low-level
+netlink messages are inscrutable at best, the library attempts to provide
+an api that is loosely modeled on the CLI provied by iproute2.
+Actions like ip link add will be accomplished via a similarly named function
+like AddLink(). This library began its life as a fork of the netlink
+functionality in docker/libcontainer but was heavily rewritten to improve
+testability,performance, and to add new functionality like ipsec xfrm handling.
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(github.com/vishvananda/netns)
+Requires: golang >= 1.2.1-3
+Requires: golang(github.com/vishvananda/netns)
+Summary: %{summary}
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/nl) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for
+building other packages which use %{project}/%{repo}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav nl %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+#GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/nl
+
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Fri Nov 14 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.1.git2187ba6
+- First package for Fedora
+ resolves: #1164176
+
diff --git a/sources b/sources
index e69de29..1445523 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f0aed5a97aa5ba23b419e6f067262bbf netlink-2187ba6.tar.gz
Summary of changes:
69cfc9f... First package for Fedora - resolves: #1164170 (*)
(*) This commit already existed in another branch; no separate mail sent
Summary of changes:
69cfc9f... First package for Fedora - resolves: #1164170 (*)
(*) This commit already existed in another branch; no separate mail sent