%define debug_package %{nil} %define import_path github.com/opencontainers/runc Summary: CLI for running Open Containers Name: runc Version: 1.2.0 Release: 1 Epoch: 1 License: ASL 2.0 Group: System/Kernel and hardware URL: https://github.com/opencontainers/runc Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source100: %{name}.rpmlintrc BuildRequires: go-md2man BuildRequires: golang BuildRequires: git-core BuildRequires: glibc-static-devel BuildRequires: pkgconfig(libseccomp) BuildRequires: upx # need xz to work with ubuntu images # https://bugzilla.redhat.com/show_bug.cgi?id=1045220 Requires: xz # https://bugzilla.redhat.com/show_bug.cgi?id=1034919 # No longer needed in Fedora because of libcontainer Requires: cgroup Requires: e2fsprogs Requires: iptables %rename opencontainers-runc %description The runc command can be used to start containers which are packaged in accordance with the Open Container Initiative's specifications, and to manage containers running under runc. %files %doc README.md LICENSE docs %{_sbindir}/%{name} %{_bindir}/%{name} %{_bindir}/docker-%{name} %{_mandir}/man8/%{name}* %{_datadir}/bash-completion/completions/%{name} #---------------------------------------------------------------- %prep %setup -q %build export GOPROXY=direct %make man all upx ./%{name} %install make PREFIX=%{_prefix} DESTDIR=%{buildroot} install install-bash install-man install -d -p %{buildroot}%{_bindir} install -p -m 755 %{name} %{buildroot}%{_bindir} ln -s %{name} %{buildroot}%{_bindir}/docker-%{name}