Mageia Bugzilla – Attachment 11597 Details for
Bug 26392
Inconsistent source paths in different Golang components;
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
golang-github-opencontainers-runc.spec
golang-github-opencontainers-runc.spec (text/plain), 4.32 KB, created by
Jybz
on 2020-04-19 11:24:48 CEST
(
hide
)
Description:
golang-github-opencontainers-runc.spec
Filename:
MIME Type:
Creator:
Jybz
Created:
2020-04-19 11:24:48 CEST
Size:
4.32 KB
patch
obsolete
># Run tests in check section >#bcond_without check ># --- FAIL: TestFactoryNewTmpfs (0.00s) ># factory_linux_test.go:88: operation not permitted ># time="2020-04-18T20:11:51+02:00" level=warning msg="cannot serialize hook of type libcontainer.unserializableHook, skipping" ># FAIL > ># £global debug_package %{nil} >%global goipath github.com/opencontainers/runc >%global goaltipaths github.com/docker/libcontainer >%global provider github.com >%global project opencontainers >%global repo runc ># https://github.com/opencontainers/runc >%global forgeurl https://%{provider}/%{project}/%{repo} >%global tag v1.0.0-rc10 ># Version: 1.0.0-rc10 > > ># gopath is set by default to : /usr/share/gocode. ># gosrc is set by default to : %{gopath}/src/%{goipath} ># goroot is not set at all. ># global goroot %{_datadir}/gocode ># global goroot %{gopath} > >#global __requires_exclude golang\\(github.com/project/repo/api\\) > >%global common_description %{expand: >runc is a CLI tool for spawning and running containers according to the OCI >specification.} > >%global godeveldescription %{expand: >%{common_description} > >This package contains the source code needed for building packages that import >the %{goipath} Go namespace.} > > >%global golicenses LICENSE >%global godocs README.md CONTRIBUTING.md MAINTAINERS NOTICE PRINCIPLES.md SECURITY.md VERSION > >%gometa > > >Name: %{goname} >Version: 1.0.0 >Release: %mkrel 1 >Summary: CLI tool for spawning and running containers according to the OCI specification >License: ASL-v2 >Group: Development/Other >URL: %{gourl} >Source0: %{gosource} > >BuildRequires: golang >BuildRequires: go-md2man ># BuildRequires: golang(github.com/project/repo) > >#If vendor is missing, needed at least : ># BuildRequires: golang(github.com/checkpoint-restore/go-criu/rpc) ># BuildRequires: golang(github.com/cilium/ebpf) ># BuildRequires: golang(github.com/cilium/ebpf/asm) ># BuildRequires: golang(github.com/containerd/console) ># BuildRequires: golang(github.com/cyphar/filepath-securejoin) ># BuildRequires: golang(github.com/docker/go-units) ># BuildRequires: golang(github.com/mrunalp/fileutils) ># BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) ># BuildRequires: golang(github.com/opencontainers/selinux/go-selinux) ># BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) ># BuildRequires: golang(github.com/syndtr/gocapability/capability) ># BuildRequires: golang(github.com/vishvananda/netlink) ># BuildRequires: golang(github.com/vishvananda/netlink/nl) ># #Error, code is in /usr/lib/golang/src/github.com/godbus/dbus/v5 ># BuildRequires: golang(github.com/godbus/dbus) > > >%description >%{common_description} > >#gopkg > > >%package devel >BuildArch: noarch >Summary: %{summary} > >Provides: golang-%{provider}-%{project}-%{repo}-devel = %{version}-%{release} > >%description devel >%{godeveldescription} > > > >%prep >#From Mga8, use goprep instead of gosetup >%gosetup ># rm -rf ./vendor > > >%build >%gobuildroot >GOTAGS="seccomp" %gobuild -o _bin/runc ./ >GOTAGS="seccomp" %gobuild -o _bin/recvtty ./contrib/cmd/recvtty >#Take from ./man/md2man-all.sh >for FILE in ./man/*.md; do > base="$(basename "$FILE")" > name="${base%.md}" > num="${name##*.}" > if [ -z "$num" -o "$name" = "$num" ]; then > # skip files that aren't of the format xxxx.N.md (like README.md) > continue > fi > mkdir -p "./_man/man${num}" > go-md2man -in "$FILE" -out "./_man/man${num}/${name}" > xz "./_man/man${num}/${name}" >done > > >%install >%goinstall ># gopkginstall >install -d -p %{buildroot}%{_bindir} >install -p -m 0755 _bin/runc %{buildroot}%{_bindir} >install -p -m 0755 _bin/recvtty %{buildroot}%{_bindir} > >#Autocompletion >install -d %{buildroot}%{_sysconfdir}/bash_completion.d >install -p -m 644 contrib/completions/bash/runc %{buildroot}%{_sysconfdir}/bash_completion.d > ># man >install -d %{buildroot}%{_mandir}/man8 >install -p -m 644 ./_man/man8/*.xz %{buildroot}%{_mandir}/man8 > > >%if %{with check} >%check >#From Mga8, use gocheck instead of gochecks >%gochecks >%endif > > >%files >%{_bindir}/runc >%{_bindir}/recvtty >%{_sysconfdir}/bash_completion.d/runc >%{_mandir}/man8/*.8.* > >#From Mga8, use gopkgfiles instead of the files devel section. >%files devel -f devel.file-list >%license LICENSE >%doc README.md CONTRIBUTING.md MAINTAINERS NOTICE PRINCIPLES.md SECURITY.md VERSION
# Run tests in check section #bcond_without check # --- FAIL: TestFactoryNewTmpfs (0.00s) # factory_linux_test.go:88: operation not permitted # time="2020-04-18T20:11:51+02:00" level=warning msg="cannot serialize hook of type libcontainer.unserializableHook, skipping" # FAIL # £global debug_package %{nil} %global goipath github.com/opencontainers/runc %global goaltipaths github.com/docker/libcontainer %global provider github.com %global project opencontainers %global repo runc # https://github.com/opencontainers/runc %global forgeurl https://%{provider}/%{project}/%{repo} %global tag v1.0.0-rc10 # Version: 1.0.0-rc10 # gopath is set by default to : /usr/share/gocode. # gosrc is set by default to : %{gopath}/src/%{goipath} # goroot is not set at all. # global goroot %{_datadir}/gocode # global goroot %{gopath} #global __requires_exclude golang\\(github.com/project/repo/api\\) %global common_description %{expand: runc is a CLI tool for spawning and running containers according to the OCI specification.} %global godeveldescription %{expand: %{common_description} This package contains the source code needed for building packages that import the %{goipath} Go namespace.} %global golicenses LICENSE %global godocs README.md CONTRIBUTING.md MAINTAINERS NOTICE PRINCIPLES.md SECURITY.md VERSION %gometa Name: %{goname} Version: 1.0.0 Release: %mkrel 1 Summary: CLI tool for spawning and running containers according to the OCI specification License: ASL-v2 Group: Development/Other URL: %{gourl} Source0: %{gosource} BuildRequires: golang BuildRequires: go-md2man # BuildRequires: golang(github.com/project/repo) #If vendor is missing, needed at least : # BuildRequires: golang(github.com/checkpoint-restore/go-criu/rpc) # BuildRequires: golang(github.com/cilium/ebpf) # BuildRequires: golang(github.com/cilium/ebpf/asm) # BuildRequires: golang(github.com/containerd/console) # BuildRequires: golang(github.com/cyphar/filepath-securejoin) # BuildRequires: golang(github.com/docker/go-units) # BuildRequires: golang(github.com/mrunalp/fileutils) # BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) # BuildRequires: golang(github.com/opencontainers/selinux/go-selinux) # BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) # BuildRequires: golang(github.com/syndtr/gocapability/capability) # BuildRequires: golang(github.com/vishvananda/netlink) # BuildRequires: golang(github.com/vishvananda/netlink/nl) # #Error, code is in /usr/lib/golang/src/github.com/godbus/dbus/v5 # BuildRequires: golang(github.com/godbus/dbus) %description %{common_description} #gopkg %package devel BuildArch: noarch Summary: %{summary} Provides: golang-%{provider}-%{project}-%{repo}-devel = %{version}-%{release} %description devel %{godeveldescription} %prep #From Mga8, use goprep instead of gosetup %gosetup # rm -rf ./vendor %build %gobuildroot GOTAGS="seccomp" %gobuild -o _bin/runc ./ GOTAGS="seccomp" %gobuild -o _bin/recvtty ./contrib/cmd/recvtty #Take from ./man/md2man-all.sh for FILE in ./man/*.md; do base="$(basename "$FILE")" name="${base%.md}" num="${name##*.}" if [ -z "$num" -o "$name" = "$num" ]; then # skip files that aren't of the format xxxx.N.md (like README.md) continue fi mkdir -p "./_man/man${num}" go-md2man -in "$FILE" -out "./_man/man${num}/${name}" xz "./_man/man${num}/${name}" done %install %goinstall # gopkginstall install -d -p %{buildroot}%{_bindir} install -p -m 0755 _bin/runc %{buildroot}%{_bindir} install -p -m 0755 _bin/recvtty %{buildroot}%{_bindir} #Autocompletion install -d %{buildroot}%{_sysconfdir}/bash_completion.d install -p -m 644 contrib/completions/bash/runc %{buildroot}%{_sysconfdir}/bash_completion.d # man install -d %{buildroot}%{_mandir}/man8 install -p -m 644 ./_man/man8/*.xz %{buildroot}%{_mandir}/man8 %if %{with check} %check #From Mga8, use gocheck instead of gochecks %gochecks %endif %files %{_bindir}/runc %{_bindir}/recvtty %{_sysconfdir}/bash_completion.d/runc %{_mandir}/man8/*.8.* #From Mga8, use gopkgfiles instead of the files devel section. %files devel -f devel.file-list %license LICENSE %doc README.md CONTRIBUTING.md MAINTAINERS NOTICE PRINCIPLES.md SECURITY.md VERSION
View Attachment As Raw
Actions:
View
Attachments on
bug 26392
:
11595
| 11597 |
11598
|
11600