github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/contrib/spec/podman.spec.in (about) 1 %global with_devel 0 2 %global with_bundled 1 3 %global with_check 0 4 %global with_unit_test 0 5 %bcond_without doc 6 %bcond_without debug 7 8 %if %{with debug} 9 %global _find_debuginfo_dwz_opts %{nil} 10 %global _dwz_low_mem_die_limit 0 11 %else 12 %global debug_package %{nil} 13 %endif 14 15 # %if ! 0% {?gobuild:1} 16 %define gobuild(o:) go build -tags="$BUILDTAGS" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; 17 #% endif 18 19 # podman hack directory 20 %define hackdir %{_builddir}/%{repo}-%{shortcommit0} 21 22 %global provider github 23 %global provider_tld com 24 %global project containers 25 %global repo podman 26 # https://github.com/containers/podman 27 %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} 28 %global import_path %{provider_prefix} 29 %global git0 https://%{provider}.%{provider_tld}/%{project}/%{repo} 30 %global commit0 #COMMIT# 31 %global shortcommit0 %(c=%{commit0}; echo ${c:0:8}) 32 33 # People want conmon packaged with the copr rpm 34 %global import_path_conmon github.com/containers/conmon 35 %global git_conmon https://%{import_path_conmon} 36 %global commit_conmon 41877362fc4685d55e0473d2e4a1cbe5e1debee0 37 %global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7}) 38 39 Name: podman 40 %if 0%{?fedora} 41 Epoch: 99 42 %else 43 Epoch: 0 44 %endif 45 Version: 2.2.1 46 Release: #COMMITDATE#.git%{shortcommit0}%{?dist} 47 Summary: Manage Pods, Containers and Container Images 48 License: ASL 2.0 49 URL: %{git_podman} 50 Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz 51 Source1: conmon.tar.gz 52 # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required 53 #ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}} 54 ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 55 # The COPR process will uncomment this 56 #BuildRequires: golang-bin 57 # 58 # btrfs-progs-devel package is not available in CentOS/RHEL-8 59 %if 0%{?rhel} != 8 && 0%{?centos} != 8 60 BuildRequires: btrfs-progs-devel 61 %endif 62 BuildRequires: glib2-devel 63 BuildRequires: glibc-devel 64 BuildRequires: glibc-static 65 BuildRequires: git 66 %if %{with doc} 67 BuildRequires: go-md2man 68 %endif 69 BuildRequires: gpgme-devel 70 BuildRequires: libassuan-devel 71 BuildRequires: libgpg-error-devel 72 BuildRequires: libseccomp-devel 73 BuildRequires: libselinux-devel 74 BuildRequires: pkgconfig 75 BuildRequires: make 76 BuildRequires: systemd-devel 77 Requires: skopeo-containers 78 Requires: containernetworking-plugins >= 0.6.0-3 79 Requires: iptables 80 %if 0%{?rhel} < 8 || 0%{?centos} < 8 81 Requires: container-selinux 82 Requires: runc 83 %else 84 %if 0%{?rhel} || 0%{?centos} 85 Requires: runc 86 %else 87 Requires: oci-runtime 88 Recommends: crun 89 %endif 90 Recommends: container-selinux 91 Recommends: slirp4netns 92 Recommends: fuse-overlayfs 93 %endif 94 Recommends: xz 95 96 # vendored libraries 97 # awk '{print "Provides: bundled(golang("$1")) = "$2}' vendor.conf | sort 98 # [thanks to Carl George <carl@george.computer> for containerd.spec] 99 Provides: bundled(golang(github.com/Azure/go-ansiterm)) = 19f72df4d05d31cbe1c56bfc8045c96babff6c7e 100 Provides: bundled(golang(github.com/blang/semver)) = v3.5.0 101 Provides: bundled(golang(github.com/boltdb/bolt)) = master 102 Provides: bundled(golang(github.com/buger/goterm)) = 2f8dfbc7dbbff5dd1d391ed91482c24df243b2d3 103 Provides: bundled(golang(github.com/BurntSushi/toml)) = v0.2.0 104 Provides: bundled(golang(github.com/containerd/cgroups)) = 77e628511d924b13a77cebdc73b757a47f6d751b 105 Provides: bundled(golang(github.com/containerd/continuity)) = master 106 Provides: bundled(golang(github.com/containernetworking/cni)) = v0.7.0-alpha1 107 Provides: bundled(golang(github.com/containernetworking/plugins)) = 1fb94a4222eafc6f948eacdca9c9f2158b427e53 108 Provides: bundled(golang(github.com/containers/image)) = c6e0eee0f8eb38e78ae2e44a9aeea0576f451617 109 Provides: bundled(golang(github.com/containers/psgo)) = dd34e7e448e5d4f3c7ce87b5da7738b00778dbfd 110 Provides: bundled(golang(github.com/containers/storage)) = 8b1a0f8d6863cf05709af333b8997a437652ec4c 111 Provides: bundled(golang(github.com/coreos/go-systemd)) = v14 112 Provides: bundled(golang(github.com/cri-o/ocicni)) = master 113 Provides: bundled(golang(github.com/cyphar/filepath-securejoin)) = v0.2.1 114 Provides: bundled(golang(github.com/davecgh/go-spew)) = v1.1.0 115 Provides: bundled(golang(github.com/docker/distribution)) = 7a8efe719e55bbfaff7bc5718cdf0ed51ca821df 116 Provides: bundled(golang(github.com/docker/docker)) = 86f080cff0914e9694068ed78d503701667c4c00 117 Provides: bundled(golang(github.com/docker/docker-credential-helpers)) = d68f9aeca33f5fd3f08eeae5e9d175edf4e731d1 118 Provides: bundled(golang(github.com/docker/go-connections)) = 3ede32e2033de7505e6500d6c868c2b9ed9f169d 119 Provides: bundled(golang(github.com/docker/go-units)) = v0.3.2 120 Provides: bundled(golang(github.com/docker/libtrust)) = aabc10ec26b754e797f9028f4589c5b7bd90dc20 121 Provides: bundled(golang(github.com/docker/spdystream)) = ed496381df8283605c435b86d4fdd6f4f20b8c6e 122 Provides: bundled(golang(github.com/fatih/camelcase)) = f6a740d52f961c60348ebb109adde9f4635d7540 123 Provides: bundled(golang(github.com/fsnotify/fsnotify)) = 7d7316ed6e1ed2de075aab8dfc76de5d158d66e1 124 Provides: bundled(golang(github.com/fsouza/go-dockerclient)) = master 125 Provides: bundled(golang(github.com/ghodss/yaml)) = 04f313413ffd65ce25f2541bfd2b2ceec5c0908c 126 Provides: bundled(golang(github.com/godbus/dbus)) = a389bdde4dd695d414e47b755e95e72b7826432c 127 Provides: bundled(golang(github.com/gogo/protobuf)) = c0656edd0d9eab7c66d1eb0c568f9039345796f7 128 Provides: bundled(golang(github.com/golang/glog)) = 23def4e6c14b4da8ac2ed8007337bc5eb5007998 129 Provides: bundled(golang(github.com/golang/groupcache)) = b710c8433bd175204919eb38776e944233235d03 130 Provides: bundled(golang(github.com/golang/protobuf)) = 4bd1920723d7b7c925de087aa32e2187708897f7 131 Provides: bundled(golang(github.com/googleapis/gnostic)) = 0c5108395e2debce0d731cf0287ddf7242066aba 132 Provides: bundled(golang(github.com/google/gofuzz)) = 44d81051d367757e1c7c6a5a86423ece9afcf63c 133 Provides: bundled(golang(github.com/gorilla/context)) = v1.1 134 Provides: bundled(golang(github.com/gorilla/mux)) = v1.3.0 135 Provides: bundled(golang(github.com/hashicorp/errwrap)) = 7554cd9344cec97297fa6649b055a8c98c2a1e55 136 Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0a025b7e63adc15a622f29b0b2c4c3848243bbf6 137 Provides: bundled(golang(github.com/hashicorp/go-multierror)) = 83588e72410abfbe4df460eeb6f30841ae47d4c4 138 Provides: bundled(golang(github.com/imdario/mergo)) = 0.2.2 139 Provides: bundled(golang(github.com/json-iterator/go)) = 1.0.0 140 Provides: bundled(golang(github.com/kr/pty)) = v1.0.0 141 Provides: bundled(golang(github.com/mattn/go-runewidth)) = v0.0.1 142 Provides: bundled(golang(github.com/Microsoft/go-winio)) = 78439966b38d69bf38227fbf57ac8a6fee70f69a 143 Provides: bundled(golang(github.com/Microsoft/hcsshim)) = 43f9725307998e09f2e3816c2c0c36dc98f0c982 144 Provides: bundled(golang(github.com/mistifyio/go-zfs)) = v2.1.1 145 Provides: bundled(golang(github.com/mrunalp/fileutils)) = master 146 Provides: bundled(golang(github.com/mtrmac/gpgme)) = b2432428689ca58c2b8e8dea9449d3295cf96fc9 147 Provides: bundled(golang(github.com/Nvveen/Gotty)) = master 148 Provides: bundled(golang(github.com/opencontainers/go-digest)) = v1.0.0-rc0 149 Provides: bundled(golang(github.com/opencontainers/image-spec)) = v1.0.0 150 Provides: bundled(golang(github.com/opencontainers/runc)) = 6e15bc3f92fd4c58b3285e8f27eaeb6b22d62920 151 Provides: bundled(golang(github.com/opencontainers/runtime-spec)) = v1.0.0 152 Provides: bundled(golang(github.com/opencontainers/runtime-tools)) = 625e2322645b151a7cbb93a8b42920933e72167f 153 Provides: bundled(golang(github.com/opencontainers/selinux)) = b6fa367ed7f534f9ba25391cc2d467085dbb445a 154 Provides: bundled(golang(github.com/openshift/imagebuilder)) = master 155 Provides: bundled(golang(github.com/pkg/errors)) = v0.8.0 156 Provides: bundled(golang(github.com/pmezard/go-difflib)) = 792786c7400a136282c1664665ae0a8db921c6c2 157 Provides: bundled(golang(github.com/pquerna/ffjson)) = d49c2bc1aa135aad0c6f4fc2056623ec78f5d5ac 158 Provides: bundled(golang(github.com/containers/buildah)) = a2c8358455f9b6a254c572455af2a0afcfcec544 159 Provides: bundled(golang(github.com/seccomp/containers-golang)) = master 160 Provides: bundled(golang(github.com/seccomp/libseccomp-golang)) = v0.9.0 161 Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.0.0 162 Provides: bundled(golang(github.com/spf13/pflag)) = 9ff6c6923cfffbcd502984b8e0c80539a94968b7 163 Provides: bundled(golang(github.com/stretchr/testify)) = 4d4bfba8f1d1027c4fdbe371823030df51419987 164 Provides: bundled(golang(github.com/syndtr/gocapability)) = e7cb7fa329f456b3855136a2642b197bad7366ba 165 Provides: bundled(golang(github.com/tchap/go-patricia)) = v2.2.6 166 Provides: bundled(golang(github.com/ulikunitz/xz)) = v0.5.4 167 # "-" are not accepted in version strings, so comment out below line 168 #Provides: bundled(golang(github.com/urfave/cli)) = fix-short-opts-parsing 169 Provides: bundled(golang(github.com/varlink/go)) = master 170 Provides: bundled(golang(github.com/vbatts/tar-split)) = v0.10.2 171 Provides: bundled(golang(github.com/vishvananda/netlink)) = master 172 Provides: bundled(golang(github.com/vishvananda/netns)) = master 173 Provides: bundled(golang(github.com/xeipuuv/gojsonpointer)) = master 174 Provides: bundled(golang(github.com/xeipuuv/gojsonreference)) = master 175 Provides: bundled(golang(github.com/xeipuuv/gojsonschema)) = master 176 Provides: bundled(golang(golang.org/x/crypto)) = 81e90905daefcd6fd217b62423c0908922eadb30 177 Provides: bundled(golang(golang.org/x/net)) = c427ad74c6d7a814201695e9ffde0c5d400a7674 178 Provides: bundled(golang(golang.org/x/sys)) = master 179 Provides: bundled(golang(golang.org/x/text)) = f72d8390a633d5dfb0cc84043294db9f6c935756 180 Provides: bundled(golang(golang.org/x/time)) = f51c12702a4d776e4c1fa9b0fabab841babae631 181 Provides: bundled(golang(google.golang.org/grpc)) = v1.0.4 182 Provides: bundled(golang(gopkg.in/cheggaaa/pb.v1)) = v1.0.7 183 Provides: bundled(golang(gopkg.in/inf.v0)) = v0.9.0 184 Provides: bundled(golang(gopkg.in/mgo.v2)) = v2 185 Provides: bundled(golang(gopkg.in/square/go-jose.v2)) = v2.1.3 186 Provides: bundled(golang(gopkg.in/yaml.v2)) = v2 187 Provides: bundled(golang(k8s.io/api)) = 5ce4aa0bf2f097f6021127b3d879eeda82026be8 188 Provides: bundled(golang(k8s.io/apiextensions-apiserver)) = 1b31e26d82f1ec2e945c560790e98f34bb5f2e63 189 Provides: bundled(golang(k8s.io/apimachinery)) = 616b23029fa3dc3e0ccefd47963f5651a6543d94 190 Provides: bundled(golang(k8s.io/apiserver)) = 4d1163080139f1f9094baf8a3a6099e85e1867f6 191 Provides: bundled(golang(k8s.io/client-go)) = 7cd1d3291b7d9b1e2d54d4b69eb65995eaf8888e 192 Provides: bundled(golang(k8s.io/kube-openapi)) = 275e2ce91dec4c05a4094a7b1daee5560b555ac9 193 Provides: bundled(golang(k8s.io/utils)) = 258e2a2fa64568210fbd6267cf1d8fd87c3cb86e 194 195 %description 196 %{summary} 197 %{repo} provides a library for applications looking to use 198 the Container Pod concept popularized by Kubernetes. 199 200 %package remote 201 Summary: Remote Podman client 202 203 %description -n podman-remote 204 %{summary} 205 This package provides the Podman remote client which 206 can be used to access Podman running on a server. 207 208 %if 0%{?with_devel} 209 %package devel 210 Summary: Library for applications looking to use Container Pods 211 BuildArch: noarch 212 Provides: %{repo}-devel = %{version}-%{release} 213 214 %if 0%{?with_check} && ! 0%{?with_bundled} 215 BuildRequires: golang(github.com/BurntSushi/toml) 216 BuildRequires: golang(github.com/containerd/cgroups) 217 BuildRequires: golang(github.com/containernetworking/plugins/pkg/ns) 218 BuildRequires: golang(github.com/containers/image/copy) 219 BuildRequires: golang(github.com/containers/image/directory) 220 BuildRequires: golang(github.com/containers/image/docker) 221 BuildRequires: golang(github.com/containers/image/docker/archive) 222 BuildRequires: golang(github.com/containers/image/docker/reference) 223 BuildRequires: golang(github.com/containers/image/docker/tarfile) 224 BuildRequires: golang(github.com/containers/image/image) 225 BuildRequires: golang(github.com/containers/image/oci/archive) 226 BuildRequires: golang(github.com/containers/image/pkg/strslice) 227 BuildRequires: golang(github.com/containers/image/pkg/sysregistriesv2) 228 BuildRequires: golang(github.com/containers/image/signature) 229 BuildRequires: golang(github.com/containers/image/storage) 230 BuildRequires: golang(github.com/containers/image/tarball) 231 BuildRequires: golang(github.com/containers/image/transports/alltransports) 232 BuildRequires: golang(github.com/containers/image/types) 233 BuildRequires: golang(github.com/containers/storage) 234 BuildRequires: golang(github.com/containers/storage/pkg/archive) 235 BuildRequires: golang(github.com/containers/storage/pkg/idtools) 236 BuildRequires: golang(github.com/containers/storage/pkg/reexec) 237 BuildRequires: golang(github.com/coreos/go-systemd/dbus) 238 BuildRequires: golang(github.com/cri-o/ocicni/pkg/ocicni) 239 BuildRequires: golang(github.com/docker/distribution/reference) 240 BuildRequires: golang(github.com/docker/docker/daemon/caps) 241 BuildRequires: golang(github.com/docker/docker/pkg/mount) 242 BuildRequires: golang(github.com/docker/docker/pkg/namesgenerator) 243 BuildRequires: golang(github.com/docker/docker/pkg/stringid) 244 BuildRequires: golang(github.com/docker/docker/pkg/system) 245 BuildRequires: golang(github.com/docker/docker/pkg/term) 246 BuildRequires: golang(github.com/docker/docker/pkg/truncindex) 247 BuildRequires: golang(github.com/ghodss/yaml) 248 BuildRequires: golang(github.com/godbus/dbus) 249 BuildRequires: golang(github.com/mattn/go-sqlite3) 250 BuildRequires: golang(github.com/mrunalp/fileutils) 251 BuildRequires: golang(github.com/opencontainers/go-digest) 252 BuildRequires: golang(github.com/opencontainers/image-spec/specs-go/v1) 253 BuildRequires: golang(github.com/opencontainers/runc/libcontainer) 254 BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) 255 BuildRequires: golang(github.com/opencontainers/runtime-tools/generate) 256 BuildRequires: golang(github.com/opencontainers/selinux/go-selinux) 257 BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) 258 BuildRequires: golang(github.com/pkg/errors) 259 BuildRequires: golang(github.com/sirupsen/logrus) 260 BuildRequires: golang(golang.org/x/crypto/ssh/terminal) 261 BuildRequires: golang(golang.org/x/sys/unix) 262 BuildRequires: golang(k8s.io/apimachinery/pkg/util/wait) 263 BuildRequires: golang(k8s.io/client-go/tools/remotecommand) 264 BuildRequires: golang(k8s.io/kubernetes/pkg/kubelet/container) 265 %endif 266 267 Requires: golang(github.com/BurntSushi/toml) 268 Requires: golang(github.com/containerd/cgroups) 269 Requires: golang(github.com/containernetworking/plugins/pkg/ns) 270 Requires: golang(github.com/containers/image/copy) 271 Requires: golang(github.com/containers/image/directory) 272 Requires: golang(github.com/containers/image/docker) 273 Requires: golang(github.com/containers/image/docker/archive) 274 Requires: golang(github.com/containers/image/docker/reference) 275 Requires: golang(github.com/containers/image/docker/tarfile) 276 Requires: golang(github.com/containers/image/image) 277 Requires: golang(github.com/containers/image/oci/archive) 278 Requires: golang(github.com/containers/image/pkg/strslice) 279 Requires: golang(github.com/containers/image/pkg/sysregistriesv2) 280 Requires: golang(github.com/containers/image/signature) 281 Requires: golang(github.com/containers/image/storage) 282 Requires: golang(github.com/containers/image/tarball) 283 Requires: golang(github.com/containers/image/transports/alltransports) 284 Requires: golang(github.com/containers/image/types) 285 Requires: golang(github.com/containers/storage) 286 Requires: golang(github.com/containers/storage/pkg/archive) 287 Requires: golang(github.com/containers/storage/pkg/idtools) 288 Requires: golang(github.com/containers/storage/pkg/reexec) 289 Requires: golang(github.com/coreos/go-systemd/dbus) 290 Requires: golang(github.com/cri-o/ocicni/pkg/ocicni) 291 Requires: golang(github.com/docker/distribution/reference) 292 Requires: golang(github.com/docker/docker/daemon/caps) 293 Requires: golang(github.com/docker/docker/pkg/mount) 294 Requires: golang(github.com/docker/docker/pkg/namesgenerator) 295 Requires: golang(github.com/docker/docker/pkg/stringid) 296 Requires: golang(github.com/docker/docker/pkg/system) 297 Requires: golang(github.com/docker/docker/pkg/term) 298 Requires: golang(github.com/docker/docker/pkg/truncindex) 299 Requires: golang(github.com/ghodss/yaml) 300 Requires: golang(github.com/godbus/dbus) 301 Requires: golang(github.com/mattn/go-sqlite3) 302 Requires: golang(github.com/mrunalp/fileutils) 303 Requires: golang(github.com/opencontainers/go-digest) 304 Requires: golang(github.com/opencontainers/image-spec/specs-go/v1) 305 Requires: golang(github.com/opencontainers/runc/libcontainer) 306 Requires: golang(github.com/opencontainers/runtime-spec/specs-go) 307 Requires: golang(github.com/opencontainers/runtime-tools/generate) 308 Requires: golang(github.com/opencontainers/selinux/go-selinux) 309 Requires: golang(github.com/opencontainers/selinux/go-selinux/label) 310 Requires: golang(github.com/pkg/errors) 311 Requires: golang(github.com/sirupsen/logrus) 312 Requires: golang(golang.org/x/crypto/ssh/terminal) 313 Requires: golang(golang.org/x/sys/unix) 314 Requires: golang(k8s.io/apimachinery/pkg/util/wait) 315 Requires: golang(k8s.io/client-go/tools/remotecommand) 316 Requires: golang(k8s.io/kubernetes/pkg/kubelet/container) 317 318 Provides: golang(%{import_path}/cmd/%{name}/docker) = %{version}-%{release} 319 Provides: golang(%{import_path}/cmd/%{name}/formats) = %{version}-%{release} 320 Provides: golang(%{import_path}/libkpod) = %{version}-%{release} 321 Provides: golang(%{import_path}/libpod) = %{version}-%{release} 322 Provides: golang(%{import_path}/libpod/common) = %{version}-%{release} 323 Provides: golang(%{import_path}/libpod/driver) = %{version}-%{release} 324 Provides: golang(%{import_path}/libpod/layers) = %{version}-%{release} 325 Provides: golang(%{import_path}/pkg/annotations) = %{version}-%{release} 326 Provides: golang(%{import_path}/pkg/chrootuser) = %{version}-%{release} 327 Provides: golang(%{import_path}/pkg/registrar) = %{version}-%{release} 328 Provides: golang(%{import_path}/pkg/storage) = %{version}-%{release} 329 Provides: golang(%{import_path}/utils) = %{version}-%{release} 330 331 %description -n libpod-devel 332 %{summary} 333 334 This package contains library source intended for 335 building other packages which use import path with 336 %{import_path} prefix. 337 %endif 338 339 %if 0%{?with_unit_test} && 0%{?with_devel} 340 %package unit-test-devel 341 Summary: Unit tests for %{name} package 342 %if 0%{?with_check} 343 #Here comes all BuildRequires: PACKAGE the unit tests 344 #in %%check section need for running 345 %endif 346 347 # test subpackage tests code from devel subpackage 348 Requires: %{name}-devel = %{version}-%{release} 349 350 %if 0%{?with_check} && ! 0%{?with_bundled} 351 BuildRequires: golang(github.com/stretchr/testify/assert) 352 BuildRequires: golang(github.com/urfave/cli) 353 %endif 354 355 Requires: golang(github.com/stretchr/testify/assert) 356 Requires: golang(github.com/urfave/cli) 357 358 %description unit-test-devel 359 %{summary} 360 libpod provides a library for applications looking to use the Container Pod concept popularized by Kubernetes. 361 362 This package contains unit tests for project 363 providing packages with %{import_path} prefix. 364 %endif 365 366 %if %{with doc} 367 %package manpages 368 Summary: Man pages for the %{name} commands 369 BuildArch: noarch 370 371 %description manpages 372 Man pages for the %{name} commands 373 %endif 374 375 %prep 376 %autosetup -Sgit -n %{repo}-%{shortcommit0} 377 378 # untar conmon 379 tar zxf %{SOURCE1} 380 381 %build 382 mkdir _build 383 pushd _build 384 mkdir -p src/%{provider}.%{provider_tld}/%{project} 385 ln -s ../../../../ src/%{import_path} 386 popd 387 ln -s vendor src 388 export GO111MODULE=on 389 export GOPATH=$(pwd)/_build:$(pwd):$(pwd):%{gopath} 390 export BUILDTAGS="selinux seccomp systemd $(%{hackdir}/hack/btrfs_installed_tag.sh) $(%{hackdir}/hack/btrfs_tag.sh) $(%{hackdir}/hack/libdm_tag.sh) exclude_graphdriver_devicemapper" 391 392 %if %{with doc} 393 BUILDTAGS=$BUILDTAGS make binaries docs 394 %else 395 BUILDTAGS=$BUILDTAGS make binaries 396 %endif 397 # build conmon 398 pushd conmon 399 400 mkdir _output 401 pushd _output 402 mkdir -p src/%{provider}.%{provider_tld}/{containers,opencontainers} 403 ln -s $(dirs +1 -l) src/%{import_path_conmon} 404 popd 405 406 export BUILDTAGS="selinux seccomp systemd $(%{hackdir}/hack/btrfs_installed_tag.sh) $(%{hackdir}/hack/btrfs_tag.sh)" 407 BUILDTAGS=$BUILDTAGS make 408 popd 409 410 %install 411 install -dp %{buildroot}%{_unitdir} 412 install -dp %{buildroot}%{_usr}/lib/systemd/user 413 PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} \ 414 install.bin-nobuild \ 415 install.remote-nobuild \ 416 %if %{with doc} 417 install.man-nobuild \ 418 %endif 419 install.cni \ 420 install.systemd \ 421 install.completions 422 423 mv pkg/hooks/README.md pkg/hooks/README-hooks.md 424 425 # install conmon 426 install -dp %{buildroot}%{_libexecdir}/%{name} 427 install -p -m 755 conmon/bin/conmon %{buildroot}%{_libexecdir}/%{name} 428 429 # source codes for building projects 430 %if 0%{?with_devel} 431 install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ 432 433 echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list 434 # find all *.go but no *_test.go files and generate devel.file-list 435 for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do 436 dirprefix=$(dirname $file) 437 install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix 438 cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file 439 echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list 440 441 while [ "$dirprefix" != "." ]; do 442 echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list 443 dirprefix=$(dirname $dirprefix) 444 done 445 done 446 %endif 447 448 # testing files for this project 449 %if 0%{?with_unit_test} && 0%{?with_devel} 450 install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ 451 # find all *_test.go files and generate unit-test-devel.file-list 452 for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do 453 dirprefix=$(dirname $file) 454 install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix 455 cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file 456 echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list 457 458 while [ "$dirprefix" != "." ]; do 459 echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list 460 dirprefix=$(dirname $dirprefix) 461 done 462 done 463 %endif 464 465 %if 0%{?with_devel} 466 sort -u -o devel.file-list devel.file-list 467 %endif 468 469 %check 470 %if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} 471 %if ! 0%{?with_bundled} 472 export GOPATH=%{buildroot}/%{gopath}:%{gopath} 473 %else 474 # Since we aren't packaging up the vendor directory we need to link 475 # back to it somehow. Hack it up so that we can add the vendor 476 # directory from BUILD dir as a gopath to be searched when executing 477 # tests from the BUILDROOT dir. 478 ln -s ./ ./vendor/src # ./vendor/src -> ./vendor 479 480 export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} 481 %endif 482 483 %if ! 0%{?gotest:1} 484 %global gotest go test 485 %endif 486 487 %gotest %{import_path}/cmd/%{name} 488 %gotest %{import_path}/libkpod 489 %gotest %{import_path}/libpod 490 %gotest %{import_path}/pkg/registrar 491 %endif 492 493 #define license tag if not already defined 494 %{!?_licensedir:%global license %doc} 495 496 %files 497 %license LICENSE 498 %doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md CODE-OF-CONDUCT.md transfer.md 499 %{_bindir}/%{name} 500 %{_datadir}/bash-completion/completions/* 501 %{_datadir}/zsh/site-functions/* 502 %{_datadir}/fish/vendor_completions.d/* 503 %{_libexecdir}/%{name}/conmon 504 %config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist 505 %{_unitdir}/podman-auto-update.service 506 %{_unitdir}/podman-auto-update.timer 507 %{_unitdir}/podman.service 508 %{_unitdir}/podman.socket 509 %{_usr}/lib/systemd/user/podman.service 510 %{_usr}/lib/systemd/user/podman.socket 511 %{_usr}/lib/systemd/user/podman-auto-update.service 512 %{_usr}/lib/systemd/user/podman-auto-update.timer 513 %{_usr}/lib/tmpfiles.d/podman.conf 514 515 %if 0%{?with_devel} 516 %files -n libpod-devel -f devel.file-list 517 %license LICENSE 518 %doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md CODE-OF-CONDUCT.md transfer.md 519 %dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} 520 %endif 521 522 %if 0%{?with_unit_test} && 0%{?with_devel} 523 %files unit-test-devel -f unit-test-devel.file-list 524 %license LICENSE 525 %doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md CODE-OF-CONDUCT.md transfer.md 526 %endif 527 528 %files -n podman-remote 529 %license LICENSE 530 %doc README.md CONTRIBUTING.md pkg/hooks/README-hooks.md install.md CODE-OF-CONDUCT.md transfer.md 531 %{_bindir}/%{name}-remote 532 533 %if %{with doc} 534 %files manpages 535 %{_mandir}/man1/*.1* 536 %{_mandir}/man5/*.5* 537 %endif 538 539 %changelog 540 * Sat Aug 4 2018 Dan Walsh <dwalsh@redhat.com> - 0.8.1-1.git6b4ab2a 541 - Bump to v0.8.1 542 543 * Sun Jul 29 2018 Lokesh Mandvekar (Bot) <lsm5+bot@fedoraproject.org> - 0.8.10.8.1-1.dev.git1a439f9.dev.git5a4e590.dev.git433cbd51 544 - bump to 0.8.1 545 - autobuilt 433cbd5