]>
Commit | Line | Data |
---|---|---|
181f9dc7 | 1 | %ifarch %{x8664} %{armv7} %{armv8} aarch64 ppc64 |
c58391fd JP |
2 | %define with_criu 1 |
3 | %endif | |
4 | ||
5 | %ifarch %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x | |
6 | %define with_man 1 | |
7 | %endif | |
8 | ||
9 | Summary: OCI runtime written in C | |
10 | Name: crun | |
a1ee07a8 | 11 | Version: 1.6 |
c58391fd JP |
12 | Release: 1 |
13 | License: GPL v3+ | |
14 | Group: Applications/System | |
15 | Source0: https://github.com/containers/crun/releases/download/%{version}/%{name}-%{version}.tar.xz | |
a1ee07a8 | 16 | # Source0-md5: 2035eb2506044e95c2741d3d5ba3e703 |
c58391fd JP |
17 | URL: https://github.com/containers/crun |
18 | BuildRequires: autoconf >= 2.69 | |
19 | BuildRequires: automake >= 1:1.11.2 | |
2e3c5d87 | 20 | %{?with_criu:BuildRequires: criu-devel >= 3.15} |
c58391fd JP |
21 | %{?with_man:BuildRequires: go-md2man} |
22 | BuildRequires: libcap-devel | |
23 | BuildRequires: libseccomp-devel | |
24 | BuildRequires: libselinux-devel | |
25 | BuildRequires: libtool | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: python3 | |
28 | BuildRequires: python3-devel | |
181f9dc7 | 29 | BuildRequires: rpmbuild(macros) >= 2.007 |
c58391fd JP |
30 | BuildRequires: systemd-devel |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xz | |
33 | BuildRequires: yajl-devel >= 2.0.0 | |
708989ee | 34 | %{?with_criu:Requires: criu-libs >= 3.15} |
c58391fd JP |
35 | Requires: yajl >= 2.0.0 |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | crun is a runtime for running OCI containers. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | %{__libtoolize} | |
46 | %{__aclocal} | |
47 | %{__autoconf} | |
48 | %{__autoheader} | |
49 | %{__automake} | |
50 | %configure \ | |
51 | --disable-silent-rules | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcrun.{a,la} | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc README.md | |
69 | %attr(755,root,root) %{_bindir}/crun | |
70 | %{?with_man:%{_mandir}/man1/crun.1*} |