From 62cbe1b30e98e2650724664a0fe7e50b4342d85417e2f9c87ba8c68dd8e5da52 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 15 Feb 2023 10:47:13 +0000 Subject: [PATCH] Accepting request 1065701 from home:dancermak:branches:devel:microos First version of the netavark package OBS-URL: https://build.opensuse.org/request/show/1065701 OBS-URL: https://build.opensuse.org/package/show/devel:microos/netavark?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + _service | 26 ++++++++++++++ _servicedata | 4 +++ cargo_config | 9 +++++ netavark-1.5.0.tar.gz | 3 ++ netavark.changes | 4 +++ netavark.spec | 81 +++++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 9 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cargo_config create mode 100644 netavark-1.5.0.tar.gz create mode 100644 netavark.changes create mode 100644 netavark.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..7230468 --- /dev/null +++ b/_service @@ -0,0 +1,26 @@ + + + https://github.com/containers/netavark.git + @PARENT_TAG@ + git + v1.5.0 + * + v(\d+\.\d+\.\d+) + \1 + enable + + + + *.tar + gz + + + + netavark + gz + true + + + netavark + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..fd86415 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/containers/netavark.git + dbdeb9a7969e5398a8431a192a278986e4e1ae36 \ No newline at end of file diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..60d928d --- /dev/null +++ b/cargo_config @@ -0,0 +1,9 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source."https://github.com/containers/netavark-dhcp-proxy"] +git = "https://github.com/containers/netavark-dhcp-proxy" +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/netavark-1.5.0.tar.gz b/netavark-1.5.0.tar.gz new file mode 100644 index 0000000..2452358 --- /dev/null +++ b/netavark-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a5c4119d8a60aabf79b678c4be985fa852041ee3b9648badc3909d66362f248 +size 82192 diff --git a/netavark.changes b/netavark.changes new file mode 100644 index 0000000..8e12f2d --- /dev/null +++ b/netavark.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 10 09:14:07 UTC 2023 - Dan Čermák + +- First version of netavark diff --git a/netavark.spec b/netavark.spec new file mode 100644 index 0000000..0de8570 --- /dev/null +++ b/netavark.spec @@ -0,0 +1,81 @@ +# +# spec file for package netavark +# +# Copyright (c) SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: netavark +Version: 1.5.0 +Release: 0 +Summary: Container network stack +License: Apache-2.0 +URL: https://github.com/containers/%{name} +Source0: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +Source2: cargo_config +BuildRequires: cargo +BuildRequires: cargo-packaging +BuildRequires: go-md2man +BuildRequires: protobuf-devel +# aardvark-dns and %%{name} are usually released in sync +Recommends: aardvark-dns >= %{version}-1 +# Provides: container-network-stack = 2 +# Disable this line if you wish to support all platforms. +# In most situations, you will likely only target tier1 arches for user facing components. +ExclusiveArch: %{rust_tier1_arches} + +%description +Netavark is a rust based network stack for containers. It is being +designed to work with Podman but is also applicable for other OCI +container management applications. +Netavark is a tool for configuring networking for Linux containers. +Its features include: +* Configuration of container networks via JSON configuration file +* Creation and management of required network interfaces, + including MACVLAN networks +* All required firewall configuration to perform NAT and port + forwarding as required for containers +* Support for iptables and firewalld at present, with support + for nftables planned in a future release +* Support for rootless containers +* Support for IPv4 and IPv6 +* Support for container DNS resolution via aardvark-dns. + +%prep +%autosetup -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config + + +%build +cargo build --release +mkdir -p bin +cp target/release/%{name} bin/ + +cd docs +go-md2man -in %{name}.1.md -out %{name}.1 + + +%install +%make_install DESTDIR=%{buildroot} PREFIX=%{_prefix} + + +%files +%license LICENSE +%dir %{_libexecdir}/podman +%{_libexecdir}/podman/%{name} +%{_mandir}/man1/%{name}.1%{?ext_man} + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..0b74f0a --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:710d383e4cc8a965319a7f5a5a5851160cee69800b7f859190bc16895df288a2 +size 32059466