File python3-Flask.spec of Package python3-Flask
#
# spec file for package python3-Flask
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-Flask
Version: 0.11.1
Release: 0
Url: http://github.com/mitsuhiko/flask/
Summary: A microframework based on Werkzeug, Jinja2 and good intentions
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Jinja2 >= 2.4
BuildRequires: python3-Werkzeug >= 0.7
BuildRequires: python3-itsdangerous >= 0.21
BuildRequires: python3-pytest
BuildRequires: python3-click
Requires: python3-click
Requires: python3-Jinja2 >= 2.4
Requires: python3-Werkzeug >= 0.7
Requires: python3-itsdangerous >= 0.21
BuildArch: noarch
%description
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
intentions. And before you ask: It's BSD licensed!
%package doc
Summary: Documentation for python-Flask
Group: Documentation/Other
Requires: %{name} = %{version}
%description doc
This package contains HTML documentation, including tutorials and API
reference for python-Flask.
%prep
%setup -q -n Flask-%{version}
# Remove junk
rm -rf docs/.git* docs/_themes/.git* examples/.DS_Store examples/persona/.DS_Store examples/persona/static/.DS_Store
%build
python3 setup.py build
#cd docs && make html
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python3_sitelib}
%check
python3 setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES LICENSE
%{python3_sitelib}/*
%{_bindir}/flask
%files doc
%defattr(-,root,root)
%doc docs examples
%changelog