1 Star 0 Fork 9

penelope/python-Flask-Admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-flask-admin.spec 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
penelope 提交于 2022-05-11 14:59 . License compliance rectification
%global srcname Flask-Admin
%global pkgname flask-admin
%global sum Simple and extensible admin interface framework for Flask
Name: python-%{pkgname}
Version: 1.5.8
Release: 2
Summary: %{sum}
License: BSD-3-Clause
URL: https://github.com/flask-admin/flask-admin/
Source0: https://files.pythonhosted.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%global _description\
Flask-Admin is advanced, extensible and simple to use administrative interface\
building extension for Flask framework.\
\
It comes with batteries included: model scaffolding for SQLAlchemy,\
MongoEngine, MongoDB and Peewee ORMs, simple file management interface\
and a lot of usage samples.\
\
You're not limited by the default functionality - instead of providing simple\
scaffolding for the ORM models, Flask-Admin provides tools that can be used to\
construct administrative interfaces of any complexity, using a consistent look\
and feel.\
%description %_description
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{sum}
Requires: python%{python3_pkgversion}-flask
Requires: python%{python3_pkgversion}-wtforms
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
%description -n python%{python3_pkgversion}-%{pkgname} %_description
%prep
%autosetup -n %{srcname}-%{version}
for f in \
flask_admin/contrib/pymongo/typefmt.py \
flask_admin/tests/mock.py \
flask_admin/tests/fileadmin/files/dummy.txt \
; do
echo "#Empty file" > $f
done
rm -rf examples
rm flask_admin/translations/README.md
%build
%py3_build
%install
%py3_install
%check
# Tests are not included as they require mongod running
%files -n python%{python3_pkgversion}-%{pkgname}
%doc README.rst
%license LICENSE
%dir %{python3_sitelib}/flask_admin
%{python3_sitelib}/flask_admin/translations
%{python3_sitelib}/flask_admin/static
%{python3_sitelib}/flask_admin/*.py*
%{python3_sitelib}/flask_admin/__pycache__/
%{python3_sitelib}/flask_admin/tests/
%{python3_sitelib}/flask_admin/contrib/
%{python3_sitelib}/flask_admin/model/
%{python3_sitelib}/flask_admin/templates/
%{python3_sitelib}/flask_admin/form/
%{python3_sitelib}/*.egg-info/
%changelog
* Wed May 11 2022 yangping <yangping69@h-partners> - 1.5.8-2
- License compliance rectification
* Fri June 25 2021 liuliang <liuliang1@kylinos.cn> - 1.5.8-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/penelope_y/python-Flask-Admin.git
git@gitee.com:penelope_y/python-Flask-Admin.git
penelope_y
python-Flask-Admin
python-Flask-Admin
master

搜索帮助