
When building the stx-rook-ceph RPM for rook-ceph-apps the helm plugins are installed in a location that could be populated with other app plugins if their spec files are not properly set up. Adjust the spec to provide an app specific location for the plugins to ensure that no other app plugins are included in the application tarball. In addition, sync the version of app with the plugins so that debugging of the application lifecycle operations in the logs are easier during application updates. Partial-Bug: #1920066 Signed-off-by: Robert Church <robert.church@windriver.com> Change-Id: I774a31784450592e99caab3d991892642938f1ba
58 lines
1.2 KiB
RPMSpec
58 lines
1.2 KiB
RPMSpec
%global app_name rook-ceph-apps
|
|
%global pypi_name k8sapp-rook
|
|
%global sname k8sapp_rook
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: StarlingX sysinv extensions: Rook Ceph K8S app
|
|
|
|
License: Apache-2.0
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-pbr
|
|
BuildRequires: python2-pip
|
|
BuildRequires: python2-wheel
|
|
|
|
%description
|
|
StarlingX sysinv extensions: Rook Ceph K8S app
|
|
|
|
%prep
|
|
%setup
|
|
# Remove bundled egg-info
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
%build
|
|
export PBR_VERSION=%{version}
|
|
%{__python2} setup.py build
|
|
|
|
%py2_build_wheel
|
|
|
|
%install
|
|
export PBR_VERSION=%{version}.%{tis_patch_ver}
|
|
export SKIP_PIP_INSTALL=1
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
mkdir -p ${RPM_BUILD_ROOT}/plugins/%{app_name}
|
|
install -m 644 dist/*.whl ${RPM_BUILD_ROOT}/plugins/%{app_name}/
|
|
|
|
%files
|
|
%{python2_sitelib}/%{sname}
|
|
%{python2_sitelib}/%{sname}-*.egg-info
|
|
|
|
%package wheels
|
|
Summary: %{name} wheels
|
|
|
|
%description wheels
|
|
Contains python wheels for %{name}
|
|
|
|
%files wheels
|
|
/plugins/*
|
|
|
|
|
|
%changelog
|
|
* Tue Jun 2 2020 Martin Chen <haochuan.z.chen@intel.com>
|
|
- Initial version
|