ca527c2276
Packages defined in a spec with no files do not result in an RPM produced by the build. On a rebuild, the build tools scan the spec and sees the package defined but does not find a corresponding RPM, and so flags the package for a rebuild as a result. This commit removes the empty package definition from the spec. Partial-Bug: 1910439 Signed-off-by: Don Penney <don.penney@windriver.com> Change-Id: Ie1f18b1592f8187900624d993434ba04b23cbcff
57 lines
1.2 KiB
RPMSpec
57 lines
1.2 KiB
RPMSpec
%global pypi_name k8sapp-openstack
|
|
%global sname k8sapp_openstack
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: StarlingX sysinv extensions: Openstack 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: Openstack 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
|
|
install -m 644 dist/*.whl ${RPM_BUILD_ROOT}/plugins/
|
|
|
|
%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
|
|
* Wed Sep 20 2019 Robert Church <robert.church@windriver.com>
|
|
- Initial version
|