forked from pool/cni-plugins
Accepting request 570483 from devel:CaaSP:Head:ControllerNode
- Install docs in the cni-plugins dir - Initial version from CNI plugins v0.6.0 OBS-URL: https://build.opensuse.org/request/show/570483 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cni-plugins?expand=0&rev=1
This commit is contained in:
commit
41a6fe691c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/containernetworking/plugins.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">cni-plugins</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="versionformat">0.6.0</param>
|
||||
<param name="revision">v0.6.0</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">cni-plugins-*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
<param name="basename">cni-plugins</param>
|
||||
</service>
|
||||
</services>
|
3
cni-plugins-0.6.0.tar.xz
Normal file
3
cni-plugins-0.6.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4452e9f10dde8bb3e2b6dcacc71d5bd21cac533ed048856b130e48fc6d1e8843
|
||||
size 336036
|
14
cni-plugins.changes
Normal file
14
cni-plugins.changes
Normal file
@ -0,0 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 19 13:08:33 UTC 2017 - alvaro.saurin@suse.com
|
||||
|
||||
- Require cni
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 28 18:15:00 UTC 2017 - alvaro.saurin@suse.com
|
||||
|
||||
- Install docs in the cni-plugins dir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 28 15:13:37 UTC 2017 - alvaro.saurin@suse.com
|
||||
|
||||
- Initial version from CNI plugins v0.6.0
|
88
cni-plugins.spec
Normal file
88
cni-plugins.spec
Normal file
@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package cni-plugins
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define cni_bin_dir %{_libexecdir}/cni
|
||||
%define cni_doc_dir %{_docdir}/cni-plugins
|
||||
|
||||
Name: cni-plugins
|
||||
Version: 0.6.0
|
||||
Release: 0
|
||||
Summary: Container Network Interface plugins
|
||||
License: Apache-2.0
|
||||
Group: System/Management
|
||||
Url: https://github.com/containernetworking/plugins
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: shadow
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: xz
|
||||
Requires: cni
|
||||
Requires(post): %fillup_prereq
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{?systemd_requires}
|
||||
# Make sure that the binary is not getting stripped.
|
||||
%{go_nostrip}
|
||||
|
||||
%description
|
||||
The CNI (Container Network Interface) project consists of a
|
||||
specification and libraries for writing plugins to configure
|
||||
network interfaces in Linux containers, along with a number of
|
||||
supported plugins. CNI concerns itself only with network
|
||||
connectivity of containers and removing allocated resources when
|
||||
the container is deleted. Because of this focus, CNI has a wide
|
||||
range of support and the specification is simple to implement.
|
||||
|
||||
These are the additional CNI network plugins provided by
|
||||
the containernetworking team.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
./build.sh
|
||||
|
||||
%install
|
||||
|
||||
# install the plugins
|
||||
install -m 755 -d "%{buildroot}%{cni_bin_dir}"
|
||||
cp bin/* "%{buildroot}%{cni_bin_dir}/"
|
||||
|
||||
# documentation
|
||||
install -m 755 -d "%{buildroot}%{cni_doc_dir}"
|
||||
cp CONTRIBUTING.md README.md LICENSE %{buildroot}%{cni_doc_dir}/
|
||||
install -m 755 -d "%{buildroot}%{cni_doc_dir}"
|
||||
|
||||
# TODO: copy the READMEs
|
||||
#for i in plugins/main/*/README.md ; do
|
||||
# cp Documentation/* %{buildroot}%{cni_doc_dir}/plugins/
|
||||
#done
|
||||
|
||||
%post
|
||||
%{fillup_only -n %{name}}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{cni_doc_dir}/CONTRIBUTING.md
|
||||
%doc %{cni_doc_dir}/README.md
|
||||
%doc %{cni_doc_dir}/LICENSE
|
||||
%dir %{cni_bin_dir}
|
||||
%dir %{cni_doc_dir}
|
||||
%{cni_bin_dir}/*
|
||||
# %{cni_doc_dir}/plugins/*
|
||||
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user