From 6b65b8e4e6029f085b235141c0f8bd5d8629eef6 Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Thu, 15 Oct 2015 17:18:13 +0300 Subject: [PATCH] [shotgun] Create separate rpm spec We are going to move shotgun directory into a separate repository. This patch creates rpm spec in shotgun directory. Related-Bug: #1506894 Change-Id: Ib63f8b16ae78ba5eb47312fb98c92172b77e0153 --- shotgun/specs/shotgun.spec | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 shotgun/specs/shotgun.spec diff --git a/shotgun/specs/shotgun.spec b/shotgun/specs/shotgun.spec new file mode 100644 index 0000000000..bdc578bde6 --- /dev/null +++ b/shotgun/specs/shotgun.spec @@ -0,0 +1,40 @@ +%define name shotgun +%{!?version: %define version 8.0.0} +%{!?release: %define release 1} + +Name: %{name} +Summary: Shotgun package +Version: %{version} +Release: %{release} +URL: http://mirantis.com +License: Apache +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +Prefix: %{_prefix} +BuildArch: noarch +Requires: postgresql +Requires: python-fabric >= 1.10.0 +Requires: python-argparse +Requires: tar +Requires: gzip +Requires: bzip2 +Requires: openssh-clients +Requires: xz + +%description +Shotgun package. + +%prep +%setup -cq -n %{name}-%{version} + +%build +cd %{_builddir}/%{name}-%{version}/shotgun && python setup.py build + +%install +cd %{_builddir}/%{name}-%{version}/shotgun && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/shotgun/INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{_builddir}/%{name}-%{version}/shotgun/INSTALLED_FILES +%defattr(-,root,root)