From d71c9239bdeab4b79f69e7da98b85791acbe4bf1 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Mon, 19 May 2014 10:31:31 -0600 Subject: [PATCH] Create a subpackage for the documentation (#1006259) --- python-mako.spec | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/python-mako.spec b/python-mako.spec index dd8c8dd..82ff83b 100644 --- a/python-mako.spec +++ b/python-mako.spec @@ -12,7 +12,7 @@ Name: python-mako Version: 0.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Mako template library for Python 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 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} %package -n python3-mako Summary: Mako template library for Python 3 @@ -121,19 +140,26 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst doc examples +%doc CHANGES LICENSE README.rst examples %{_bindir}/mako-render %{python_sitelib}/* %if 0%{?with_python3} %files -n python3-mako %defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst doc examples +%doc CHANGES LICENSE README.rst examples %{_bindir}/python3-mako-render %{python3_sitelib}/* %endif +%files doc +%doc doc + + %changelog +* Mon May 19 2014 Luke Macken - 0.9.1-2 +- Create a subpackage for the documentation (#1006259) + * Mon May 19 2014 Luke Macken - 0.9.1-1 - Update to 0.9.1 (#967837)