diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:09:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:09:34 +0000 |
commit | 6797a7243a49e312833e3b867654b299e4b788a7 (patch) | |
tree | ab9258ec1b69db34834d2a88f53e220ff4baef60 | |
parent | 1084f23f18a8db1d778975eca6458a0398e74fa4 (diff) |
automatic import of python-flask-principal
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-flask-principal.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/Flask-Principal-0.4.0.tar.gz diff --git a/python-flask-principal.spec b/python-flask-principal.spec new file mode 100644 index 0000000..b6c90da --- /dev/null +++ b/python-flask-principal.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-Principal +Version: 0.4.0 +Release: 1 +Summary: Identity management for flask +License: MIT +URL: http://packages.python.org/Flask-Principal/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/c7/2531aca6ab7baa3774fde2dfc9c9dd6d5a42576a1013a93701bfdc402fdd/Flask-Principal-0.4.0.tar.gz +BuildArch: noarch + + +%description +Identity management for Flask. +Links +````` +* `documentation <http://packages.python.org/Flask-Principal/>`_ +* `source <https://github.com/mattupstate/flask-principal>`_ +* `development version + <https://github.com/mattupstate/flask-principal/raw/master#egg=Flask-Principal-dev>`_ + +%package -n python3-Flask-Principal +Summary: Identity management for flask +Provides: python-Flask-Principal +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-Principal +Identity management for Flask. +Links +````` +* `documentation <http://packages.python.org/Flask-Principal/>`_ +* `source <https://github.com/mattupstate/flask-principal>`_ +* `development version + <https://github.com/mattupstate/flask-principal/raw/master#egg=Flask-Principal-dev>`_ + +%package help +Summary: Development documents and examples for Flask-Principal +Provides: python3-Flask-Principal-doc +%description help +Identity management for Flask. +Links +````` +* `documentation <http://packages.python.org/Flask-Principal/>`_ +* `source <https://github.com/mattupstate/flask-principal>`_ +* `development version + <https://github.com/mattupstate/flask-principal/raw/master#egg=Flask-Principal-dev>`_ + +%prep +%autosetup -n Flask-Principal-0.4.0 + +%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-Principal -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +462d1345c9ddaddbec33a743e5821e2c Flask-Principal-0.4.0.tar.gz |