]>
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 | |
49ca6807 | 11 | Version: 1.9.1 |
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 | |
49ca6807 | 16 | # Source0-md5: b17e571863a336263194a134e545c7fa |
c58391fd JP |
17 | URL: https://github.com/containers/crun |
18 | BuildRequires: autoconf >= 2.69 | |
19 | BuildRequires: automake >= 1:1.11.2 | |
c8307725 | 20 | %{?with_criu:BuildRequires: criu-devel >= 3.16.1} |
c58391fd JP |
21 | %{?with_man:BuildRequires: go-md2man} |
22 | BuildRequires: libcap-devel | |
5c70b1e9 | 23 | BuildRequires: libgcrypt-devel |
c58391fd JP |
24 | BuildRequires: libseccomp-devel |
25 | BuildRequires: libselinux-devel | |
26 | BuildRequires: libtool | |
a92223cc | 27 | BuildRequires: linux-libc-headers >= 7:3.18 |
c58391fd JP |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: python3 | |
30 | BuildRequires: python3-devel | |
181f9dc7 | 31 | BuildRequires: rpmbuild(macros) >= 2.007 |
c58391fd JP |
32 | BuildRequires: systemd-devel |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRequires: yajl-devel >= 2.0.0 | |
c58391fd | 36 | Requires: yajl >= 2.0.0 |
ae066660 | 37 | %{?with_criu:Suggests: criu-libs >= 3.16.1} |
c58391fd JP |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | crun is a runtime for running OCI containers. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | ||
46 | %build | |
47 | %{__libtoolize} | |
48 | %{__aclocal} | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
51 | %{__automake} | |
52 | %configure \ | |
53 | --disable-silent-rules | |
54 | ||
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcrun.{a,la} | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc README.md | |
71 | %attr(755,root,root) %{_bindir}/crun | |
72 | %{?with_man:%{_mandir}/man1/crun.1*} | |
49ca6807 | 73 | %{?with_man:%{_mandir}/man1/krun.1*} |