Blame python-sphinxcontrib-blockdiag.spec

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