Create a subpackage for the documentation (#1006259)

This commit is contained in:
Luke Macken 2014-05-19 10:31:31 -06:00
parent d0084dceeb
commit d71c9239bd

View File

@ -12,7 +12,7 @@
Name: python-mako Name: python-mako
Version: 0.9.1 Version: 0.9.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Mako template library for Python Summary: Mako template library for Python
Group: Development/Languages Group: Development/Languages
@ -52,6 +52,25 @@ componentized layout and inheritance to produce one of the most straightforward
and flexible models available, while also maintaining close ties to Python and flexible models available, while also maintaining close ties to Python
calling and scoping semantics. calling and scoping semantics.
%package doc
Summary: Documentation for the Mako template library for Python
Group: Documentation
License: (MIT and Python) and (BSD or GPLv2)
Requires: %{name} = %{version}-%{release}
%description doc
Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako's
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas of
componentized layout and inheritance to produce one of the most straightforward
and flexible models available, while also maintaining close ties to Python
calling and scoping semantics.
This package contains documentation in text and HTML formats.
%if 0%{?with_python3} %if 0%{?with_python3}
%package -n python3-mako %package -n python3-mako
Summary: Mako template library for Python 3 Summary: Mako template library for Python 3
@ -121,19 +140,26 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES LICENSE README.rst doc examples %doc CHANGES LICENSE README.rst examples
%{_bindir}/mako-render %{_bindir}/mako-render
%{python_sitelib}/* %{python_sitelib}/*
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-mako %files -n python3-mako
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES LICENSE README.rst doc examples %doc CHANGES LICENSE README.rst examples
%{_bindir}/python3-mako-render %{_bindir}/python3-mako-render
%{python3_sitelib}/* %{python3_sitelib}/*
%endif %endif
%files doc
%doc doc
%changelog %changelog
* Mon May 19 2014 Luke Macken <lmacken@redhat.com> - 0.9.1-2
- Create a subpackage for the documentation (#1006259)
* Mon May 19 2014 Luke Macken <lmacken@redhat.com> - 0.9.1-1 * Mon May 19 2014 Luke Macken <lmacken@redhat.com> - 0.9.1-1
- Update to 0.9.1 (#967837) - Update to 0.9.1 (#967837)