- py_compile all OBS-URL: https://build.opensuse.org/request/show/628022 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-RESTful?expand=0&rev=2
60 lines
1.9 KiB
RPMSpec
60 lines
1.9 KiB
RPMSpec
#
|
|
# 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: Simple 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 great 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
|