2011-09-01 14:06:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Mako
|
|
|
|
#
|
2017-03-31 17:01:12 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-01 14:06:20 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-05 14:42:56 +00:00
|
|
|
|
2011-09-01 14:06:20 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-09-05 14:42:56 +00:00
|
|
|
|
2017-04-06 11:39:18 +00:00
|
|
|
%define oldpython python
|
2017-03-31 17:01:12 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-01 14:06:20 +00:00
|
|
|
Name: python-Mako
|
2017-02-10 17:07:10 +00:00
|
|
|
Version: 1.0.6
|
2011-11-10 10:54:38 +00:00
|
|
|
Release: 0
|
2011-09-01 14:11:57 +00:00
|
|
|
Summary: A super-fast Python templating language
|
2011-09-01 14:06:20 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2017-03-31 17:01:12 +00:00
|
|
|
Url: http://www.makotemplates.org/
|
|
|
|
Source: https://pypi.io/packages/source/M/Mako/Mako-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module MarkupSafe}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-01 14:06:20 +00:00
|
|
|
Requires: python-MarkupSafe
|
2016-11-16 06:59:45 +00:00
|
|
|
Recommends: python-Beaker >= 1.1
|
2017-03-31 17:01:12 +00:00
|
|
|
Provides: python-mako = %{version}
|
2011-09-01 14:06:20 +00:00
|
|
|
Obsoletes: python-mako < %{version}
|
2017-04-06 11:39:18 +00:00
|
|
|
%ifpython2
|
|
|
|
Provides: %{oldpython}-mako = %{version}
|
|
|
|
Obsoletes: %{oldpython}-mako < %{version}
|
|
|
|
%endif
|
2017-03-31 17:01:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-22 14:57:43 +00:00
|
|
|
BuildArch: noarch
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_subpackages
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%description
|
2017-03-31 17:01:12 +00:00
|
|
|
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
|
2011-09-01 14:06:20 +00:00
|
|
|
syntax and API borrows from the best ideas of many others, including Django
|
2017-03-31 17:01:12 +00:00
|
|
|
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
2011-09-01 14:06:20 +00:00
|
|
|
Python (i.e. Python Server Page) language, which refines the familiar ideas
|
2017-03-31 17:01:12 +00:00
|
|
|
of componentized layout and inheritance to produce one of the most
|
|
|
|
straightforward and flexible models available, while also maintaining close
|
2011-09-01 14:06:20 +00:00
|
|
|
ties to Python calling and scoping semantics.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Mako-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_build
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2016-09-16 04:07:55 +00:00
|
|
|
|
2011-09-01 14:06:20 +00:00
|
|
|
%check
|
2017-03-31 17:01:12 +00:00
|
|
|
%python_exec setup.py test
|
2011-09-01 14:06:20 +00:00
|
|
|
|
2017-03-31 17:01:12 +00:00
|
|
|
%files %{python_files}
|
2011-09-01 14:06:20 +00:00
|
|
|
%defattr(-,root,root,-)
|
2016-09-16 04:07:55 +00:00
|
|
|
%doc CHANGES LICENSE README.rst
|
|
|
|
%doc examples
|
2017-03-31 17:01:12 +00:00
|
|
|
%python3_only %{_bindir}/mako-render
|
2012-05-23 07:13:31 +00:00
|
|
|
%{python_sitelib}/mako/
|
2016-09-16 04:07:55 +00:00
|
|
|
%{python_sitelib}/Mako-%{version}-py*.egg-info
|
2011-09-01 14:06:20 +00:00
|
|
|
|
|
|
|
%changelog
|