upstream/openstack/python-keystoneclient/centos/meta_patches/0003-meta-TiS-remote-client-sdk-patch.patch
Dean Troyer 9d3ca49387 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:37:19 -07:00

48 lines
1.3 KiB
Diff

diff --git a/SPECS/python-keystoneclient.spec b/SPECS/python-keystoneclient.spec
index 2844d30..edd6720 100644
--- a/SPECS/python-keystoneclient.spec
+++ b/SPECS/python-keystoneclient.spec
@@ -167,6 +167,12 @@ BuildRequires: python-openstackdocstheme
%description doc
Documentation for the keystoneclient module
+%package sdk
+Summary: SDK files for %{name}
+
+%description sdk
+Contains SDK files for %{name} package
+
%prep
%autosetup -n %{name}-%{upstream_version} -S git
@@ -194,6 +200,10 @@ rm -rf {test-,}requirements.txt
# Fix hidden-file-or-dir warnings
rm -fr doc/build/html/.{doctrees,buildinfo}
+# 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}
+
%check
%{__python2} setup.py test
@@ -202,6 +212,7 @@ rm -fr .testrepository
%{__python3} setup.py test
%endif
+
%files -n python2-keystoneclient
%license LICENSE
%doc README.rst
@@ -232,6 +243,10 @@ rm -fr .testrepository
%{python3_sitelib}/keystoneclient/tests
%endif
+%files sdk
+/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz
+
+
%changelog
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 1:3.13.0-1
- Update to 3.13.0