diff --git python-flask-admin/python-flask-admin.spec python-flask-admin/python-flask-admin.spec.tmp index 0f83f321bd..ba3bc4cce8 100644 --- python-flask-admin/python-flask-admin.spec +++ python-flask-admin/python-flask-admin.spec.tmp @@ -4,7 +4,7 @@ Name: python-%{pkgname} Version: 1.4.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{sum} License: BSD URL: https://github.com/flask-admin/flask-admin/ @@ -12,22 +12,30 @@ Source0: https://github.com/flask-admin/flask-admin/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel python-setuptools python3-devel python3-setuptools -Requires: python-flask -Requires: python-wtforms -%description -Flask-Admin is advanced, extensible and simple to use administrative interface -building extension for Flask framework. +%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.\ -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 python2-%{pkgname} +Summary: %summary +Requires: python-flask +Requires: python-wtforms +%{?python_provide:%python_provide python2-%{pkgname}} + +%description -n python2-%{pkgname} %_description %package -n python3-%{pkgname} Summary: %{sum} @@ -79,7 +87,7 @@ rm flask_admin/translations/README.md (cd %{buildroot} && find . -name 'admin.mo')| %{__grep} -v python3.4 | %{__sed} -e 's|^.||' | %{__sed} -e 's:\(.*/translations/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' >> admin.lang (cd %{buildroot} && find . -name 'admin.mo') | %{__grep} -v python2.7 | %{__sed} -e 's|^.||' | %{__sed} -e 's:\(.*/translations/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' >> admin3.lang -%files -f admin.lang +%files -n python2-%{pkgname} -f admin.lang %defattr(644, -, -, 755) %license LICENSE %doc README.rst @@ -111,6 +119,10 @@ rm flask_admin/translations/README.md %{python3_sitelib}/*.egg-info/ %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 1.4.2-5 +- Python 2 binary package renamed to python2-flask-admin + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild