|
|
efe79f |
%global pypi_name cotyledon
|
|
|
efe79f |
|
|
|
efe79f |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
efe79f |
%bcond_with python2
|
|
|
efe79f |
%bcond_without python3
|
|
|
efe79f |
%else
|
|
|
efe79f |
%bcond_without python2
|
|
|
efe79f |
%bcond_with python3
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
Name: python-%{pypi_name}
|
|
|
efe79f |
Version: 1.7.3
|
|
|
efe79f |
Release: 8%{?dist}
|
|
|
efe79f |
Summary: Cotyledon provides a framework for defining long-running services
|
|
|
efe79f |
|
|
|
efe79f |
License: ASL 2.0
|
|
|
efe79f |
URL: https://cotyledon.readthedocs.io
|
|
|
efe79f |
Source0: https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
efe79f |
BuildArch: noarch
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
%package -n python2-%{pypi_name}
|
|
|
efe79f |
Summary: Cotyledon provides a framework for defining long-running services
|
|
|
efe79f |
%{?python_provide:%python_provide python2-cotyledon}
|
|
|
efe79f |
|
|
|
efe79f |
BuildRequires: python2-devel
|
|
|
efe79f |
BuildRequires: python2-setuptools
|
|
|
efe79f |
BuildRequires: python2-setuptools_scm
|
|
|
efe79f |
BuildRequires: python2-pbr
|
|
|
efe79f |
# For building documentation
|
|
|
efe79f |
BuildRequires: python2-sphinx
|
|
|
efe79f |
BuildRequires: python-setproctitle
|
|
|
efe79f |
|
|
|
efe79f |
Requires: python-setproctitle
|
|
|
efe79f |
|
|
|
efe79f |
%description -n python2-%{pypi_name}
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
|
|
|
efe79f |
|
|
|
efe79f |
%package -n python2-%{pypi_name}-tests
|
|
|
efe79f |
Summary: Cotyledon provides a framework for defining long-running services
|
|
|
efe79f |
Requires: python2-%{pypi_name} = %{version}-%{release}
|
|
|
efe79f |
Requires: python2-oslotest
|
|
|
efe79f |
Requires: python2-testrepository
|
|
|
efe79f |
Requires: python2-testscenarios
|
|
|
efe79f |
Requires: python2-testtools
|
|
|
efe79f |
|
|
|
efe79f |
%description -n python2-%{pypi_name}-tests
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
%package -n python3-%{pypi_name}
|
|
|
efe79f |
Summary: Cotyledon provides a framework for defining long-running services
|
|
|
efe79f |
BuildRequires: python3-devel
|
|
|
efe79f |
BuildRequires: python3-setuptools
|
|
|
efe79f |
BuildRequires: python3-setuptools_scm
|
|
|
efe79f |
BuildRequires: python3-pbr
|
|
|
efe79f |
# For building documentation
|
|
|
efe79f |
BuildRequires: python3-sphinx
|
|
|
efe79f |
BuildRequires: python3-setproctitle
|
|
|
efe79f |
|
|
|
efe79f |
Requires: python3-setproctitle
|
|
|
efe79f |
|
|
|
efe79f |
%description -n python3-%{pypi_name}
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
|
|
|
efe79f |
%package -n python3-%{pypi_name}-tests
|
|
|
efe79f |
Summary: Tests for %{name}
|
|
|
efe79f |
Requires: python3-%{pypi_name} = %{version}-%{release}
|
|
|
efe79f |
Requires: python3-oslotest
|
|
|
efe79f |
Requires: python3-testrepository
|
|
|
efe79f |
Requires: python3-testscenarios
|
|
|
efe79f |
Requires: python3-testtools
|
|
|
efe79f |
|
|
|
efe79f |
%description -n python3-%{pypi_name}-tests
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
|
|
|
efe79f |
This package contains test files
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%package doc
|
|
|
efe79f |
Summary: Documentation for %{name}
|
|
|
efe79f |
|
|
|
efe79f |
%description doc
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
|
|
|
efe79f |
This package contains documentation in HTML format.
|
|
|
efe79f |
|
|
|
efe79f |
%description
|
|
|
efe79f |
Cotyledon provides a framework for defining long-running services.
|
|
|
efe79f |
|
|
|
efe79f |
%prep
|
|
|
efe79f |
%setup -q -n %{pypi_name}-%{version}
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
rm -rf %{py3dir}
|
|
|
efe79f |
cp -a . %{py3dir}
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
# Let RPM handle the requirements
|
|
|
efe79f |
rm -f {,test-}requirements.txt
|
|
|
efe79f |
|
|
|
efe79f |
%build
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
%py2_build
|
|
|
efe79f |
%endif
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
pushd %{py3dir}
|
|
|
efe79f |
%{__python3} setup.py build
|
|
|
efe79f |
popd
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
efe79f |
sphinx-build -b html doc/source html
|
|
|
efe79f |
%else
|
|
|
efe79f |
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
efe79f |
sphinx-build-3 -b html doc/source html
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
# Fix hidden-file-or-dir warnings
|
|
|
efe79f |
rm -rf html/.doctrees html/.buildinfo
|
|
|
efe79f |
|
|
|
efe79f |
%install
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
pushd %{py3dir}
|
|
|
efe79f |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
efe79f |
popd
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%check
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
%{__python3} setup.py test ||:
|
|
|
efe79f |
rm -rf .testrepository
|
|
|
efe79f |
%endif
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
%{__python2} setup.py test ||:
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python2}
|
|
|
efe79f |
%files -n python2-%{pypi_name}
|
|
|
efe79f |
%doc README.rst
|
|
|
efe79f |
%license LICENSE
|
|
|
efe79f |
%{python2_sitelib}/%{pypi_name}
|
|
|
efe79f |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
efe79f |
|
|
|
efe79f |
%files -n python2-%{pypi_name}-tests
|
|
|
efe79f |
%license LICENSE
|
|
|
efe79f |
%{python2_sitelib}/%{pypi_name}/tests/
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%if %{with python3}
|
|
|
efe79f |
%files -n python3-%{pypi_name}
|
|
|
efe79f |
%doc README.rst
|
|
|
efe79f |
%license LICENSE
|
|
|
efe79f |
%{python3_sitelib}/%{pypi_name}
|
|
|
efe79f |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
efe79f |
|
|
|
efe79f |
%files -n python3-%{pypi_name}-tests
|
|
|
efe79f |
%license LICENSE
|
|
|
efe79f |
%{python3_sitelib}/%{pypi_name}/tests
|
|
|
efe79f |
|
|
|
efe79f |
%endif
|
|
|
efe79f |
|
|
|
efe79f |
%files doc
|
|
|
efe79f |
%doc html
|
|
|
efe79f |
|
|
|
efe79f |
%changelog
|
|
|
efe79f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-8
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-7
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.3-6
|
|
|
efe79f |
- Rebuilt for Python 3.9
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-5
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.3-4
|
|
|
efe79f |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
efe79f |
|
|
|
efe79f |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.3-3
|
|
|
efe79f |
- Rebuilt for Python 3.8
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-2
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Jan 31 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.7.3-1
|
|
|
efe79f |
- Update to 1.7.3.
|
|
|
efe79f |
- Remove python2 subpackages when building in Fedora.
|
|
|
efe79f |
|
|
|
efe79f |
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.6.7-9
|
|
|
efe79f |
- Drop explicit locale setting
|
|
|
efe79f |
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-8
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.7-7
|
|
|
efe79f |
- Rebuilt for Python 3.7
|
|
|
efe79f |
|
|
|
efe79f |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.6.7-6
|
|
|
efe79f |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
efe79f |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.7-5
|
|
|
efe79f |
- Escape macros in %%changelog
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-4
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-3
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-2
|
|
|
efe79f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
efe79f |
|
|
|
efe79f |
* Wed Feb 08 2017 Pradeep Kilambi <pkilambi@redhat.com> - 1.6.7-1
|
|
|
efe79f |
- Rebase 1.6.7
|
|
|
efe79f |
|
|
|
efe79f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.6.3-2
|
|
|
efe79f |
- Rebuild for Python 3.6
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Dec 1 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.6.3-1
|
|
|
efe79f |
- Upstream 1.6.3
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Sep 02 2016 Alan Pevec <apevec AT redhat.com> - 1.2.7-2
|
|
|
efe79f |
- python2 subpackage was missing
|
|
|
efe79f |
|
|
|
efe79f |
* Wed Aug 31 2016 Pradeep Kilambi <pkilambi@redhat.com> - 1.2.7-1
|
|
|
efe79f |
- Rebase to 1.2.7
|
|
|
efe79f |
- move sphinx-build to %%build
|
|
|
efe79f |
- move buildRequires/requires to python2-cotyledon
|
|
|
efe79f |
- run python3 tests
|
|
|
efe79f |
|
|
|
efe79f |
* Fri Jul 15 2016 Pradeep Kilambi <pkilambi@redhat.com> - 1.2.5-3
|
|
|
efe79f |
- Add check section
|
|
|
efe79f |
- added new test dependencies
|
|
|
efe79f |
- fixed tests sub packages
|
|
|
efe79f |
|
|
|
efe79f |
* Thu Jul 14 2016 Pradeep Kilambi <pkilambi@redhat.com> - 1.2.5-2
|
|
|
efe79f |
- Fix source url
|
|
|
efe79f |
|
|
|
efe79f |
* Wed Jul 6 2016 Mehdi Abaakouk <sileht@redhat.com> - 1.2.5-1
|
|
|
efe79f |
- Initial package.
|