2018-10-30 10:03:08 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Flask-Admin
|
|
|
|
#
|
2020-02-09 19:40:52 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-10-30 10:03:08 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-04-20 15:02:05 +00:00
|
|
|
%bcond_without python2
|
2018-10-30 10:03:08 +00:00
|
|
|
Name: python-Flask-Admin
|
2020-04-12 07:16:15 +00:00
|
|
|
Version: 1.5.6
|
2018-10-30 10:03:08 +00:00
|
|
|
Release: 0
|
2018-10-31 14:57:50 +00:00
|
|
|
Summary: Extensible admin interface framework for Flask
|
2018-10-30 10:03:08 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/flask-admin/flask-admin/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-Admin/Flask-Admin-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Flask >= 0.7}
|
|
|
|
BuildRequires: %{python_module Flask-BabelEx}
|
|
|
|
BuildRequires: %{python_module Flask-SQLAlchemy}
|
2019-10-22 07:55:06 +00:00
|
|
|
BuildRequires: %{python_module Pillow >= 3.3.2}
|
|
|
|
BuildRequires: %{python_module SQLAlchemy-Utils}
|
2018-10-30 10:03:08 +00:00
|
|
|
BuildRequires: %{python_module WTForms}
|
2019-10-22 07:55:06 +00:00
|
|
|
BuildRequires: %{python_module arrow}
|
|
|
|
BuildRequires: %{python_module colour}
|
2018-10-30 10:03:08 +00:00
|
|
|
BuildRequires: %{python_module nose >= 1.0}
|
|
|
|
BuildRequires: %{python_module peewee}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-20 15:02:05 +00:00
|
|
|
%if %{with python2}
|
2018-10-30 10:03:08 +00:00
|
|
|
BuildRequires: python2-enum34
|
2019-10-22 07:55:06 +00:00
|
|
|
BuildRequires: python2-ipaddr
|
2020-04-20 15:02:05 +00:00
|
|
|
%endif
|
2018-10-30 10:03:08 +00:00
|
|
|
Requires: python-Flask >= 0.7
|
|
|
|
Requires: python-WTForms
|
|
|
|
BuildArch: noarch
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-10-31 14:57:50 +00:00
|
|
|
Flask-Admin is a Flask extension that lets the user add admin
|
|
|
|
interfaces to Flask applications.
|
2018-10-30 10:03:08 +00:00
|
|
|
|
2018-10-31 14:57:50 +00:00
|
|
|
It is inspired by the django-admin Python package, though the
|
|
|
|
developer has more control over the look, feel and functionality of
|
|
|
|
the resulting application.
|
2018-10-30 10:03:08 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Flask-Admin-%{version}
|
|
|
|
# remove contrib tests that pull in too many dependencies
|
|
|
|
rm -rf flask_admin/tests/geoa
|
|
|
|
rm -rf flask_admin/tests/{mongoengine,pymongo}
|
|
|
|
rm -rf flask_admin/tests/peeweemodel
|
|
|
|
rm -f flask_admin/tests/sqla/test_postgres.py
|
|
|
|
# these tests try to write to protected dirs in the OBS
|
|
|
|
rm -f flask_admin/tests/test_form_upload.py
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
%python_expand nosetests-%{$python_bin_suffix}
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2019-01-02 09:11:45 +00:00
|
|
|
%dir %{python_sitelib}/flask_admin
|
|
|
|
%{python_sitelib}/flask_admin/*
|
|
|
|
%{python_sitelib}/Flask_Admin-%{version}-py*.egg-info
|
2018-10-30 10:03:08 +00:00
|
|
|
|
|
|
|
%changelog
|