rdobuilder 8473be
%global pypi_name tosca-parser
rdobuilder 8473be
rdobuilder 8473be
Name:           python-%{pypi_name}
rdobuilder 8473be
Version:        2.9.1
rdobuilder 8473be
Release:        1%{?dist}
rdobuilder 8473be
Summary:        Parser for TOSCA Simple Profile in YAML
rdobuilder 8473be
rdobuilder 8473be
License:        ASL 2.0
rdobuilder 8473be
URL:            https://github.com/openstack/tosca-parser
rdobuilder 8473be
Source0:        https://pypi.io/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
rdobuilder 8473be
BuildArch:      noarch
rdobuilder 8473be
rdobuilder 8473be
%description
rdobuilder 8473be
The TOSCA Parser is an OpenStack project and licensed under Apache 2.
rdobuilder 8473be
It is developed to parse TOSCA Simple Profile in YAML. It reads the TOSCA
rdobuilder 8473be
templates and creates an in-memory graph of TOSCA nodes and their relationship.
rdobuilder 8473be
rdobuilder 8473be
%package -n python3-%{pypi_name}
rdobuilder 8473be
Summary:        Parser for TOSCA Simple Profile in YAML
rdobuilder 8473be
%{?python_provide:%python_provide python3-%{pypi_name}}
rdobuilder 8473be
rdobuilder 8473be
BuildRequires:  python3-devel
rdobuilder 8473be
BuildRequires:  python3-pbr >= 1.3
rdobuilder 8473be
BuildRequires:  python3-PyYAML
rdobuilder 8473be
BuildRequires:  python3-setuptools
rdobuilder 8473be
# Required for testing
rdobuilder 8473be
BuildRequires:  python3-six
rdobuilder 8473be
BuildRequires:  python3-dateutil
rdobuilder 8473be
BuildRequires:  python3-cliff
rdobuilder 8473be
BuildRequires:  python3-fixtures
rdobuilder 8473be
BuildRequires:  python3-testrepository
rdobuilder 8473be
BuildRequires:  python3-testtools
rdobuilder 8473be
BuildRequires:  python3-testscenarios
rdobuilder 8473be
BuildRequires:  python3-oslotest
rdobuilder 8473be
BuildRequires:  python3-subunit
rdobuilder 8473be
BuildRequires:  python3-stestr
rdobuilder 8473be
# Required for doc
rdobuilder 8473be
BuildRequires:  python3-sphinx
rdobuilder 8473be
BuildRequires:  python3-openstackdocstheme
rdobuilder 8473be
rdobuilder 8473be
Requires:       python3-PyYAML
rdobuilder 8473be
Requires:       python3-cliff
rdobuilder 8473be
Requires:       python3-dateutil
rdobuilder 8473be
Requires:       python3-requests
rdobuilder 8473be
Requires:       python3-stevedore
rdobuilder 8473be
rdobuilder 8473be
%description -n python3-%{pypi_name}
rdobuilder 8473be
The TOSCA Parser is an OpenStack project and licensed under Apache 2.
rdobuilder 8473be
It is developed to parse TOSCA Simple Profile in YAML. It reads the TOSCA
rdobuilder 8473be
templates and creates an in-memory graph of TOSCA nodes and their relationship.
rdobuilder 8473be
rdobuilder 8473be
rdobuilder 8473be
%package -n python-%{pypi_name}-doc
rdobuilder 8473be
Summary:        Parser for TOSCA Simple Profile in YAML - documentation
rdobuilder 8473be
Provides:  python3-%{pypi_name}-doc = %{version}-%{release}
rdobuilder 8473be
Obsoletes: python3-%{pypi_name}-doc < %{version}-%{release}
rdobuilder 8473be
rdobuilder 8473be
%description -n python-%{pypi_name}-doc
rdobuilder 8473be
The TOSCA Parser is an OpenStack project and licensed under Apache 2.
rdobuilder 8473be
This package contains its documentation
rdobuilder 8473be
rdobuilder 8473be
rdobuilder 8473be
%prep
rdobuilder 8473be
%setup -q -n %{pypi_name}-%{version}
rdobuilder 8473be
# Let's manage requirements using rpm.
rdobuilder 8473be
rm -f *requirements.txt
rdobuilder 8473be
rdobuilder 8473be
%build
rdobuilder 8473be
%py3_build
rdobuilder 8473be
sphinx-build-3 doc/source html
rdobuilder 8473be
# remove the sphinx-build leftovers
rdobuilder 8473be
rm -rf html/.{doctrees,buildinfo}
rdobuilder 8473be
rdobuilder 8473be
%check
rdobuilder 8473be
# Ignore test results for now, they are trying to access external URLs
rdobuilder 8473be
# which are not accessible in Koji
rdobuilder 8473be
PYTHON=python3 %{__python3} setup.py test || true
rdobuilder 8473be
# Cleanup test repository
rdobuilder 8473be
rm -rf .testrepository
rdobuilder 8473be
rdobuilder 8473be
%install
rdobuilder 8473be
%{py3_install}
rdobuilder 8473be
rdobuilder 8473be
# Set executable permission on test scripts
rdobuilder 8473be
find %{buildroot}/%{python3_sitelib}/toscaparser/tests -name '*.sh' -execdir chmod +x '{}' \;
rdobuilder 8473be
# Fix shebang on some test scripts
rdobuilder 8473be
find %{buildroot}/%{python3_sitelib}/toscaparser/tests -name '*.py' -exec sed -i 's/^#!\/usr\/bin\/python/#!\/usr\/bin\/python3/' {} \;
rdobuilder 8473be
rdobuilder 8473be
%files -n python3-%{pypi_name}
rdobuilder 8473be
%doc README.rst
rdobuilder 8473be
%license LICENSE
rdobuilder 8473be
%{_bindir}/tosca-parser
rdobuilder 8473be
%{python3_sitelib}/toscaparser
rdobuilder 8473be
%{python3_sitelib}/tosca_parser-%{version}-py%{python3_version}.egg-info
rdobuilder 8473be
rdobuilder 8473be
%files -n python-%{pypi_name}-doc
rdobuilder 8473be
%doc html README.rst
rdobuilder 8473be
%license LICENSE
rdobuilder 8473be
rdobuilder 8473be
%changelog
rdobuilder 8473be
* Thu Sep 07 2023 Joel Capitao <jcapitao@redhat.com> - 2.9.1-1
rdobuilder 8473be
- Update to 2.9.1 (#2144142)
rdobuilder 8473be
rdobuilder 8473be
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-4
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 2.7.0-3
rdobuilder 8473be
- Rebuilt for Python 3.12
rdobuilder 8473be
rdobuilder 8473be
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Wed Nov 30 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.7.0-1
rdobuilder 8473be
- Update to 2.7.0
rdobuilder 8473be
- Removed -3 sufixed binaries as it's only python3 packaged.
rdobuilder 8473be
rdobuilder 8473be
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2.6.0-2
rdobuilder 8473be
- Rebuilt for Python 3.11
rdobuilder 8473be
rdobuilder 8473be
* Wed Jun 01 2022 Joel Capitao <jcapitao@redhat.com> - 2.6.0-1
rdobuilder 8473be
- Update to 2.6.0
rdobuilder 8473be
rdobuilder 8473be
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
rdobuilder 8473be
- Second attempt - Rebuilt for
rdobuilder 8473be
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.0-3
rdobuilder 8473be
- Rebuilt for Python 3.10
rdobuilder 8473be
rdobuilder 8473be
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Thu Sep 10 2020 Joel Capitao <jcapitao@redhat.com> - 2.1.0-1
rdobuilder 8473be
- Update to 2.1.0
rdobuilder 8473be
- Remove python2 subpackage
rdobuilder 8473be
rdobuilder 8473be
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-8
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Mon Jun 01 2020 Javier Peña <jpena@redhat.com> - 1.4.0-7
rdobuilder 8473be
- Remove python-hacking requirement, it is not actually needed for the build
rdobuilder 8473be
rdobuilder 8473be
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-6
rdobuilder 8473be
- Rebuilt for Python 3.9
rdobuilder 8473be
rdobuilder 8473be
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-4
rdobuilder 8473be
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder 8473be
rdobuilder 8473be
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-3
rdobuilder 8473be
- Rebuilt for Python 3.8
rdobuilder 8473be
rdobuilder 8473be
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Thu Jan 31 2019 Alfredo Moralejo <amoralej@redhat.xom> - 1.4.0-1
rdobuilder 8473be
- Update to 1.4.0.
rdobuilder 8473be
- Remove python2 subpackages in Fedora.
rdobuilder 8473be
- Make documentation subpackage unversioned
rdobuilder 8473be
rdobuilder 8473be
* Tue Sep 11 2018 Javier Peña <jpena@redhat.com> - 1.1.0-1
rdobuilder 8473be
- Updated to upsteam 1.1.0 (bz#1541379)
rdobuilder 8473be
- Fix unversioned python shebangs
rdobuilder 8473be
rdobuilder 8473be
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-5
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-4
rdobuilder 8473be
- Rebuilt for Python 3.7
rdobuilder 8473be
rdobuilder 8473be
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.1-3
rdobuilder 8473be
- Update Python 2 dependency declarations to new packaging standards
rdobuilder 8473be
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
rdobuilder 8473be
rdobuilder 8473be
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Mon Aug 14 2017 Javier Peña <jpena@redhat.com> - 0.8.1-1
rdobuilder 8473be
- Updated to upstream release 0.8.1
rdobuilder 8473be
rdobuilder 8473be
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
rdobuilder 8473be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
rdobuilder 8473be
rdobuilder 8473be
* Mon Jan 23 2017 Javier Peña <jpena@redhat.com> - 0.7.0-1
rdobuilder 8473be
- Updated to upstream release 0.7.0
rdobuilder 8473be
rdobuilder 8473be
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-4
rdobuilder 8473be
- Rebuild for Python 3.6
rdobuilder 8473be
rdobuilder 8473be
* Wed Nov 02 2016 Javier Peña <jpena@redhat.com> - 0.6.0-3
rdobuilder 8473be
- Fix shebang for certain test scripts in python3 subpackage, so python2 is not included (bz#1390505)
rdobuilder 8473be
- Invert test execution, so python3 tests are executed
rdobuilder 8473be
- Use pypi.io for Source0 URL
rdobuilder 8473be
rdobuilder 8473be
* Tue Aug 16 2016 Javier Peña <jpena@redhat.com> - 0.6.0-2
rdobuilder 8473be
- Ignore test results, they're trying to access the Internet
rdobuilder 8473be
rdobuilder 8473be
* Tue Aug 16 2016 Javier Peña <jpena@redhat.com> - 0.6.0-1
rdobuilder 8473be
- Updated to upstream version 0.6.0
rdobuilder 8473be
rdobuilder 8473be
* Wed Sep 09 2015 jpena <jpena@redhat.com> - 0.1.0-3
rdobuilder 8473be
- Fix file permissions for test scripts
rdobuilder 8473be
rdobuilder 8473be
* Wed Sep 09 2015 jpena <jpena@redhat.com> - 0.1.0-2
rdobuilder 8473be
- Created docs subpackages
rdobuilder 8473be
- Added tests
rdobuilder 8473be
- Fixes for python3 subpkg
rdobuilder 8473be
rdobuilder 8473be
* Tue Sep 08 2015 jpena <jpena@redhat.com> - 0.1.0-1
rdobuilder 8473be
- Initial package.