File python-Flask-RESTful.spec of Package python-Flask-RESTful

#
# spec file for package python-Flask-RESTful
#
# Copyright (c) 2018 SUSE LINUX 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/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-Flask-RESTful
Version:        0.3.6
Release:        0
License:        BSD-3-Clause
Summary:        Framework for creating REST APIs
Url:            https://www.github.com/flask-restful/flask-restful/
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/F/Flask-RESTful/Flask-RESTful-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
Requires:       python-aniso8601 >= 0.82
Requires:       python-Flask >= 0.8
Requires:       python-six >= 1.3.0
Requires:       python-pytz
BuildArch:      noarch

%python_subpackages

%description
Flask-RESTful provides the building blocks for creating a REST API.

%prep
%setup -q -n Flask-RESTful-%{version}

%build
%python_build



%install
%python_install
%py_compile %{buildroot}%{python_sitelib}
%py3_compile %{buildroot}%{python3_sitelib}/flask_restful/
%python_expand %fdupes %{buildroot}%{$python_sitelib}/flask_restful/

%files %{python_files}
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by