summaryrefslogtreecommitdiff
path: root/python-queries.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 08:53:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 08:53:34 +0000
commit7b7bbc666605e410a039d8770866f1aab2cd2efc (patch)
tree9afcf3688b81f76c75b81906eb80cc1733e31ac9 /python-queries.spec
parent948d7272b3152891d6b7933642e88c641e7750e9 (diff)
automatic import of python-queries
Diffstat (limited to 'python-queries.spec')
-rw-r--r--python-queries.spec123
1 files changed, 123 insertions, 0 deletions
diff --git a/python-queries.spec b/python-queries.spec
new file mode 100644
index 0000000..4d88871
--- /dev/null
+++ b/python-queries.spec
@@ -0,0 +1,123 @@
+%global _empty_manifest_terminate_build 0
+Name: python-queries
+Version: 2.1.1
+Release: 1
+Summary: Simplified PostgreSQL client built upon Psycopg2
+License: BSD
+URL: https://github.com/gmr/queries
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/38/ae/82c8d9e7d3da6c5265dc695cb751340be47af1276964a86f905a8218d68f/queries-2.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+*Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for
+interacting with PostgreSQL.
+The popular psycopg2_ package is a full-featured python client. Unfortunately
+as a developer, you're often repeating the same steps to get started with your
+applications that use it. Queries aims to reduce the complexity of psycopg2
+while adding additional features to make writing PostgreSQL client applications
+both fast and easy. Check out the `Usage`_ section below to see how easy it can be.
+Key features include:
+- Simplified API
+- Support of Python 2.7+ and 3.4+
+- PyPy support via psycopg2cffi_
+- Asynchronous support for Tornado_
+- Connection information provided by URI
+- Query results delivered as a generator based iterators
+- Automatically registered data-type support for UUIDs, Unicode and Unicode Arrays
+- Ability to directly access psycopg2 ``connection`` and ``cursor`` objects
+- Internal connection pooling
+|Version| |Status| |Coverage| |License|
+
+%package -n python3-queries
+Summary: Simplified PostgreSQL client built upon Psycopg2
+Provides: python-queries
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-queries
+*Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for
+interacting with PostgreSQL.
+The popular psycopg2_ package is a full-featured python client. Unfortunately
+as a developer, you're often repeating the same steps to get started with your
+applications that use it. Queries aims to reduce the complexity of psycopg2
+while adding additional features to make writing PostgreSQL client applications
+both fast and easy. Check out the `Usage`_ section below to see how easy it can be.
+Key features include:
+- Simplified API
+- Support of Python 2.7+ and 3.4+
+- PyPy support via psycopg2cffi_
+- Asynchronous support for Tornado_
+- Connection information provided by URI
+- Query results delivered as a generator based iterators
+- Automatically registered data-type support for UUIDs, Unicode and Unicode Arrays
+- Ability to directly access psycopg2 ``connection`` and ``cursor`` objects
+- Internal connection pooling
+|Version| |Status| |Coverage| |License|
+
+%package help
+Summary: Development documents and examples for queries
+Provides: python3-queries-doc
+%description help
+*Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for
+interacting with PostgreSQL.
+The popular psycopg2_ package is a full-featured python client. Unfortunately
+as a developer, you're often repeating the same steps to get started with your
+applications that use it. Queries aims to reduce the complexity of psycopg2
+while adding additional features to make writing PostgreSQL client applications
+both fast and easy. Check out the `Usage`_ section below to see how easy it can be.
+Key features include:
+- Simplified API
+- Support of Python 2.7+ and 3.4+
+- PyPy support via psycopg2cffi_
+- Asynchronous support for Tornado_
+- Connection information provided by URI
+- Query results delivered as a generator based iterators
+- Automatically registered data-type support for UUIDs, Unicode and Unicode Arrays
+- Ability to directly access psycopg2 ``connection`` and ``cursor`` objects
+- Internal connection pooling
+|Version| |Status| |Coverage| |License|
+
+%prep
+%autosetup -n queries-2.1.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-queries -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.1-1
+- Package Spec generated