Update sdk to include distributed cloud client.

Change-Id: Ieca2ef5dfab45817176442cf3e497c5e5018d311
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
This commit is contained in:
Kevin Smith 2018-05-03 20:47:37 -04:00 committed by Tyler Smith
parent bc7abb4399
commit 89afe7500b

View File

@ -42,6 +42,7 @@ BuildRequires: python-sphinx
BuildRequires: python-sphinxcontrib-httpdomain BuildRequires: python-sphinxcontrib-httpdomain
BuildRequires: pyOpenSSL BuildRequires: pyOpenSSL
BuildRequires: systemd BuildRequires: systemd
BuildRequires: git
# Required to compile translation files # Required to compile translation files
BuildRequires: python-babel BuildRequires: python-babel
@ -58,8 +59,14 @@ Summary: DC Manager Client
%description dcmanagerclient %description dcmanagerclient
Distributed Cloud Manager Client Distributed Cloud Manager Client
%package sdk
Summary: SDK files for %{pypi_name}
%description sdk
Contains SDK files for %{pypi_name} package
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version} -S git
# Remove the requirements file so that pbr hooks don't add it # Remove the requirements file so that pbr hooks don't add it
# to distutils requires_dist config # to distutils requires_dist config
@ -73,9 +80,17 @@ export PBR_VERSION=%{version}
export PBR_VERSION=%{version} export PBR_VERSION=%{version}
%{__python2} setup.py install --skip-build --root %{buildroot} %{__python2} setup.py install --skip-build --root %{buildroot}
# prep SDK package
mkdir -p %{buildroot}/usr/share/remote-clients
tar zcf %{buildroot}/usr/share/remote-clients/%{pypi_name}-%{version}.tgz --exclude='.gitignore' --exclude='.gitreview' -C .. --transform="s/%{name}-%{version}/%{pypi_name}-%{version}/" %{name}-%{version}
%files dcmanagerclient %files dcmanagerclient
%license LICENSE %license LICENSE
%{python2_sitelib}/dcmanagerclient* %{python2_sitelib}/dcmanagerclient*
%{python2_sitelib}/distributedcloud_client-*.egg-info %{python2_sitelib}/distributedcloud_client-*.egg-info
%exclude %{python2_sitelib}/dcmanagerclient/tests %exclude %{python2_sitelib}/dcmanagerclient/tests
%{_bindir}/dcmanager* %{_bindir}/dcmanager*
%files sdk
/usr/share/remote-clients/%{pypi_name}-%{version}.tgz