diff options
Diffstat (limited to 'python-fondat-postgresql.spec')
-rw-r--r-- | python-fondat-postgresql.spec | 143 |
1 files changed, 143 insertions, 0 deletions
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 |