Blob Blame History Raw
%global srcname Flask-Mako
%global eggname Flask_Mako

Name:               python-flask-mako
Version:            0.2
Release:            1%{?dist}
Summary:            Mako templating support for Flask applications

Group:              Development/Libraries
License:            BSD
URL:                http://pypi.python.org/pypi/%{srcname}
Source0:            http://pypi.python.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz
Patch0:             python-flask-mako-remove-tests.patch

BuildArch:          noarch

BuildRequires:      python2-devel
BuildRequires:      python-setuptools
BuildRequires:      python-flask
BuildRequires:      python-mako

Requires:           python-flask
Requires:           python-mako

%description
This extension for the Flask micro web framework allows developers
to use Mako Templates instead of the default Jinja2 templating engine.

%prep
%setup -q -n %{srcname}-%{version}
%patch0 -p1 -b .remove-tests

# Remove bundled egg-info in case it exists
rm -rf %{srcname}.egg-info


%build
%{__python} setup.py build

%install
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}

# We can almost run the tests, but upstream doesn't ship a required template.
#%%check
#%%{__python} setup.py test

%files
%doc PKG-INFO
%{python_sitelib}/flask_mako.py*
%{python_sitelib}/%{eggname}-%{version}*

%changelog
* Thu Apr 04 2013 Ralph Bean <rbean@redhat.com> - 0.2-1
- Initial package for Fedora