diff --git a/Flask-Admin-1.5.8.tar.gz b/Flask-Admin-1.6.1.tar.gz similarity index 48% rename from Flask-Admin-1.5.8.tar.gz rename to Flask-Admin-1.6.1.tar.gz index 58708034e4afbe100ca5ec16d146004578fabb9f..3905324abe421996757a3a437ca561a0a7d1c55a 100644 Binary files a/Flask-Admin-1.5.8.tar.gz and b/Flask-Admin-1.6.1.tar.gz differ diff --git a/python-Flask-Admin.spec b/python-Flask-Admin.spec new file mode 100644 index 0000000000000000000000000000000000000000..a7aa7af544788dfeb89894c9e121fede264b7079 --- /dev/null +++ b/python-Flask-Admin.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-Admin +Version: 1.6.1 +Release: 1 +Summary: %{sum} +License: BSD +URL: https://github.com/flask-admin/flask-admin/ +Source0: https://files.pythonhosted.org/packages/be/4d/7cad383a93e3e1dd9378f1fcf05ddc532c6d921fb30c19ce8f8583630f24/Flask-Admin-1.6.1.tar.gz +BuildArch: noarch + +%description + + +%package -n python3-Flask-Admin +Summary: %{sum} +Provides: python-Flask-Admin = %{version}-%{release} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-flask +Requires: python%{python3_pkgversion}-wtforms +%description -n python3-Flask-Admin + + +%package help +Summary: Development documents and examples for Flask-Admin +Provides: python3-Flask-Admin-doc +%description help + + +%prep +%autosetup -n Flask-Admin-%{version} + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-Flask-Admin -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Jul 05 2023 zhangchenglin - 1.6.1-1 +- Update package to version 1.6.1 + +* Fri Jun 25 2021 liuliang - 1.5.8-1 +- Package init diff --git a/python-flask-admin.spec b/python-flask-admin.spec deleted file mode 100644 index 378d6ad6888d31a0603aff617e549bca60d004c7..0000000000000000000000000000000000000000 --- a/python-flask-admin.spec +++ /dev/null @@ -1,84 +0,0 @@ -%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: 1 -Summary: %{sum} -License: BSD -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 -* Fri Jun 25 2021 liuliang - 1.5.8-1 -- Package init