Skip to content

Commit 9edead9

Browse files
committed
Merge branch 'main' into 2.0
2 parents c6cc83f + df80b9e commit 9edead9

36 files changed

+1432
-980
lines changed
File renamed without changes.

SPECS/buildah/buildah.spec renamed to SPECS-EXTENDED/buildah/buildah.spec

Lines changed: 88 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,74 @@
1+
Vendor: Microsoft Corporation
2+
Distribution: Mariner
3+
%global with_bundled 1
4+
5+
16
%global with_debug 1
7+
8+
9+
10+
211
%if 0%{?with_debug}
312
%global _find_debuginfo_dwz_opts %{nil}
413
%global _dwz_low_mem_die_limit 0
514
%else
615
%global debug_package %{nil}
716
%endif
17+
818
%global provider github
919
%global provider_tld com
1020
%global project containers
1121
%global repo buildah
1222
# https://github.com/containers/buildah
1323
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
1424
%global git0 https://%{import_path}
25+
1526
# Used for comparing with latest upstream tag
1627
# to decide whether to autobuild (non-rawhide only)
1728
%define built_tag v1.18.0
1829
%define built_tag_strip %(b=%{built_tag}; echo ${b:1})
19-
Summary: A command line tool used for creating OCI Images
20-
Name: %{repo}
21-
Version: 1.18.0
22-
Release: 8%{?dist}
23-
License: Apache-2.0
24-
Vendor: Microsoft Corporation
25-
Distribution: Mariner
26-
URL: https://%{name}.io
27-
Source: https://%{import_path}/archive/%{built_tag}.tar.gz#/%{name}-%{version}.tar.gz
28-
29-
Patch0: CVE-2022-27651.patch
30-
31-
BuildRequires: btrfs-progs-devel
32-
BuildRequires: device-mapper-devel
33-
BuildRequires: git
34-
BuildRequires: glib2-devel
35-
BuildRequires: glibc-static >= 2.35-3%{?dist}
36-
BuildRequires: go-md2man
37-
BuildRequires: go-rpm-macros
38-
BuildRequires: golang
39-
BuildRequires: gpgme-devel
40-
BuildRequires: libassuan-devel
41-
BuildRequires: libseccomp-static
42-
BuildRequires: make
43-
BuildRequires: ostree-devel
44-
Requires: libcontainers-common
45-
Requires: libseccomp >= 2.4.1-0
46-
Recommends: container-selinux
47-
Recommends: fuse-overlayfs
48-
Recommends: slirp4netns >= 0.3-0
30+
%define download_url https://%{import_path}/archive/%{built_tag}.tar.gz
31+
32+
Name: %{repo}
33+
Version: 1.18.0
34+
Release: 6%{?dist}
35+
Summary: A command line tool used for creating OCI Images
36+
License: ASL 2.0
37+
URL: https://%{name}.io
38+
Source: %{download_url}#/%{name}-%{version}.tar.gz
39+
BuildRequires: device-mapper-devel
40+
BuildRequires: golang
41+
BuildRequires: git
42+
BuildRequires: glib2-devel
43+
BuildRequires: glibc-static >= 2.35-3%{?dist}
44+
BuildRequires: go-md2man
45+
BuildRequires: go-rpm-macros
46+
BuildRequires: gpgme-devel
47+
BuildRequires: libassuan-devel
48+
BuildRequires: make
49+
Requires: containers-common
50+
# No ostree for centos 7
51+
52+
BuildRequires: ostree-devel
53+
54+
# No btrfs for centos 8
55+
56+
BuildRequires: btrfs-progs-devel
57+
58+
59+
Requires: crun >= 0.10-1
60+
BuildRequires: libseccomp-static
61+
Recommends: container-selinux
62+
Requires: libseccomp >= 2.4.1-0
63+
Recommends: slirp4netns >= 0.3-0
64+
Recommends: fuse-overlayfs
65+
66+
67+
68+
69+
70+
71+
4972

5073
%description
5174
The %{name} package provides a command line tool which can be used to
@@ -56,8 +79,25 @@ or
5679
* save container's root file system layer to create a new image
5780
* delete a working container or an image
5881

82+
%package tests
83+
Summary: Tests for %{name}
84+
85+
Requires: %{name} = %{version}-%{release}
86+
Requires: bats
87+
Requires: bzip2
88+
Requires: podman
89+
Requires: golang
90+
Requires: jq
91+
Requires: httpd-tools
92+
Requires: openssl
93+
94+
%description tests
95+
%{summary}
96+
97+
This package contains system tests for %{name}
98+
5999
%prep
60-
%autosetup -p1 -Sgit -n %{name}-%{built_tag_strip}
100+
%autosetup -Sgit -n %{name}-%{built_tag_strip}
61101
sed -i 's/GOMD2MAN =/GOMD2MAN ?=/' docs/Makefile
62102
sed -i '/docs install/d' Makefile
63103

@@ -72,14 +112,25 @@ mv vendor src
72112

73113
export GOPATH=$(pwd)/_build:$(pwd)
74114
export BUILDTAGS='seccomp selinux'
115+
%if 0%{?centos} >= 8
116+
export BUILDTAGS+=' exclude_graphdriver_btrfs'
117+
%endif
75118
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
76-
GOMD2MAN=go-md2man make -C docs
119+
%gobuild -o imgtype %{import_path}/tests/imgtype
120+
GOMD2MAN=go-md2man %{__make} -C docs
77121

78122
%install
79123
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
80124
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install.completions
81125
make DESTDIR=%{buildroot} PREFIX=%{_prefix} -C docs install
82126

127+
install -d -p %{buildroot}/%{_datadir}/%{name}/test/system
128+
cp -pav tests/. %{buildroot}/%{_datadir}/%{name}/test/system
129+
cp imgtype %{buildroot}/%{_bindir}/%{name}-imgtype
130+
131+
#define license tag if not already defined
132+
%{!?_licensedir:%global license %doc}
133+
83134
%files
84135
%license LICENSE
85136
%doc README.md
@@ -89,14 +140,12 @@ make DESTDIR=%{buildroot} PREFIX=%{_prefix} -C docs install
89140
%dir %{_datadir}/bash-completion/completions
90141
%{_datadir}/bash-completion/completions/%{name}
91142

92-
%changelog
93-
* Fri Nov 18 2022 Sam Meluch <[email protected]> - 1.18.0-8
94-
- Add Patch for CVE-2022-27651
95-
96-
* Tue Nov 01 2022 Ameya Usgaonkar <[email protected]> - 1.18.0-7
97-
- Move to core packages
98-
- Remove tests package
143+
%files tests
144+
%license LICENSE
145+
%{_bindir}/%{name}-imgtype
146+
%{_datadir}/%{name}/test
99147

148+
%changelog
100149
* Tue Nov 01 2022 Olivia Crain <[email protected]> - 1.18.0-6
101150
- Bump release to rebuild with go 1.18.8
102151

File renamed without changes.

SPECS/catatonit/catatonit.spec renamed to SPECS-EXTENDED/catatonit/catatonit.spec

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
Summary: A signal-forwarding process manager for containers
2-
Name: catatonit
3-
Version: 0.1.7
4-
Release: 7%{?dist}
5-
License: GPLv3+
61
Vendor: Microsoft Corporation
72
Distribution: Mariner
8-
URL: https://github.com/openSUSE/catatonit
9-
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
10-
BuildRequires: autoconf
11-
BuildRequires: automake
12-
BuildRequires: file
13-
BuildRequires: gcc
14-
BuildRequires: git
15-
BuildRequires: glibc-static >= 2.35-3%{?dist}
16-
BuildRequires: libtool
17-
BuildRequires: make
18-
Provides: podman-%{name} = %{version}-%{release}
3+
4+
Name: catatonit
5+
Version: 0.1.7
6+
Release: 6%{?dist}
7+
Summary: A signal-forwarding process manager for containers
8+
License: GPLv3+
9+
URL: https://github.com/openSUSE/catatonit
10+
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
11+
BuildRequires: autoconf
12+
BuildRequires: automake
13+
BuildRequires: file
14+
BuildRequires: gcc
15+
BuildRequires: git
16+
BuildRequires: glibc-static >= 2.35-3%{?dist}
17+
BuildRequires: libtool
18+
BuildRequires: make
19+
20+
Provides: podman-%{name} = %{version}-%{release}
1921

2022
%description
2123
Catatonit is a /sbin/init program for use within containers. It
@@ -34,7 +36,7 @@ sed -i '$d' configure.ac
3436
%build
3537
autoreconf -fi
3638
%configure
37-
%make_build
39+
%{__make} %{?_smp_mflags}
3840

3941
# Make sure we *always* build a static binary. Otherwise we'll break containers
4042
# that don't have the necessary shared libs.
@@ -59,9 +61,6 @@ ln -s %{_libexecdir}/%{name}/%{name} %{buildroot}%{_libexecdir}/podman/%{name}
5961
%{_libexecdir}/podman/%{name}
6062

6163
%changelog
62-
* Tue Nov 01 2022 Ameya Usgaonkar <[email protected]> - 0.1.7-7
63-
- Move to core packages
64-
6564
* Tue Sep 13 2022 Andy Caldwell <[email protected]> - 0.1.7-6
6665
- Rebuilt for glibc-static 2.35-3
6766

File renamed without changes.

SPECS/containernetworking-plugins/containernetworking-plugins.spec renamed to SPECS-EXTENDED/containernetworking-plugins/containernetworking-plugins.spec

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,76 @@
11
%global with_debug 1
2+
23
%if 0%{?with_debug}
34
%global _find_debuginfo_dwz_opts %{nil}
45
%global _dwz_low_mem_die_limit 0
56
%else
67
%global debug_package %{nil}
78
%endif
9+
810
%global provider github
911
%global provider_tld com
1012
%global project containernetworking
1113
%global repo plugins
1214
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
1315
%global import_path %{provider_prefix}
1416
%global git0 https://%{import_path}
17+
1518
# Used for comparing with latest upstream tag
1619
# to decide whether to autobuild (non-rawhide only)
1720
%define built_tag v1.1.1
1821
%define built_tag_strip %(b=%{built_tag}; echo ${b:1})
1922
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
2023
%define download_url %{git0}/archive/%{built_tag}.tar.gz
21-
Summary: Libraries for writing CNI plugin
22-
Name: %{project}-%{repo}
23-
Version: 1.1.1
24-
Release: 4%{?dist}
25-
License: Apache-2.0 AND BSD AND MIT
26-
Vendor: Microsoft Corporation
27-
Distribution: Mariner
28-
URL: %{git0}
29-
Source0: %{download_url}#/%{name}-%{version}.tar.gz
30-
BuildRequires: git
31-
BuildRequires: go-md2man
32-
BuildRequires: go-rpm-macros
24+
25+
Name: %{project}-%{repo}
26+
Version: 1.1.1
27+
Release: 3%{?dist}
28+
Summary: Libraries for writing CNI plugin
29+
License: ASL 2.0 and BSD and MIT
30+
Vendor: Microsoft Corporation
31+
Distribution: Mariner
32+
URL: %{git0}
33+
Source0: %{download_url}#/%{name}-%{version}.tar.gz
3334
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
34-
BuildRequires: golang
35-
BuildRequires: systemd-devel
36-
Requires: systemd
37-
Obsoletes: %{project}-cni < 0.7.1-2
38-
Provides: %{project}-cni = %{version}-%{release}
39-
Provides: kubernetes-cni
40-
Provides: container-network-stack = 1
35+
BuildRequires: golang
36+
BuildRequires: git
37+
BuildRequires: go-md2man
38+
BuildRequires: go-rpm-macros
39+
BuildRequires: systemd-devel
40+
Requires: systemd
41+
42+
43+
Obsoletes: %{project}-cni < 0.7.1-2
44+
Provides: %{project}-cni = %{version}-%{release}
45+
Provides: kubernetes-cni
46+
Provides: container-network-stack = 1
4147
# vendored libraries
4248
# awk '{print "Provides: bundled(golang("$1")) = "$2}' go.mod | sort | uniq | sed -e 's/-/_/g' -e '/bundled(golang())/d' -e '/bundled(golang(go\|module\|replace\|require))/d'
43-
Provides: bundled(golang(github.com/Microsoft/go_winio)) = v0.4.17
44-
Provides: bundled(golang(github.com/Microsoft/hcsshim)) = v0.8.20
45-
Provides: bundled(golang(github.com/alexflint/go_filemutex)) = v1.1.0
46-
Provides: bundled(golang(github.com/buger/jsonparser)) = v1.1.1
47-
Provides: bundled(golang(github.com/containerd/cgroups)) = v1.0.1
48-
Provides: bundled(golang(github.com/containernetworking/cni)) = v1.0.1
49-
Provides: bundled(golang(github.com/coreos/go_iptables)) = v0.6.0
50-
Provides: bundled(golang(github.com/coreos/go_systemd/v22)) = v22.3.2
51-
Provides: bundled(golang(github.com/d2g/dhcp4)) = v0.0.0_20170904100407_a1d1b6c41b1c
52-
Provides: bundled(golang(github.com/d2g/dhcp4client)) = v1.0.0
53-
Provides: bundled(golang(github.com/d2g/dhcp4server)) = v0.0.0_20181031114812_7d4a0a7f59a5
54-
Provides: bundled(golang(github.com/fsnotify/fsnotify)) = v1.4.9
55-
Provides: bundled(golang(github.com/godbus/dbus/v5)) = v5.0.4
56-
Provides: bundled(golang(github.com/gogo/protobuf)) = v1.3.2
57-
Provides: bundled(golang(github.com/golang/groupcache)) = v0.0.0_20200121045136_8c9f03a8e57e
58-
Provides: bundled(golang(github.com/mattn/go_shellwords)) = v1.0.12
59-
Provides: bundled(golang(github.com/networkplumbing/go_nft)) = v0.2.0
60-
Provides: bundled(golang(github.com/nxadm/tail)) = v1.4.8
61-
Provides: bundled(golang(github.com/onsi/ginkgo)) = v1.16.4
62-
Provides: bundled(golang(github.com/onsi/gomega)) = v1.15.0
63-
Provides: bundled(golang(github.com/pkg/errors)) = v0.9.1
64-
Provides: bundled(golang(github.com/safchain/ethtool)) = v0.0.0_20210803160452_9aa261dae9b1
65-
Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.8.1
66-
Provides: bundled(golang(github.com/vishvananda/netlink)) = v1.1.1_0.20210330154013_f5de75959ad5
67-
Provides: bundled(golang(github.com/vishvananda/netns)) = v0.0.0_20210104183010_2eb08e3e575f
49+
Provides: bundled(golang(github.com/Microsoft/go_winio)) = v0.4.17
50+
Provides: bundled(golang(github.com/Microsoft/hcsshim)) = v0.8.20
51+
Provides: bundled(golang(github.com/alexflint/go_filemutex)) = v1.1.0
52+
Provides: bundled(golang(github.com/buger/jsonparser)) = v1.1.1
53+
Provides: bundled(golang(github.com/containerd/cgroups)) = v1.0.1
54+
Provides: bundled(golang(github.com/containernetworking/cni)) = v1.0.1
55+
Provides: bundled(golang(github.com/coreos/go_iptables)) = v0.6.0
56+
Provides: bundled(golang(github.com/coreos/go_systemd/v22)) = v22.3.2
57+
Provides: bundled(golang(github.com/d2g/dhcp4)) = v0.0.0_20170904100407_a1d1b6c41b1c
58+
Provides: bundled(golang(github.com/d2g/dhcp4client)) = v1.0.0
59+
Provides: bundled(golang(github.com/d2g/dhcp4server)) = v0.0.0_20181031114812_7d4a0a7f59a5
60+
Provides: bundled(golang(github.com/fsnotify/fsnotify)) = v1.4.9
61+
Provides: bundled(golang(github.com/godbus/dbus/v5)) = v5.0.4
62+
Provides: bundled(golang(github.com/gogo/protobuf)) = v1.3.2
63+
Provides: bundled(golang(github.com/golang/groupcache)) = v0.0.0_20200121045136_8c9f03a8e57e
64+
Provides: bundled(golang(github.com/mattn/go_shellwords)) = v1.0.12
65+
Provides: bundled(golang(github.com/networkplumbing/go_nft)) = v0.2.0
66+
Provides: bundled(golang(github.com/nxadm/tail)) = v1.4.8
67+
Provides: bundled(golang(github.com/onsi/ginkgo)) = v1.16.4
68+
Provides: bundled(golang(github.com/onsi/gomega)) = v1.15.0
69+
Provides: bundled(golang(github.com/pkg/errors)) = v0.9.1
70+
Provides: bundled(golang(github.com/safchain/ethtool)) = v0.0.0_20210803160452_9aa261dae9b1
71+
Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.8.1
72+
Provides: bundled(golang(github.com/vishvananda/netlink)) = v1.1.1_0.20210330154013_f5de75959ad5
73+
Provides: bundled(golang(github.com/vishvananda/netns)) = v0.0.0_20210104183010_2eb08e3e575f
6874

6975
%description
7076
The CNI (Container Network Interface) project consists of a specification
@@ -73,6 +79,7 @@ containers, along with a number of supported plugins. CNI concerns itself
7379
only with network connectivity of containers and removing allocated resources
7480
when the container is deleted.
7581

82+
7683
%prep
7784
%autosetup -Sgit -n %{repo}-%{built_tag_strip}
7885
rm -rf plugins/main/windows
@@ -110,6 +117,9 @@ install -dp %{buildroot}%{_unitdir}
110117
install -p plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir}
111118
install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir}
112119

120+
#define license tag if not already defined
121+
%{!?_licensedir:%global license %doc}
122+
113123
%files
114124
%license LICENSE
115125
%doc *.md
@@ -119,9 +129,6 @@ install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir}
119129
%{_unitdir}/cni-dhcp.socket
120130

121131
%changelog
122-
* Tue Nov 01 2022 Ameya Usgaonkar <[email protected]> - 1.1.1-4
123-
- Move to core packages
124-
125132
* Tue Nov 01 2022 Olivia Crain <[email protected]> - 1.1.1-3
126133
- Bump release to rebuild with go 1.18.8
127134

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)