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