From dd84d2d8c69769977ac1eacb1158a401af3f94fa Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 17:35:25 +0000 Subject: automatic import of python-flask-api --- .gitignore | 1 + python-flask-api.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 python-flask-api.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ee3ddac 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Flask-API-3.0.post1.tar.gz diff --git a/python-flask-api.spec b/python-flask-api.spec new file mode 100644 index 0000000..2256956 --- /dev/null +++ b/python-flask-api.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-API +Version: 3.0.post1 +Release: 1 +Summary: Browsable web APIs for Flask. +License: BSD +URL: https://flask-api.github.io/flask-api/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/09/fec2ae84e25ebc1065c28ea675487c26007859dcb223673beda75811863e/Flask-API-3.0.post1.tar.gz +BuildArch: noarch + +Requires: python3-Flask + +%description +Browsable web APIs for Flask. + + + + +%package -n python3-Flask-API +Summary: Browsable web APIs for Flask. +Provides: python-Flask-API +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-API +Browsable web APIs for Flask. + + + + +%package help +Summary: Development documents and examples for Flask-API +Provides: python3-Flask-API-doc +%description help +Browsable web APIs for Flask. + + + + +%prep +%autosetup -n Flask-API-3.0.post1 + +%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 +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-API -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 3.0.post1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..0e8e454 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a2db874a066b3587f0302d26d3bb7bfa Flask-API-3.0.post1.tar.gz -- cgit v1.2.3