Remove CentOS/OpenSUSE build support
StarlingX stopped supporting CentOS builds in the after release 7.0. This update will strip CentOS from our code base. It will also remove references to the failed OpenSUSE feature as well. Story: 2011110 Task: 49944 Change-Id: I8cd4e23ab83f2fe064fa1f88553eb32a69a67265 Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
SRC_DIR="cgts-client"
|
||||
TIS_PATCH_VER=PKG_GITREVCOUNT
|
||||
@@ -1,83 +0,0 @@
|
||||
Summary: System Client and CLI
|
||||
Name: cgts-client
|
||||
Version: 1.0
|
||||
Release: %{tis_patch_ver}%{?_tis_dist}
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
Packager: Wind River <info@windriver.com>
|
||||
URL: unknown
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
Requires: python-httplib2
|
||||
Requires: python-prettytable
|
||||
Requires: bash-completion
|
||||
Requires: python-dateutil
|
||||
Requires: python-keystoneclient
|
||||
Requires: python2-oslo-i18n
|
||||
Requires: python2-oslo-serialization
|
||||
Requires: python2-oslo-utils
|
||||
Requires: requests-toolbelt
|
||||
|
||||
# Needed for python2 and python3 compatible
|
||||
Requires: python-six
|
||||
|
||||
%description
|
||||
System Client and CLI
|
||||
|
||||
%define local_bindir /usr/bin/
|
||||
%define local_etc_bash_completiond /etc/bash_completion.d/
|
||||
%define pythonroot /usr/lib64/python2.7/site-packages
|
||||
%define debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -S git
|
||||
|
||||
# Remove bundled egg-info
|
||||
rm -rf *.egg-info
|
||||
|
||||
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py build
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
|
||||
--install-lib=%{pythonroot} \
|
||||
--prefix=/usr \
|
||||
--install-data=/usr/share \
|
||||
--single-version-externally-managed
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
install -d -m 755 %{buildroot}%{local_etc_bash_completiond}
|
||||
install -p -D -m 664 tools/system.bash_completion %{buildroot}%{local_etc_bash_completiond}/system.bash_completion
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# Note: Package name is cgts-client but the import name is cgtsclient so
|
||||
# can't use '%{name}'.
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{local_bindir}/*
|
||||
%{local_etc_bash_completiond}/*
|
||||
%{pythonroot}/cgtsclient
|
||||
%{pythonroot}/cgtsclient-%{version}*.egg-info
|
||||
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
@@ -1,5 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 20:18:01 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com>
|
||||
|
||||
- Add initial commit for cgts-client
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
setBadness('script-without-shebang', 2)
|
||||
@@ -1,65 +0,0 @@
|
||||
Summary: System Client and CLI
|
||||
Name: cgts-client
|
||||
Version: 1.0.0
|
||||
Release: 2
|
||||
License: Apache-2.0
|
||||
Group: System/Base
|
||||
URL: https://www.starlingx.io
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: fdupes
|
||||
Requires: python-httplib2
|
||||
Requires: python-prettytable
|
||||
Requires: bash-completion
|
||||
Requires: python-keystoneclient
|
||||
Requires: python-dateutil
|
||||
# Needed for python2 and python3 compatible
|
||||
Requires: python-six
|
||||
|
||||
%description
|
||||
System Client and command line interface
|
||||
|
||||
%define local_bindir /usr/bin/
|
||||
%define local_etc_bash_completiond /etc/bash_completion.d/
|
||||
%define pythonroot /usr/lib64/python2.7/site-packages
|
||||
%define debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{version}/%{name}
|
||||
|
||||
# Remove bundled egg-info
|
||||
rm -rf *.egg-info
|
||||
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py install --root=$RPM_BUILD_ROOT \
|
||||
--install-lib=%{pythonroot} \
|
||||
--prefix=/usr \
|
||||
--install-data=/usr/share \
|
||||
--single-version-externally-managed
|
||||
|
||||
install -d -m 755 %{buildroot}%{local_etc_bash_completiond}
|
||||
install -p -D -m 664 tools/system.bash_completion %{buildroot}%{local_etc_bash_completiond}/system.bash_completion
|
||||
%fdupes %{buildroot}%{pythonroot}/cgtsclient-1.0-py2.7.egg-info
|
||||
%fdupes %{buildroot}%{pythonroot}/cgtsclient/
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{local_bindir}/*
|
||||
%{local_etc_bash_completiond}/*
|
||||
%{pythonroot}/cgtsclient
|
||||
%{pythonroot}/cgtsclient-%{version}*.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user