diff options
Diffstat (limited to 'python-pyorient.spec')
| -rw-r--r-- | python-pyorient.spec | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/python-pyorient.spec b/python-pyorient.spec new file mode 100644 index 0000000..48439db --- /dev/null +++ b/python-pyorient.spec @@ -0,0 +1,117 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyorient +Version: 1.5.5 +Release: 1 +Summary: OrientDB native client library +License: LICENSE +URL: https://pypi.org/project/pyorient/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/13/cfab515139c58f86e7c42c64b1b740d28a13d60f8eb2a427effbfcba17b4/pyorient-1.5.5.tar.gz +BuildArch: noarch + + +%description +`Orientdb <http://www.orientechnologies.com>`_ driver for python that uses the binary protocol. +Pyorient works with orientdb version 1.7 and later. +**Warning** Some issues are experimented with record_create/record_upload and OrientDB < 2.0. These command are strongly discouraged with these versions +**NOTICE** Prior to version 1.4.7 there was a potential SQL injection vulnerability that now is fixed. (see `details <https://github.com/mogui/pyorient/pull/172>`_ ) +Installation +************ + pip install pyorient +How to contribute +***************** +- Fork the project +- work on **develop** branch +- Make your changes +- Add tests for it. This is important so I don't break it in a future version unintentionally +- Send me a pull request *(pull request to master will be rejected)* +- ??? +- PROFIT + +%package -n python3-pyorient +Summary: OrientDB native client library +Provides: python-pyorient +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyorient +`Orientdb <http://www.orientechnologies.com>`_ driver for python that uses the binary protocol. +Pyorient works with orientdb version 1.7 and later. +**Warning** Some issues are experimented with record_create/record_upload and OrientDB < 2.0. These command are strongly discouraged with these versions +**NOTICE** Prior to version 1.4.7 there was a potential SQL injection vulnerability that now is fixed. (see `details <https://github.com/mogui/pyorient/pull/172>`_ ) +Installation +************ + pip install pyorient +How to contribute +***************** +- Fork the project +- work on **develop** branch +- Make your changes +- Add tests for it. This is important so I don't break it in a future version unintentionally +- Send me a pull request *(pull request to master will be rejected)* +- ??? +- PROFIT + +%package help +Summary: Development documents and examples for pyorient +Provides: python3-pyorient-doc +%description help +`Orientdb <http://www.orientechnologies.com>`_ driver for python that uses the binary protocol. +Pyorient works with orientdb version 1.7 and later. +**Warning** Some issues are experimented with record_create/record_upload and OrientDB < 2.0. These command are strongly discouraged with these versions +**NOTICE** Prior to version 1.4.7 there was a potential SQL injection vulnerability that now is fixed. (see `details <https://github.com/mogui/pyorient/pull/172>`_ ) +Installation +************ + pip install pyorient +How to contribute +***************** +- Fork the project +- work on **develop** branch +- Make your changes +- Add tests for it. This is important so I don't break it in a future version unintentionally +- Send me a pull request *(pull request to master will be rejected)* +- ??? +- PROFIT + +%prep +%autosetup -n pyorient-1.5.5 + +%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-pyorient -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.5-1 +- Package Spec generated |
