diff --git a/openstack/vmware-nsx-tempest-plugin/vmware-nsx-tempest-plugin.spec.j2 b/openstack/vmware-nsx-tempest-plugin/vmware-nsx-tempest-plugin.spec.j2 new file mode 100644 index 000000000..f74228009 --- /dev/null +++ b/openstack/vmware-nsx-tempest-plugin/vmware-nsx-tempest-plugin.spec.j2 @@ -0,0 +1,43 @@ +{% set pypi_name = 'vmware-nsx-tempest-plugin' %} +{% set rpm_release = '1' %} +{% set source=fetch_source('https://tarballs.openstack.org/vmware-nsx-tempest-plugin/vmware-nsx-tempest-plugin-master.tar.gz') %} +{% set upstream_version = upstream_version() %} + +Name: {{ py2name(py_versions='py3') }} +Version: {{ py2rpmversion() }} +Release: {{ py2rpmrelease() }} +Summary: Tempest plugin for the vmware-nsx project +License: {{ license('Apache-2.0') }} +Group: Development/Languages/Python +URL: https://opendev.org/x/{{ pypi_name }} +Source0: {{ source|basename }} +BuildRequires: fdupes +BuildRequires: openstack-macros +BuildRequires: {{ py3('pbr') }} +Requires: {{ py2pkg('tempest') }} +Requires: {{ py3('neutron-lib') }} +Requires: {{ py3('pbr') }} +BuildArch: noarch + +%description +This package contains Tempest tests to cover the vmware-nsx project. +Additionally it provides a plugin to automatically load these tests into Tempest. + +%prep +%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }} +%py_req_cleanup + +%build +%{py3_build} + +%install +%{py3_install} +%fdupes %{buildroot}%{python3_sitelib} + +%files +%license LICENSE +%doc README.rst +%{python3_sitelib}/vmware_nsx_tempest_plugin +%{python3_sitelib}/*.egg-info + +%changelog