1 Summary: System container image builder for LXC and LXD
6 Group: Applications/System
7 Source0: https://linuxcontainers.org/downloads/distrobuilder/%{name}-%{version}.tar.gz
8 # Source0-md5: 24e2202ce18dbe16e8f653b39389d1be
9 URL: http://linuxcontainers.org/distrobuilder/
10 BuildRequires: rpmbuild(macros) >= 1.228
13 ExclusiveArch: %{ix86} %{x8664} %{arm}
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _enable_debug_packages 0
17 %define goinstall go install -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x
20 Distrobuilder builds images based on image definition is a YAML
21 document which describes the source of the image, its package manager,
22 what packages to install/remove for specific image variants, os
23 releases and architectures, as well as additional files to generate
24 and arbitrary actions to execute as part of the image build process.
26 The output is either a plain root filesystem, a LXD image or a LXC
33 export GOPATH=$(pwd)/_dist
34 export GOBIN=$GOPATH/bin
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_bindir}
41 install _dist/bin/distrobuilder $RPM_BUILD_ROOT%{_bindir}/
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(755,root,root) %{_bindir}/%{name}