2019-10-12 03:11:07 +03:00
|
|
|
%define debug_package %{nil}
|
|
|
|
%define import_path github.com/opencontainers/runc
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2019-10-12 03:11:07 +03:00
|
|
|
Summary: CLI for running Open Containers
|
|
|
|
Name: runc
|
2025-02-14 08:11:42 +00:00
|
|
|
Version: 1.2.5
|
2023-04-02 00:33:34 +00:00
|
|
|
Release: 1
|
2019-10-12 03:11:07 +03:00
|
|
|
Epoch: 1
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: System/Kernel and hardware
|
2023-04-02 00:33:34 +00:00
|
|
|
URL: https://github.com/opencontainers/runc
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source100: %{name}.rpmlintrc
|
2019-10-12 03:11:07 +03:00
|
|
|
BuildRequires: go-md2man
|
2025-01-08 20:55:32 +00:00
|
|
|
BuildRequires: go
|
2023-04-02 00:33:34 +00:00
|
|
|
BuildRequires: git-core
|
2019-10-12 03:11:07 +03:00
|
|
|
BuildRequires: glibc-static-devel
|
|
|
|
BuildRequires: pkgconfig(libseccomp)
|
2024-11-19 09:58:42 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2023-04-02 00:33:34 +00:00
|
|
|
BuildRequires: upx
|
2017-09-08 11:31:49 +03:00
|
|
|
|
|
|
|
# need xz to work with ubuntu images
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1045220
|
2021-08-31 16:49:47 +03:00
|
|
|
Requires: xz
|
2017-09-08 11:31:49 +03:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1034919
|
|
|
|
# No longer needed in Fedora because of libcontainer
|
2023-04-02 00:33:34 +00:00
|
|
|
Requires: cgroup
|
2021-08-31 16:49:47 +03:00
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: iptables
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2017-09-21 12:46:56 +03:00
|
|
|
%rename opencontainers-runc
|
|
|
|
|
2017-09-08 11:31:49 +03:00
|
|
|
%description
|
2019-10-12 03:11:07 +03:00
|
|
|
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.
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2019-10-12 03:11:07 +03:00
|
|
|
%files
|
2023-04-02 00:33:34 +00:00
|
|
|
%doc README.md LICENSE docs
|
|
|
|
%{_sbindir}/%{name}
|
2019-10-12 03:11:07 +03:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/docker-%{name}
|
|
|
|
%{_mandir}/man8/%{name}*
|
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2019-10-12 03:11:07 +03:00
|
|
|
%prep
|
2021-08-31 16:49:47 +03:00
|
|
|
%setup -q
|
2017-09-08 11:31:49 +03:00
|
|
|
|
|
|
|
%build
|
2024-02-02 18:37:22 +00:00
|
|
|
export GOPROXY=direct
|
2023-04-02 00:33:34 +00:00
|
|
|
%make man all
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2025-02-14 20:35:11 +00:00
|
|
|
#upx ./%{name}
|
2017-09-08 11:31:49 +03:00
|
|
|
|
|
|
|
%install
|
2023-04-02 00:33:34 +00:00
|
|
|
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install install-bash install-man
|
|
|
|
|
2019-10-12 03:11:07 +03:00
|
|
|
install -d -p %{buildroot}%{_bindir}
|
|
|
|
install -p -m 755 %{name} %{buildroot}%{_bindir}
|
2017-09-08 11:31:49 +03:00
|
|
|
|
2019-10-12 03:11:07 +03:00
|
|
|
ln -s %{name} %{buildroot}%{_bindir}/docker-%{name}
|