diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-26 12:57:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-26 12:57:12 +0000 |
commit | b5a196cba6ff00279917d467be38fcfe333e0f95 (patch) | |
tree | bcde83c42117298840bd1a8c30b4a9e45047bd1f | |
parent | 2ac6fbc5355d507e966a47d464508b4ac44503e8 (diff) |
automatic import of python-heat-translatoropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-heat-translator.spec | 180 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 182 insertions, 0 deletions
@@ -0,0 +1 @@ +/heat-translator-2.3.0.tar.gz diff --git a/python-heat-translator.spec b/python-heat-translator.spec new file mode 100644 index 0000000..db09b48 --- /dev/null +++ b/python-heat-translator.spec @@ -0,0 +1,180 @@ +%{!?sources_gpg: %{!?dlrn:%global sources_gpg 0} } +%global sources_gpg_sign 0x5d2d1e4fb8d38e6af76c50d53d4fec30cf5ce3da +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} + +%global library heat-translator +%global module translator +%global executable heat-translator +%global with_doc 1 + +%global common_desc \ +OpenStack Heat Translator \ +Heat-Translator is an Openstack command line tool which takes non-Heat \ +templates as an input and produces a Heat Orchestration Template (HOT) which \ +can be deployed by Heat. + +%global common_desc_tests OpenStack Heat Translator + + +Name: python-%{library} +Version: 2.3.0 +Release: 1%{?dist} +Summary: OpenStack Heat Translator +License: ASL 2.0 +URL: http://launchpad.net/%{library}/ + +Source0: https://tarballs.openstack.org/%{library}/%{library}-%{upstream_version}.tar.gz +# Required for tarball sources verification +%if 0%{?sources_gpg} == 1 +Source101: https://tarballs.openstack.org/%{library}/%{library}-%{upstream_version}.tar.gz.asc +Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt +%endif + +BuildArch: noarch + +# Required for tarball sources verification +%if 0%{?sources_gpg} == 1 +BuildRequires: /usr/bin/gpgv2 +BuildRequires: openstack-macros +%endif + +%description +%{common_desc} + +%package -n python3-%{library} +Summary: OpenStack Heat Translator +%{?python_provide:%python_provide python3-%{library}} + +BuildRequires: python3-devel +BuildRequires: python3-pbr +BuildRequires: python3-setuptools +BuildRequires: git-core + +# Test Requirements +BuildRequires: python3-hacking +BuildRequires: python3-fixtures +BuildRequires: python3-oslotest +BuildRequires: python3-subunit +BuildRequires: python3-requests +BuildRequires: python3-testrepository +BuildRequires: python3-testscenarios +BuildRequires: python3-testtools +BuildRequires: python3-tosca-parser +BuildRequires: python3-cliff + +BuildRequires: /usr/bin/pathfix.py + +Requires: python3-pbr >= 2.0.0 +Requires: python3-cliff >= 2.8.0 +Requires: python3-dateutil >= 2.5.3 +Requires: python3-tosca-parser >= 1.6.1 +Requires: python3-keystoneauth1 >= 3.4.0 +%if 0%{?openEuler} +Requires: python3-novaclient +%else +Requires: python3-novaclient >= 1:9.1.0 +%endif +Requires: python3-heatclient >= 1.10.0 +%if 0%{?openEuler} +Requires: python3-glanceclient +%else +Requires: python3-glanceclient >= 1:2.8.0 +%endif +Requires: python3-requests >= 2.18.0 +Requires: python3-oslo-log >= 3.36.0 +Requires: python3-yaml >= 3.13 + +%description -n python3-%{library} +%{common_desc} + +%package -n python3-%{library}-tests +Summary: OpenStack heat-translator library tests +%{?python_provide:%python_provide python3-%{library}-tests} + +Requires: python3-%{library} = %{version}-%{release} +Requires: python3-hacking +Requires: python3-fixtures +Requires: python3-oslotest +Requires: python3-subunit +Requires: python3-testrepository +Requires: python3-testscenarios +Requires: python3-testtools +Requires: python3-tosca-parser + +%description -n python3-%{library}-tests +%{common_desc_tests} + +This package contains the Heat Translator test files. + +%if 0%{?with_doc} +%package -n python-%{library}-doc +Summary: OpenStack heat-translator library documentation + +BuildRequires: python3-sphinx +BuildRequires: python3-openstackdocstheme + +%description -n python-%{library}-doc +%{common_desc_tests} + +This package contains the documentation. +%endif + +%prep +# Required for tarball sources verification +%if 0%{?sources_gpg} == 1 +%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0} +%endif +%autosetup -n %{library}-%{upstream_version} -S git + +# Let's handle dependencies ourseleves +rm -f *requirements.txt + +%build +%{py3_build} + +%if 0%{?with_doc} +# generate html docs +sphinx-build -b html doc/source doc/build/html +# remove the sphinx-build leftovers +rm -rf doc/build/html/.{doctrees,buildinfo} +%endif + +%install +%{py3_install} + +# Create a versioned binary for backwards compatibility until everything is pure py3 +ln -s ./%{executable} %{buildroot}%{_bindir}/%{executable}-3 + +pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitelib}/%{module}/tests/data/artifacts/ + +# Looks like Unit tests depend on sockets +# need to mock out sockets upstream +# running %check non-fatally for now +%check +export PYTHON=%{__python3} +%{__python3} setup.py test ||: + +%files -n python3-%{library} +%license LICENSE +%{python3_sitelib}/%{module} +%{python3_sitelib}/heat_%{module}-*.egg-info +%exclude %{python3_sitelib}/%{module}/tests +%{_bindir}/%{executable} +%{_bindir}/%{executable}-3 + +%files -n python3-%{library}-tests +%license LICENSE +%{python3_sitelib}/%{module}/tests + +%if 0%{?with_doc} +%files -n python-%{library}-doc +%license LICENSE +%doc doc/build/html README.rst +%endif + +%changelog +* Tue Mar 30 2021 RDO <dev@lists.rdoproject.org> 2.3.0-1 +- Update to 2.3.0 + +* Fri Mar 12 2021 RDO <dev@lists.rdoproject.org> 2.2.0-1 +- Update to 2.2.0 @@ -0,0 +1 @@ +af416f15b497cfc92e556c8bef0a121d heat-translator-2.3.0.tar.gz |