05ed87c
%global srcname	Flask-Admin
05ed87c
%global pkgname flask-admin
05ed87c
%global sum Simple and extensible admin interface framework for Flask
05ed87c
05ed87c
Name:		python-%{pkgname}
79a0b56
Version:	1.5.6
1b1c1a8
Release:	2%{?dist}
05ed87c
Summary:	%{sum}
05ed87c
License:	BSD
05ed87c
URL:		https://github.com/flask-admin/flask-admin/
89e4295
Source0:	https://files.pythonhosted.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz
05ed87c
05ed87c
BuildArch:	noarch
4085718
BuildRequires:	python%{python3_pkgversion}-devel
4085718
BuildRequires:	python%{python3_pkgversion}-setuptools
05ed87c
34952ec
%global _description\
34952ec
Flask-Admin is advanced, extensible and simple to use administrative interface\
34952ec
building extension for Flask framework.\
34952ec
\
34952ec
It comes with batteries included: model scaffolding for SQLAlchemy,\
34952ec
MongoEngine, MongoDB and Peewee ORMs, simple file management interface\
34952ec
and a lot of usage samples.\
34952ec
\
34952ec
You're not limited by the default functionality - instead of providing simple\
34952ec
scaffolding for the ORM models, Flask-Admin provides tools that can be used to\
34952ec
construct administrative interfaces of any complexity, using a consistent look\
34952ec
and feel.\
05ed87c
05ed87c
34952ec
%description %_description
05ed87c
a097272
%package -n python%{python3_pkgversion}-%{pkgname}
05ed87c
Summary:	%{sum}
a097272
Requires:	python%{python3_pkgversion}-flask
a097272
Requires:	python%{python3_pkgversion}-wtforms
a097272
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
05ed87c
a097272
%description -n python%{python3_pkgversion}-%{pkgname} %_description
05ed87c
05ed87c
05ed87c
%prep
89e4295
%autosetup -n %{srcname}-%{version}
05ed87c
for f in \
05ed87c
	flask_admin/contrib/pymongo/typefmt.py \
05ed87c
	flask_admin/tests/mock.py \
a097272
	flask_admin/tests/fileadmin/files/dummy.txt \
05ed87c
; do
05ed87c
	echo "#Empty file" > $f
05ed87c
done
05ed87c
05ed87c
rm -rf examples
05ed87c
rm flask_admin/translations/README.md
05ed87c
cb61402
05ed87c
%build
05ed87c
%py3_build
05ed87c
05ed87c
05ed87c
%install
cb61402
%py3_install
cb61402
cb61402
%check
cb61402
# Tests are not included as they require mongod running
cb61402
05ed87c
aaa9ba2
%files -n python%{python3_pkgversion}-%{pkgname}
05ed87c
%doc README.rst
05ed87c
%license LICENSE
05ed87c
%dir %{python3_sitelib}/flask_admin
e8203ed
%{python3_sitelib}/flask_admin/translations
05ed87c
%{python3_sitelib}/flask_admin/static
05ed87c
%{python3_sitelib}/flask_admin/*.py*
98b9f73
%{python3_sitelib}/flask_admin/__pycache__/
05ed87c
%{python3_sitelib}/flask_admin/tests/
05ed87c
%{python3_sitelib}/flask_admin/contrib/
05ed87c
%{python3_sitelib}/flask_admin/model/
05ed87c
%{python3_sitelib}/flask_admin/templates/
05ed87c
%{python3_sitelib}/flask_admin/form/
05ed87c
%{python3_sitelib}/*.egg-info/
05ed87c
05ed87c
%changelog
1b1c1a8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-2
1b1c1a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1b1c1a8
79a0b56
* Sun Jun 28 2020 Kevin Fenzi <kevin@scrye.com> - 1.5.6-1
79a0b56
- Update to 1.5.6. Fixes CVE-2018-16516.
79a0b56
c6147d9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-8
c6147d9
- Rebuilt for Python 3.9
c6147d9
ff1e786
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-7
ff1e786
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ff1e786
de10ad4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-6
de10ad4
- Rebuilt for Python 3.8.0rc1 (#1748018)
de10ad4
50b738e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-5
50b738e
- Rebuilt for Python 3.8
50b738e
e8ac1ab
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
e8ac1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e8ac1ab
942888d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
942888d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
942888d
4085718
* Mon Jan 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-2
4085718
- Subpackage python2-flask-admin has been removed
4085718
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
4085718
dfb2eb1
* Mon Aug 27 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.5.2-1
dfb2eb1
- New version 1.5.2
dfb2eb1
ab87c67
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
ab87c67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ab87c67
89e4295
* Mon Jun 25 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.5.1-1
89e4295
- New version 1.5.1
89e4295
9839a37
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-5
9839a37
- Rebuilt for Python 3.7
9839a37
a097272
* Thu Feb 15 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.5.0-4
a097272
- make spec file compatible with epel7
aaa9ba2
- fix bz #1389045
a097272
614f009
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
614f009
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
614f009
98b9f73
* Wed Jan 03 2018 Lumír Balhar <lbalhar@redhat.com> - 1.5.0-2
98b9f73
- Fix directory ownership in python3 subpackage
98b9f73
cb61402
* Mon Dec 18 2017 Jan Beran <jberan@redhat.com> - 1.5.0-1
cb61402
- New version 1.5.0
cb61402
- Fix of the single package dependence on both Python 2 and Python 3
cb61402
34952ec
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.2-5
34952ec
- Python 2 binary package renamed to python2-flask-admin
34952ec
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
34952ec
b28f607
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-4
b28f607
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b28f607
d41bf91
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
d41bf91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d41bf91
ba492a6
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.2-2
ba492a6
- Rebuild for Python 3.6
ba492a6
05ed87c
* Sat Oct 08 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 1.4.2-1
05ed87c
- Unretired and upgrade to new upstream release
05ed87c
05ed87c
* Fri Feb 12 2016 Sebastian Dyroff <sdyroff@fedoraproject.org> - 1.2.0-2
05ed87c
- add python3 package
05ed87c
05ed87c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
05ed87c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
05ed87c
05ed87c
* Sun Aug 09 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.2.0-1
05ed87c
- Update to 1.2.0
05ed87c
05ed87c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
05ed87c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
05ed87c
05ed87c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-2
05ed87c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
05ed87c
05ed87c
* Tue Apr 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.8-1
05ed87c
- Updated to 1.0.8
05ed87c
- Removed unnecessary requires
05ed87c
05ed87c
* Wed Jan 08 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.7-1
05ed87c
- Updated to 1.0.7
05ed87c
05ed87c
* Tue Aug 13 2013 Matej Stuchlik <mstuchli@redhat.com> - 1.0.6-1
05ed87c
- Updated to 1.0.6
05ed87c
05ed87c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-4
05ed87c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
05ed87c
05ed87c
* Wed May 08 2013 Matej Stuchlik <mstuchli@redhat.com> - 1.0.5-3
05ed87c
- Requires fixes
05ed87c
05ed87c
* Wed Apr 24 2013 Matej Stuchlik <mstuchli@redhat.com> - 1.0.5-2
05ed87c
- Review fixes
05ed87c
05ed87c
* Tue Mar 19 2013 mstuchli <mstuchli@redhat.com> - 1.0.5-1
05ed87c
- Initial spec