Package containers-common: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | # Below definitions are used to deliver config files from a particular branch # of c/image, c/common, c/storage vendored in all of Buildah, Podman and Skopeo. # These vendored components must have the same version. If it is not the case, # pick the oldest version on c/image, c/common, c/storage vendored in # Buildah/Podman/Skopeo. %global skopeo_branch main %global podman_branch main %global buildah_branch main %global image_branch main %global common_branch main %global storage_branch main %global shortnames_branch main %global github_containers https://raw.githubusercontent.com/containers Epoch: 1 Name: containers-common Version: 3 Release: alt1 License: Apache-2.0 Group: System/Configuration/Other BuildArch: noarch Summary: Common configuration and documentation for containers Source1: %github_containers/common/%common_branch/docs/containers.conf.5.md Source2: %github_containers/common/%common_branch/pkg/config/containers.conf Source3: %github_containers/common/%common_branch/pkg/seccomp/seccomp.json Source4: %github_containers/common/%common_branch/pkg/subscriptions/mounts.conf Source5: %github_containers/image/%image_branch/docs/containers-auth.json.5.md Source6: %github_containers/image/%image_branch/docs/containers-certs.d.5.md Source7: %github_containers/image/%image_branch/docs/containers-policy.json.5.md Source8: %github_containers/image/%image_branch/docs/containers-registries.conf.5.md Source9: %github_containers/image/%image_branch/docs/containers-registries.conf.d.5.md Source10: %github_containers/image/%image_branch/docs/containers-registries.d.5.md Source11: %github_containers/image/%image_branch/docs/containers-signature.5.md Source12: %github_containers/image/%image_branch/docs/containers-transports.5.md Source13: %github_containers/image/%image_branch/registries.conf Source14: %github_containers/common/%common_branch/docs/containers-mounts.conf.5.md Source15: %github_containers/shortnames/%shortnames_branch/shortnames.conf Source16: %github_containers/skopeo/%skopeo_branch/default.yaml Source17: %github_containers/skopeo/%skopeo_branch/default-policy.json Source18: %github_containers/storage/%storage_branch/docs/containers-storage.conf.5.md Source19: %github_containers/storage/%storage_branch/storage.conf Source23: %github_containers/common/%common_branch/docs/Containerfile.5.md Source24: %github_containers/common/%common_branch/docs/containerignore.5.md Source25: %github_containers/common/%common_branch/docs/links/.containerignore.5 Provides: skopeo-containers = %EVR # Requires: (container-selinux >= 2:2.162.1 if selinux-policy) BuildRequires: go-md2man %description This package contains common configuration files and documentation for container tools ecosystem, such as Podman, Buildah and Skopeo. It is required because the most of configuration files and docs come from projects which are vendored into Podman, Buildah, Skopeo, etc. but they are not packaged separately. %package extra Summary: Extra dependencies for Podman and Buildah Group: System/Configuration/Other Requires: %name = %EVR Requires: container-network-stack Requires: oci-runtime Requires: crun # netavark build for not all arches #Requires: netavark >= 1.6.0 Requires: slirp4netns Requires: iptables Requires: nftables %description extra This subpackage will handle dependencies common to Podman and Buildah which are not required by Skopeo. %prep cp %SOURCE1 . cp %SOURCE2 . cp %SOURCE3 . cp %SOURCE4 . cp %SOURCE5 . cp %SOURCE6 . cp %SOURCE7 . cp %SOURCE8 . cp %SOURCE9 . cp %SOURCE10 . cp %SOURCE11 . cp %SOURCE12 . cp %SOURCE13 . cp %SOURCE14 . cp %SOURCE15 000-shortnames.conf cp %SOURCE16 . cp %SOURCE17 policy.json cp %SOURCE18 . cp %SOURCE19 . cp %SOURCE23 . cp %SOURCE24 . cp %SOURCE25 . %build mkdir -p man5 for FILE in $(ls *.5.md); do go-md2man -in $FILE -out man5/$(basename $FILE .md) done cp man5/containerignore.5 man5/.containerignore.5 %install # install config and policy files for registries install -dp %buildroot%_sysconfdir/containers/{certs.d,oci/hooks.d,systemd} install -dp %buildroot%_sharedstatedir/containers/sigstore install -dp %buildroot%_datadir/containers/systemd install -Dp -m0644 default.yaml -t %buildroot%_sysconfdir/containers/registries.d install -Dp -m0644 storage.conf -t %buildroot%_datadir/containers install -Dp -m0644 registries.conf -t %buildroot%_sysconfdir/containers install -Dp -m0644 000-shortnames.conf -t %buildroot%_sysconfdir/containers/registries.conf.d install -Dp -m0644 policy.json -t %buildroot%_sysconfdir/containers touch %buildroot%_sysconfdir/containers/{storage,containers}.conf # install manpages for FILE in $(ls -a man5 | grep 5); do install -Dp -m0644 man5/$FILE -t %buildroot%_mandir/man5 done # install config files for mounts, containers and seccomp install -m0644 mounts.conf %buildroot%_datadir/containers/mounts.conf install -m0644 seccomp.json %buildroot%_datadir/containers/seccomp.json install -m0644 containers.conf %buildroot%_datadir/containers/containers.conf # install secrets patch directory install -d -p -m 755 %buildroot/%_datadir/alt/secrets %files %dir %_sysconfdir/containers %dir %_sysconfdir/containers/certs.d %dir %_sysconfdir/containers/oci %dir %_sysconfdir/containers/oci/hooks.d %dir %_sysconfdir/containers/registries.conf.d %dir %_sysconfdir/containers/registries.d %dir %_sysconfdir/containers/systemd %config(noreplace) %_sysconfdir/containers/policy.json %config(noreplace) %_sysconfdir/containers/registries.conf %config(noreplace) %_sysconfdir/containers/registries.conf.d/000-shortnames.conf %config(noreplace) %_sysconfdir/containers/registries.d/default.yaml %ghost %_sysconfdir/containers/storage.conf %ghost %_sysconfdir/containers/containers.conf %dir %_sharedstatedir/containers/sigstore %_man5dir/* %_man5dir/.containerignore.5.* %_datadir/containers %dir %_datadir/alt/secrets %files extra %changelog * Thu Dec 07 2023 Alexey Shabalin <shaba@altlinux.org> 1:3-alt1 - Update sources * Tue May 16 2023 Alexey Shabalin <shaba@altlinux.org> 1:2-alt1 - Update sources - Add containers-common-extra subpackage * Mon Aug 01 2022 Mikhail Gordeev <obirvalger@altlinux.org> 1:1-alt2 - Add ALT images to shortnames.conf * Sun Jul 31 2022 Alexey Shabalin <shaba@altlinux.org> 1:1-alt1 - Initial build as separated package. |