Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alvistack
containernetworking-cni-1.2.0
containernetworking_1.2.0-1.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File containernetworking_1.2.0-1.spec of Package containernetworking-cni-1.2.0
# Copyright 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. %global debug_package %{nil} %global source_date_epoch_from_changelog 0 Name: containernetworking Epoch: 100 Version: 1.2.0 Release: 1%{?dist} Summary: Container Network Interface - networking for Linux containers License: Apache-2.0 URL: https://github.com/containernetworking/cni/tags Source0: %{name}_%{version}.orig.tar.gz BuildRequires: golang-1.22 BuildRequires: glibc-static %description CNI (Container Network Interface), a Cloud Native Computing Foundation 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. %prep %autosetup -T -c -n %{name}_%{version}-%{release} tar -zx -f %{S:0} --strip-components=1 -C . %build mkdir -p bin set -ex && \ export CGO_ENABLED=1 && \ go build \ -mod vendor -buildmode pie -v \ -ldflags "-s -w" \ -o ./bin/cnitool ./cnitool && \ go build \ -mod vendor -buildmode pie -v \ -ldflags "-s -w" \ -o ./bin/noop ./plugins/test/noop && \ go build \ -mod vendor -buildmode pie -v \ -ldflags "-s -w" \ -o ./bin/sleep ./plugins/test/sleep %install install -Dpm755 -d %{buildroot}%{_sysconfdir}/cni/net.d install -Dpm755 -d %{buildroot}%{_sbindir} install -Dpm755 -d %{buildroot}/opt/cni/bin install -Dpm755 -t %{buildroot}%{_sbindir} bin/cnitool install -Dpm755 -t %{buildroot}/opt/cni/bin bin/noop install -Dpm755 -t %{buildroot}/opt/cni/bin bin/sleep %files %license LICENSE %doc 99-loopback.conf %dir %{_sysconfdir}/cni %dir %{_sysconfdir}/cni/net.d %dir /opt/cni %dir /opt/cni/bin %{_sbindir}/* /opt/cni/bin/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor