Skip to content

Commit

Permalink
Add spec file for contrail-vcenter-manager
Browse files Browse the repository at this point in the history
Change-Id: Ib6efd411da207b1fbe8ed2e996bb66d300acd967
Closes-Bug: #1773396
(cherry picked from commit 86a323d)
  • Loading branch information
magdalena-zaremba committed Jun 8, 2018
1 parent 961f513 commit f8d6d3e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions rpm/contrail-vcenter-manager/contrail-vcenter-manager.spec
@@ -0,0 +1,45 @@
%if 0%{?_buildTag:1}
%define _relstr %{_buildTag}
%else
%define _relstr %(date -u +%y%m%d%H%M)
%endif
%if 0%{?_srcVer:1}
%define _verstr %{_srcVer}
%else
%define _verstr 1
%endif

Name: contrail-vcenter-manager
Version: %{_verstr}
Release: %{_relstr}%{?dist}
Summary: Contrail vCenter Manager

Group: Applications/System
License: Commercial
URL: http://www.juniper.net/
Vendor: Juniper Networks Inc

BuildArch: noarch
BuildRequires: python-setuptools

Requires: python-contrail-vrouter-api
Requires: python-contrail
Requires: python-gevent
Requires: PyYAML
Requires: python2-pyvmomi
Requires: python-ipaddress

%description
Contrail vCenter Manager package

%install
pushd %{_sbtop}/vcenter-manager
%{__python} setup.py install --root=%{buildroot}
popd

%files
%defattr(-,root,root,-)
%{python_sitelib}/cvm*
%{python_sitelib}/contrail_vcenter_manager*
%exclude %{python_sitelib}/tests*

0 comments on commit f8d6d3e

Please sign in to comment.