diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:19:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:19:08 +0000 |
commit | a4d562504cc70fab004045b1ec49dea6ae2e9c2a (patch) | |
tree | 0ee745bcf2879e39ef699cdf127f37151bdb5313 | |
parent | da7b328c4cb47ac64bc3b9b459343d67b2a02136 (diff) |
automatic import of python-fondat-postgresqlopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-fondat-postgresql.spec | 143 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 145 insertions, 0 deletions
@@ -0,0 +1 @@ +/fondat-postgresql-4.0.7.tar.gz diff --git a/python-fondat-postgresql.spec b/python-fondat-postgresql.spec new file mode 100644 index 0000000..f7e2c4e --- /dev/null +++ b/python-fondat-postgresql.spec @@ -0,0 +1,143 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fondat-postgresql +Version: 4.0.7 +Release: 1 +Summary: Fondat module for PostgreSQL. +License: MIT +URL: https://github.com/fondat/fondat-postgresql/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/20/92/6f3f67febcc6d338fbb0485fb4b590dd18b3043568932c792de983a767af/fondat-postgresql-4.0.7.tar.gz +BuildArch: noarch + +Requires: python3-fondat +Requires: python3-asyncpg + +%description +# fondat-postgresql + +[](https://badge.fury.io/py/fondat-postgresql) +[](https://python.org/) +[](https://github.com/fondat/fondat-postgresql/) +[](https://github.com/fondat/fondat-postgresql/actions?query=workflow/test) +[](https://github.com/fondat/fondat-postgresql/blob/main/LICENSE) +[](https://github.com/psf/black) + +Fondat module for PostgreSQL. + +## Develop + +``` +poetry install +poetry run pre-commit install +``` + +## Test + +``` +poetry run pytest +``` + + +%package -n python3-fondat-postgresql +Summary: Fondat module for PostgreSQL. +Provides: python-fondat-postgresql +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-fondat-postgresql +# fondat-postgresql + +[](https://badge.fury.io/py/fondat-postgresql) +[](https://python.org/) +[](https://github.com/fondat/fondat-postgresql/) +[](https://github.com/fondat/fondat-postgresql/actions?query=workflow/test) +[](https://github.com/fondat/fondat-postgresql/blob/main/LICENSE) +[](https://github.com/psf/black) + +Fondat module for PostgreSQL. + +## Develop + +``` +poetry install +poetry run pre-commit install +``` + +## Test + +``` +poetry run pytest +``` + + +%package help +Summary: Development documents and examples for fondat-postgresql +Provides: python3-fondat-postgresql-doc +%description help +# fondat-postgresql + +[](https://badge.fury.io/py/fondat-postgresql) +[](https://python.org/) +[](https://github.com/fondat/fondat-postgresql/) +[](https://github.com/fondat/fondat-postgresql/actions?query=workflow/test) +[](https://github.com/fondat/fondat-postgresql/blob/main/LICENSE) +[](https://github.com/psf/black) + +Fondat module for PostgreSQL. + +## Develop + +``` +poetry install +poetry run pre-commit install +``` + +## Test + +``` +poetry run pytest +``` + + +%prep +%autosetup -n fondat-postgresql-4.0.7 + +%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-fondat-postgresql -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.7-1 +- Package Spec generated @@ -0,0 +1 @@ +489b0bf744d616e987446bcd15978e36 fondat-postgresql-4.0.7.tar.gz |