[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
This commit is contained in:
Vladimir Kozhukalov 2015-10-15 17:18:13 +03:00
parent 6dd82ee8be
commit 6b65b8e4e6
1 changed files with 40 additions and 0 deletions

View File

@ -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)