]> git.pld-linux.org Git - packages/packer.git/blame - packer.spec
up to 1.5.4; rel 1
[packages/packer.git] / packer.spec
CommitLineData
fcb3dbe8
ER
1Summary: Tool for creating identical machine images for multiple platforms from a single source configuration
2Name: packer
19fd55a1 3Version: 1.5.4
4Release: 1
fcb3dbe8
ER
5License: MPL 2.0
6Group: Applications/Emulators
19fd55a1 7Source0: https://github.com/hashicorp/packer/archive/v%{version}.tar.gz
8# Source0-md5: 8c11adb7aa529793675a075dc9db40b0
fcb3dbe8 9URL: http://www.packer.io/
fcb3dbe8 10BuildRequires: bash
19fd55a1 11BuildRequires: golang >= 1.13
fcb3dbe8
ER
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
19fd55a1 14%define _enable_debug_packages 0
15%define gobuild go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x
fcb3dbe8 16
19fd55a1 17%description
18Packer is an open source tool for creating identical machine images
19for multiple platforms from a single source configuration. Packer is
20lightweight, runs on every major operating system, and is highly
21performant, creating machine images for multiple platforms in
22parallel. Packer does not replace configuration management like Chef
23or Puppet. In fact, when building images, Packer is able to use tools
24like Chef or Puppet to install software onto the image.
25
26A machine image is a single static unit that contains a pre-configured
27operating system and installed software which is used to quickly
28create new running machines. Machine image formats change for each
29platform. Some examples include AMIs for EC2, VMDK/VMX files for
30VMware, OVF exports for VirtualBox, etc.
fcb3dbe8
ER
31
32%prep
33%setup -q
fcb3dbe8
ER
34
35%build
19fd55a1 36%gobuild -mod=vendor -o %{name}-binary
fcb3dbe8
ER
37
38%install
39rm -rf $RPM_BUILD_ROOT
40install -d $RPM_BUILD_ROOT%{_bindir}
19fd55a1 41cp -a %{name}-binary $RPM_BUILD_ROOT%{_bindir}/%{name}
fcb3dbe8
ER
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
19fd55a1 48%doc README.md CHANGELOG.md LICENSE
fcb3dbe8 49%attr(755,root,root) %{_bindir}/packer
This page took 0.078505 seconds and 4 git commands to generate.