diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-spartacus.spec | 321 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 323 insertions, 0 deletions
@@ -0,0 +1 @@ +/Spartacus-3.47.tar.gz diff --git a/python-spartacus.spec b/python-spartacus.spec new file mode 100644 index 0000000..ca1e70b --- /dev/null +++ b/python-spartacus.spec @@ -0,0 +1,321 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Spartacus +Version: 3.47 +Release: 1 +Summary: Generic database wrapper +License: MIT +URL: http://github.com/wind39/spartacus +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/de/b0/a4da16b42eeaf7ff8f26eebdbc16b1120e46f01f9695289da797db8ba779/Spartacus-3.47.tar.gz +BuildArch: noarch + + +%description +Spartacus is a database wrapper for the most widely used RDBMS Python drivers. + +Currently, Spartacus supports: + +* SQLite + + pip install Spartacus + +* Memory (in-memory SQLite) + + pip install Spartacus + +* PostgreSQL + + pip install Spartacus[postgresql] + +* MySQL + + pip install Spartacus[mysql] + +* MariaDB + + pip install Spartacus[mariadb] + +* Firebird + + pip install Spartacus[firebird] + +* Oracle + + # make sure you have Oracle Database or Instant Client installed and configured + pip install Spartacus[oracle] + +* MS SQL + + sudo apt install freetds-bin freetds-dev + pip install Spartacus[mssql] + +* IBM DB2 + + pip install Spartacus[ibmdb2] + +* All supported RDBMS: + + pip install Spartacus[complete] + +Instantiate this way: + +SQLite + + v_database = Spartacus.Database.SQLite('../employees.db') + +Memory + + v_database = Spartacus.Database.Memory() + +PostgreSQL + + v_database = Spartacus.Database.PostgreSQL('127.0.0.1', '5432', 'employees', 'william', 'password') + +MySQL + + v_database = Spartacus.Database.MySQL('127.0.0.1', '3306', 'employees', 'root', 'password') + +MariaDB + + v_database = Spartacus.Database.MariaDB('127.0.0.1', '3306', 'employees', 'root', 'password') + +Firebird + + v_database = Spartacus.Database.Firebird('127.0.0.1', '3050', '/path/to/employees.fdb', 'sysdba', 'masterkey') + +Oracle + + v_database = Spartacus.Database.Oracle('127.0.0.1', '1521', 'XE', 'employees', 'password') + +Microsoft SQL Server + + v_database = Spartacus.Database.MSSQL('127.0.0.1', '1433', 'employees', 'sa', 'password') + +IBM DB2 + + v_database = Spartacus.Database.IBMDB2('127.0.0.1', '50000', 'employes', 'db2inst1', 'password') + + +%package -n python3-Spartacus +Summary: Generic database wrapper +Provides: python-Spartacus +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Spartacus +Spartacus is a database wrapper for the most widely used RDBMS Python drivers. + +Currently, Spartacus supports: + +* SQLite + + pip install Spartacus + +* Memory (in-memory SQLite) + + pip install Spartacus + +* PostgreSQL + + pip install Spartacus[postgresql] + +* MySQL + + pip install Spartacus[mysql] + +* MariaDB + + pip install Spartacus[mariadb] + +* Firebird + + pip install Spartacus[firebird] + +* Oracle + + # make sure you have Oracle Database or Instant Client installed and configured + pip install Spartacus[oracle] + +* MS SQL + + sudo apt install freetds-bin freetds-dev + pip install Spartacus[mssql] + +* IBM DB2 + + pip install Spartacus[ibmdb2] + +* All supported RDBMS: + + pip install Spartacus[complete] + +Instantiate this way: + +SQLite + + v_database = Spartacus.Database.SQLite('../employees.db') + +Memory + + v_database = Spartacus.Database.Memory() + +PostgreSQL + + v_database = Spartacus.Database.PostgreSQL('127.0.0.1', '5432', 'employees', 'william', 'password') + +MySQL + + v_database = Spartacus.Database.MySQL('127.0.0.1', '3306', 'employees', 'root', 'password') + +MariaDB + + v_database = Spartacus.Database.MariaDB('127.0.0.1', '3306', 'employees', 'root', 'password') + +Firebird + + v_database = Spartacus.Database.Firebird('127.0.0.1', '3050', '/path/to/employees.fdb', 'sysdba', 'masterkey') + +Oracle + + v_database = Spartacus.Database.Oracle('127.0.0.1', '1521', 'XE', 'employees', 'password') + +Microsoft SQL Server + + v_database = Spartacus.Database.MSSQL('127.0.0.1', '1433', 'employees', 'sa', 'password') + +IBM DB2 + + v_database = Spartacus.Database.IBMDB2('127.0.0.1', '50000', 'employes', 'db2inst1', 'password') + + +%package help +Summary: Development documents and examples for Spartacus +Provides: python3-Spartacus-doc +%description help +Spartacus is a database wrapper for the most widely used RDBMS Python drivers. + +Currently, Spartacus supports: + +* SQLite + + pip install Spartacus + +* Memory (in-memory SQLite) + + pip install Spartacus + +* PostgreSQL + + pip install Spartacus[postgresql] + +* MySQL + + pip install Spartacus[mysql] + +* MariaDB + + pip install Spartacus[mariadb] + +* Firebird + + pip install Spartacus[firebird] + +* Oracle + + # make sure you have Oracle Database or Instant Client installed and configured + pip install Spartacus[oracle] + +* MS SQL + + sudo apt install freetds-bin freetds-dev + pip install Spartacus[mssql] + +* IBM DB2 + + pip install Spartacus[ibmdb2] + +* All supported RDBMS: + + pip install Spartacus[complete] + +Instantiate this way: + +SQLite + + v_database = Spartacus.Database.SQLite('../employees.db') + +Memory + + v_database = Spartacus.Database.Memory() + +PostgreSQL + + v_database = Spartacus.Database.PostgreSQL('127.0.0.1', '5432', 'employees', 'william', 'password') + +MySQL + + v_database = Spartacus.Database.MySQL('127.0.0.1', '3306', 'employees', 'root', 'password') + +MariaDB + + v_database = Spartacus.Database.MariaDB('127.0.0.1', '3306', 'employees', 'root', 'password') + +Firebird + + v_database = Spartacus.Database.Firebird('127.0.0.1', '3050', '/path/to/employees.fdb', 'sysdba', 'masterkey') + +Oracle + + v_database = Spartacus.Database.Oracle('127.0.0.1', '1521', 'XE', 'employees', 'password') + +Microsoft SQL Server + + v_database = Spartacus.Database.MSSQL('127.0.0.1', '1433', 'employees', 'sa', 'password') + +IBM DB2 + + v_database = Spartacus.Database.IBMDB2('127.0.0.1', '50000', 'employes', 'db2inst1', 'password') + + +%prep +%autosetup -n Spartacus-3.47 + +%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-Spartacus -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.47-1 +- Package Spec generated @@ -0,0 +1 @@ +952cd2e8a2a550ddcd03391a6731c7d8 Spartacus-3.47.tar.gz |
