diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:26:57 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:26:57 +0000 |
commit | b0bc7f65faa471fe8de97d555c091be525416721 (patch) | |
tree | 994e8e1dd3ea8bb52122b45142bd260af1ab9f90 | |
parent | f178abee30f77ae41deeca965a00c242d67a0e7f (diff) |
automatic import of python-flask-mysqldb
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-flask-mysqldb.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/Flask-MySQLdb-1.0.1.tar.gz diff --git a/python-flask-mysqldb.spec b/python-flask-mysqldb.spec new file mode 100644 index 0000000..504c88e --- /dev/null +++ b/python-flask-mysqldb.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-MySQLdb +Version: 1.0.1 +Release: 1 +Summary: MySQLdb extension for Flask +License: MIT +URL: https://github.com/alexferl/flask-mysqldb +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/65/5c/2a116c53024f74e8b45f8b50f70ff908d0382eb5ecb0e4addd8413d0c0eb/Flask-MySQLdb-1.0.1.tar.gz +BuildArch: noarch + + +%description +Flask-MySQLdb provides MySQL connection for Flask. + +%package -n python3-Flask-MySQLdb +Summary: MySQLdb extension for Flask +Provides: python-Flask-MySQLdb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-MySQLdb +Flask-MySQLdb provides MySQL connection for Flask. + +%package help +Summary: Development documents and examples for Flask-MySQLdb +Provides: python3-Flask-MySQLdb-doc +%description help +Flask-MySQLdb provides MySQL connection for Flask. + +%prep +%autosetup -n Flask-MySQLdb-1.0.1 + +%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-MySQLdb -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +e8c435afec1a4aa3c13294c4e11a90c6 Flask-MySQLdb-1.0.1.tar.gz |