Conditionalize the python2 docs dependency.
This commit is contained in:
parent
33ca828644
commit
5402525c70
@ -74,7 +74,11 @@ Recommends: python2-beaker
|
|||||||
Summary: Documentation for the Mako template library for Python
|
Summary: Documentation for the Mako template library for Python
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
License: (MIT and Python) and (BSD or GPLv2)
|
License: (MIT and Python) and (BSD or GPLv2)
|
||||||
|
%if %{with python3}
|
||||||
|
Requires: python3-mako = %{version}-%{release}
|
||||||
|
%else
|
||||||
Requires: python2-mako = %{version}-%{release}
|
Requires: python2-mako = %{version}-%{release}
|
||||||
|
%endif #{with python3}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Mako is a template library written in Python. It provides a familiar, non-XML
|
Mako is a template library written in Python. It provides a familiar, non-XML
|
||||||
@ -102,7 +106,7 @@ Recommends: python3-beaker
|
|||||||
|
|
||||||
%if %{without python2}
|
%if %{without python2}
|
||||||
Obsoletes: python2-mako < %{version}-%{release}
|
Obsoletes: python2-mako < %{version}-%{release}
|
||||||
%endif
|
%endif #{without python2}
|
||||||
|
|
||||||
%description -n python3-mako
|
%description -n python3-mako
|
||||||
Mako is a template library written in Python. It provides a familiar, non-XML
|
Mako is a template library written in Python. It provides a familiar, non-XML
|
||||||
@ -154,7 +158,7 @@ rm -rf doc/build
|
|||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
%endif %{with python2}
|
%endif %{with python2}
|
||||||
|
|
||||||
%if 0%{with python3}
|
%if %{with python3}
|
||||||
%files -n python3-mako
|
%files -n python3-mako
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README.rst examples
|
%doc CHANGES README.rst examples
|
||||||
|
Loading…
Reference in New Issue
Block a user