Blame SPECS/python-sphinxcontrib-blockdiag.spec

63998a
%if 0%{?fedora} || 0%{?rhel} > 7
63998a
%bcond_with    python2
63998a
%bcond_without python3
63998a
%else
63998a
%bcond_without python2
63998a
%bcond_with    python3
63998a
%endif
63998a
63998a
%global pypi_name sphinxcontrib-blockdiag
63998a
63998a
Name:           python-%{pypi_name}
63998a
Version:        2.0.0
63998a
Release:        4%{?dist}
63998a
Summary:        Sphinx "blockdiag" extension
63998a
63998a
License:        BSD
63998a
URL:            https://github.com/blockdiag/sphinxcontrib-blockdiag
63998a
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
63998a
BuildArch:      noarch
63998a
63998a
%description
63998a
A sphinx extension for embedding block diagram using blockdiag_.
63998a
63998a
%if %{with python2}
63998a
%package -n python2-%{pypi_name}
63998a
Summary:        Sphinx "blockdiag" extension
63998a
%{?python_provide:%python_provide python2-%{pypi_name}}
63998a
63998a
BuildRequires:  python2-setuptools
63998a
BuildRequires:  python2-devel
63998a
Requires:       python2-blockdiag >= 1.5.0
63998a
Requires:       python2-sphinx >= 0.6
63998a
%description -n python2-%{pypi_name}
63998a
A sphinx extension for embedding block diagram using blockdiag_.
63998a
%endif
63998a
63998a
%if %{with python3}
63998a
%package -n python3-%{pypi_name}
63998a
Summary:        Sphinx "blockdiag" extension
63998a
%{?python_provide:%python_provide python3-%{pypi_name}}
63998a
BuildRequires:  python3-setuptools
63998a
BuildRequires:  python3-devel
63998a
Requires:       python3-blockdiag >= 2.0.0
63998a
Requires:       python3-sphinx >= 2.0.0
63998a
%description -n python3-%{pypi_name}
63998a
A sphinx extension for embedding block diagram using blockdiag_.
63998a
%endif
63998a
63998a
%prep
63998a
%autosetup -n %{pypi_name}-%{version}
63998a
# Remove bundled egg-info
63998a
rm -rf %{pypi_name}.egg-info
63998a
63998a
%build
63998a
%if %{with python2}
63998a
%py2_build
63998a
%endif
63998a
%if %{with python3}
63998a
%py3_build
63998a
%endif
63998a
63998a
%install
63998a
%if %{with python2}
63998a
%py2_install
63998a
%endif
63998a
%if 0%{with python3}
63998a
%py3_install
63998a
%endif
63998a
63998a
%if %{with python2}
63998a
%files -n python2-%{pypi_name}
63998a
%license LICENSE
63998a
%doc README.rst
63998a
%{python2_sitelib}/sphinxcontrib
63998a
%{python2_sitelib}/sphinxcontrib_blockdiag-*.egg-info
63998a
%{python2_sitelib}/sphinxcontrib_blockdiag-*.pth
63998a
%exclude %{python2_sitelib}/sphinxcontrib/tests
63998a
%endif
63998a
63998a
%if %{with python3}
63998a
%files -n python3-%{pypi_name}
63998a
%license LICENSE
63998a
%doc README.rst
63998a
%{python3_sitelib}/sphinxcontrib
63998a
%{python3_sitelib}/sphinxcontrib_blockdiag-*.egg-info
63998a
%{python3_sitelib}/sphinxcontrib_blockdiag-*.pth
63998a
%exclude %{python3_sitelib}/sphinxcontrib/tests
63998a
%endif
63998a
63998a
%changelog
63998a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
63998a
63998a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
63998a
63998a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
63998a
- Rebuilt for Python 3.9
63998a
63998a
* Tue Mar 10 2020 Fabien Boucher <fboucher@redhat.com> - 2.0.0-1
63998a
- Bump to last release 2.0.0 (#1811927)
63998a
63998a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-14
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
63998a
63998a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-13
63998a
- Rebuilt for Python 3.8.0rc1 (#1748018)
63998a
63998a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-12
63998a
- Rebuilt for Python 3.8
63998a
63998a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-11
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
63998a
63998a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-10
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
63998a
63998a
* Thu Sep 13 2018 Javier Peña <jpena@redhat.com> - 1.5.5-9
63998a
- Remove the python2 package for Fedora 30+ (bz#1627370)
63998a
63998a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-8
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
63998a
63998a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-7
63998a
- Rebuilt for Python 3.7
63998a
63998a
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.5-6
63998a
- Update Python 2 dependency declarations to new packaging standards
63998a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
63998a
63998a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-5
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
63998a
63998a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-4
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
63998a
63998a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
63998a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
63998a
63998a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-2
63998a
- Rebuild for Python 3.6
63998a
63998a
* Tue Sep 20 2016 Javier Peña <jpena@redhat.com> - 1.5.5-1
63998a
- Initial package.