forked from phrawzty/packer-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpacker.spec
More file actions
47 lines (39 loc) · 1.42 KB
/
Copy pathpacker.spec
File metadata and controls
47 lines (39 loc) · 1.42 KB
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
Name: packer
Version: 0.10.1
Release: 1%{?dist}
Summary: Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
Group: Applications/System
License: MPLv2.0
URL: https://packer.io/
Source0: https://releases.hashicorp.com/%{name}/%{version}/%{name}_%{version}_linux_amd64.zip
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%define _prefix /usr/local
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 7
%endif
%description
Packer is a tool for creating identical machine images for multiple platforms
from a single source configuration.
Out of the box Packer comes with support to build images for Amazon EC2,
DigitalOcean, Google Compute Engine, QEMU, VirtualBox, VMware, and more.
Support for more platforms is on the way, and anyone can add new platforms via
plugins.
%prep
%setup -q -c
%install
mkdir -p %{buildroot}/%{_bindir}
cp %{name}* %{buildroot}/%{_bindir}
ln -s %{name} %{buildroot}/%{_bindir}/%{name}-io
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%attr(755, root, root) %{_bindir}/%{name}*
%doc
%changelog
* Mon Jun 20 2016 Aaron Burt <aaron.burt@upsight.com>
- v0.10.1
- Source URL -> Hashicorp (Packer authors)
- Force _prefix to /usr/local
- Symlink to packer-io to mantain compatibility with earlier RPM
* Wed Apr 29 2015 dan phrawzty <phrawzty@mozilla.com>
- init v0.7.5