upstream/openstack/python-openstackclient/centos/meta_patches/0002-spec-remote-clients-sd...

46 lines
1.3 KiB
Diff

diff --git a/SPECS/python-openstackclient.spec b/SPECS/python-openstackclient.spec
index 2c25c75..874e8a4 100644
--- a/SPECS/python-openstackclient.spec
+++ b/SPECS/python-openstackclient.spec
@@ -162,6 +162,13 @@ It is a thin wrapper to the stock python-*client modules that implement the
actual REST API client actions.
%endif
+%package sdk
+Summary: SDK files for %{name}
+
+%description sdk
+Contains SDK files for %{name} package
+
+
%prep
%autosetup -n %{name}-%{upstream_version} -S git
@@ -206,6 +213,12 @@ mv %{buildroot}%{python2_sitelib}/openstackclient/locale %{buildroot}%{_datadir}
rm -rf %{buildroot}%{python3_sitelib}/openstackclient/locale
%endif
+
+# prep SDK package
+mkdir -p %{buildroot}/usr/share/remote-clients/%{name}
+tar zcf %{buildroot}/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz --exclude='.gitignore' --exclude='.gitreview' -C .. %{name}-%{version}
+
+
# Find language files
%find_lang openstackclient --all-name
@@ -242,6 +255,10 @@ rm -rf .testrepository
%{python3_sitelib}/openstackclient
%{python3_sitelib}/*.egg-info
%endif
+
+%files sdk
+/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz
+
%changelog
* Tue Apr 03 2018 RDO <dev@lists.rdoproject.org> 3.12.1-1
- Update to 3.12.1
--
1.8.3.1