-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial-Bug: 1610000 Change-Id: I2b74aef61890c628a61b471e462e78fadfff0306
- Loading branch information
1 parent
671ea0c
commit 00592fa
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# view contents of rpm file: rpm -qlp <filename>.rpm | ||
|
||
%define _contrailopt /opt/contrail | ||
|
||
%if 0%{?_buildTag:1} | ||
%define _relstr %{_buildTag} | ||
%else | ||
%define _relstr %(date -u +%y%m%d%H%M) | ||
%endif | ||
%{echo: "Building release %{_relstr}\n"} | ||
%if 0%{?_fileList:1} | ||
%define _flist %{_fileList} | ||
%else | ||
%define _flist None | ||
%endif | ||
%if 0%{?_srcVer:1} | ||
%define _verstr %{_srcVer} | ||
%else | ||
%define _verstr 1 | ||
%endif | ||
%if 0%{?_skuTag:1} | ||
%define _sku %{_skuTag} | ||
%else | ||
%define _sku None | ||
%endif | ||
|
||
|
||
Name: contrail-puppet | ||
Version: %{_verstr} | ||
Release: %{_relstr}%{?dist} | ||
Summary: Contrail Puppet Code%{?_gitVer} | ||
BuildArch: noarch | ||
|
||
Group: Applications/System | ||
License: Commercial | ||
URL: http://www.juniper.net/ | ||
Vendor: Juniper Networks Inc | ||
|
||
|
||
|
||
%description | ||
Contrail Puppet code for Server Manager | ||
|
||
%install | ||
|
||
# Setup directories | ||
rm -rf %{buildroot} | ||
install -d -m 755 %{buildroot}%{_contrailopt} | ||
install -d -m 755 %{buildroot}%{_contrailopt}/puppet | ||
|
||
# Install puppet manifests | ||
tar -cvzf %{_builddir}/../build/contrail-puppet-manifest.tgz -C %{_builddir}/../tools/puppet . | ||
install -p -m 755 %{_builddir}/../build/contrail-puppet-manifest.tgz %{buildroot}%{_contrailopt}/puppet/contrail-puppet-manifest.tgz | ||
|
||
|
||
%files | ||
%defattr(-, root, root) | ||
%{_contrailopt}/puppet/contrail-puppet-manifest.tgz | ||
|
||
%changelog | ||
* Thu Aug 4 2016 - npchandran@juniper.net contrail-puppet | ||
- Adding contrail-puppet rpm package for Opencontrail |