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
%global import_path github.com/coreos/flannel %global commit d3eea7f5cdb895965394eb5f34645cdc3b535d5b #%%global shortcommit %(c=%commit; echo ${c:0:7}) %global __find_debuginfo_files %nil %global _unpackaged_files_terminate_build 1 %set_verify_elf_method unresolved=no %add_debuginfo_skiplist %_bindir %brp_strip_none %_bindir/* %define _libexecdir /usr/libexec Name: flannel Version: 0.11.0 Release: alt1 Summary: flannel is a network fabric for containers Group: Development/Other License: ASL 2.0 Url: https://%import_path Source: %name-%version.tar Source1: flanneld.sysconfig Source2: flanneld.service Source3: flannel-docker.conf Source4: flannel-tmpfiles.conf ExclusiveArch: %go_arches BuildRequires(pre): rpm-build-golang BuildRequires: /proc %description Flannel is a simple and easy way to configure a layer 3 network fabric designed for Kubernetes. %prep %setup -q %build gofmt -w -r "x -> \"%{version}\"" version/version.go export BUILDDIR="$PWD" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" #%golang_prepare mkdir -p src/github.com/coreos ln -s ../../../ src/github.com/coreos/flannel %golang_build "src/%import_path" %install install -D -p -m 755 bin/flannel %buildroot%_sbindir/flanneld install -D -p -m 644 %SOURCE1 %buildroot%_sysconfdir/sysconfig/flanneld install -D -p -m 644 %SOURCE2 %buildroot%_unitdir/flanneld.service install -D -p -m 644 %SOURCE3 %buildroot%_unitdir/docker.service.d/flannel.conf install -D -p -m 755 dist/mk-docker-opts.sh %buildroot%_libexecdir/flannel/mk-docker-opts.sh install -D -p -m 0755 %SOURCE4 %buildroot%_tmpfilesdir/%name.conf %files %doc LICENSE README.md Documentation %_sbindir/flanneld %_unitdir/flanneld.service %_unitdir/docker.service.d/flannel.conf %dir %_libexecdir/flannel %_libexecdir/flannel/mk-docker-opts.sh %config(noreplace) %_sysconfdir/sysconfig/flanneld %_tmpfilesdir/%name.conf %changelog * Mon Jul 15 2019 Alexey Shabalin <shaba@altlinux.org> 0.11.0-alt1 - 0.11.0 * Sat Jun 22 2019 Igor Vlasenko <viy@altlinux.ru> 0.10.0-alt3 - NMU: remove rpm-build-ubt from BR: * Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 0.10.0-alt2 - NMU: remove %ubt from release * Sun May 13 2018 Alexey Shabalin <shaba@altlinux.ru> 0.10.0-alt1%ubt - Initial package