From efad3d978cead64e8f7f4ba2b26b278ed0f6c131 Mon Sep 17 00:00:00 2001 From: alexz Date: Mon, 22 Feb 2016 14:21:31 +0200 Subject: [PATCH] Add rpm spec file for solar Change-Id: If87d1e3fee22d4bcab87b279a583dee6102fd0b0 --- specs/solar.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 specs/solar.spec diff --git a/specs/solar.spec b/specs/solar.spec new file mode 100644 index 00000000..c0f870e4 --- /dev/null +++ b/specs/solar.spec @@ -0,0 +1,63 @@ +%define name solar +%{!?version: %define version 0.3.0} +%{!?release: %define release 1} + +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{version}.tar.gz +Summary: Solar package +URL: http://mirantis.com +License: Apache +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +Prefix: %{_prefix} +BuildRequires: git +BuildRequires: python-setuptools +BuildRequires: python-pbr +BuildArch: noarch + +Requires: ansible >= 2.0 +Requires: python +Requires: python-fabric >= 1.10.2 +Requires: python-bunch +Requires: python-click >= 6 +Requires: python-dictdiffer >= 0.4.0 +Requires: python-enum34 >= 1.0.4 +Requires: python-gevent >= 1.0 +Requires: python-jinja2 >= 2.7.3 +Requires: python-jsonschema >= 2.3 +Requires: python-mock +Requires: python-networkx >= 1.10 +Requires: python-pbr +Requires: python-ply +Requires: python-psycopg2 >= 2.5 +Requires: python-requests +Requires: python-six >= 1.9.0 +Requires: python-stevedore +Requires: python-wrapt +Requires: PyYAML +Requires: python-psycogreen +Requires: python-pydotplus +Requires: python-semantic_version >= 2.3.1 +Requires: python-pyzmq +Requires: python-zerorpc >= 0.5.2 + + +%description +Solar is a resource manager and orchestration engine for distributed systems. + +%prep +%setup -cq -n %{name}-%{version} + +%build +cd %{_builddir}/%{name}-%{version} && PBR_VERSION=%{version} python setup.py build + +%install +cd %{_builddir}/%{name}-%{version} && PBR_VERSION=%{version} python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{_builddir}/%{name}-%{version}/INSTALLED_FILES +