summaryrefslogtreecommitdiff
path: root/python-py2neo.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-py2neo.spec')
-rw-r--r--python-py2neo.spec95
1 files changed, 95 insertions, 0 deletions
diff --git a/python-py2neo.spec b/python-py2neo.spec
new file mode 100644
index 0000000..14bfa66
--- /dev/null
+++ b/python-py2neo.spec
@@ -0,0 +1,95 @@
+%global _empty_manifest_terminate_build 0
+Name: python-py2neo
+Version: 2021.2.3
+Release: 1
+Summary: Python client library and toolkit for Neo4j
+License: Apache License, Version 2.0
+URL: https://py2neo.org/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2b/52/6d05c57df05fa102651b3c7ee18c1759f346d634f38c36dd1aebcc36bced/py2neo-2021.2.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-certifi
+Requires: python3-interchange
+Requires: python3-monotonic
+Requires: python3-packaging
+Requires: python3-pansi
+Requires: python3-pygments
+Requires: python3-six
+Requires: python3-urllib3
+
+%description
+**Py2neo** is a client library and toolkit for working with `Neo4j <https://neo4j.com/>`_ from within `Python <https://www.python.org/>`_ applications.
+The library supports both Bolt and HTTP and provides a high level API, an OGM, admin tools, a Cypher lexer for Pygments, and many other bells and whistles.
+Command line tooling has been removed from the library in py2neo 2021.2.
+This functionality now exists in the separate **ipy2neo** project.
+As of version 2021.1, py2neo contains full support for routing, as exposed by a Neo4j cluster.
+This can be enabled using a ``neo4j://...`` URI or by passing ``routing=True`` to a ``Graph`` constructor.
+
+%package -n python3-py2neo
+Summary: Python client library and toolkit for Neo4j
+Provides: python-py2neo
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-py2neo
+**Py2neo** is a client library and toolkit for working with `Neo4j <https://neo4j.com/>`_ from within `Python <https://www.python.org/>`_ applications.
+The library supports both Bolt and HTTP and provides a high level API, an OGM, admin tools, a Cypher lexer for Pygments, and many other bells and whistles.
+Command line tooling has been removed from the library in py2neo 2021.2.
+This functionality now exists in the separate **ipy2neo** project.
+As of version 2021.1, py2neo contains full support for routing, as exposed by a Neo4j cluster.
+This can be enabled using a ``neo4j://...`` URI or by passing ``routing=True`` to a ``Graph`` constructor.
+
+%package help
+Summary: Development documents and examples for py2neo
+Provides: python3-py2neo-doc
+%description help
+**Py2neo** is a client library and toolkit for working with `Neo4j <https://neo4j.com/>`_ from within `Python <https://www.python.org/>`_ applications.
+The library supports both Bolt and HTTP and provides a high level API, an OGM, admin tools, a Cypher lexer for Pygments, and many other bells and whistles.
+Command line tooling has been removed from the library in py2neo 2021.2.
+This functionality now exists in the separate **ipy2neo** project.
+As of version 2021.1, py2neo contains full support for routing, as exposed by a Neo4j cluster.
+This can be enabled using a ``neo4j://...`` URI or by passing ``routing=True`` to a ``Graph`` constructor.
+
+%prep
+%autosetup -n py2neo-2021.2.3
+
+%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-py2neo -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2021.2.3-1
+- Package Spec generated