diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:19:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:19:03 +0000 |
commit | 082b895aff835558f3d69dd379148a9da8065d74 (patch) | |
tree | f197bc27cbb757a56c182d34db51747f4a95e1ac /python-flask-first.spec | |
parent | 84a0020c603a8c2c227a05a380a355b5e4d51bd7 (diff) |
automatic import of python-Flask-Firstopeneuler20.03
Diffstat (limited to 'python-flask-first.spec')
-rw-r--r-- | python-flask-first.spec | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/python-flask-first.spec b/python-flask-first.spec new file mode 100644 index 0000000..dc7eea9 --- /dev/null +++ b/python-flask-first.spec @@ -0,0 +1,99 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-First +Version: 0.13.2 +Release: 1 +Summary: Flask extension for using "specification first" principle via OpenAPI specification. +License: MIT +URL: https://github.com/flask-pro/flask-first +Source0: https://mirrors.aliyun.com/pypi/web/packages/a6/29/32b051f946c772b050a7426f3f34c1cbed1939089abcd99afb2a08940d82/Flask-First-0.13.2.tar.gz +BuildArch: noarch + +Requires: python3-Flask +Requires: python3-openapi-spec-validator +Requires: python3-marshmallow + +%description +Will be added in future releases. +* Full specification in one file. +* Headers not supported. +* Authorization not supported. +## Installing +Install and update using `pip`: +```shell +$ pip install flask_first +``` + +%package -n python3-Flask-First +Summary: Flask extension for using "specification first" principle via OpenAPI specification. +Provides: python-Flask-First +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-First +Will be added in future releases. +* Full specification in one file. +* Headers not supported. +* Authorization not supported. +## Installing +Install and update using `pip`: +```shell +$ pip install flask_first +``` + +%package help +Summary: Development documents and examples for Flask-First +Provides: python3-Flask-First-doc +%description help +Will be added in future releases. +* Full specification in one file. +* Headers not supported. +* Authorization not supported. +## Installing +Install and update using `pip`: +```shell +$ pip install flask_first +``` + +%prep +%autosetup -n Flask-First-0.13.2 + +%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-First -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.2-1 +- Package Spec generated |