commit 371609c26c890ed889007201a10040611edac98c564ed960cbf5298d109c8876 Author: Pascal Bleser Date: Mon Aug 9 15:46:18 2010 +0000 3.7.0.1-r1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apsw-3.7.0.1-r1.tar.bz2 b/apsw-3.7.0.1-r1.tar.bz2 new file mode 100644 index 0000000..b94a1bf --- /dev/null +++ b/apsw-3.7.0.1-r1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b80c4f5e524726c250ddbcd4f74148af2d4385d331c2828117d2ed71832e93d +size 373695 diff --git a/python-apsw.changes b/python-apsw.changes new file mode 100644 index 0000000..bf90bc2 --- /dev/null +++ b/python-apsw.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Aug 9 15:40:35 UTC 2010 - pascal.bleser@opensuse.org + +- initial package (3.7.0.1-r1) + diff --git a/python-apsw.spec b/python-apsw.spec new file mode 100644 index 0000000..79313f7 --- /dev/null +++ b/python-apsw.spec @@ -0,0 +1,90 @@ +# vim: set sw=4 ts=4 et nu: +# norootforbuild + +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +Name: python-apsw +Version: 3.7.0.1+r1 +%define pkg_version 3.7.0.1-r1 +%define sqlite_version 3.7.0.1 +Release: 0 +Summary: Another Python SQLite Wrapper +# http://apsw.googlecode.com/files/apsw-%{pkg_version}.zip +Source: apsw-%{pkg_version}.tar.bz2 +# http://www.sqlite.org/sqlite-amalgamation-%{sqlite_version}.tar.gz +Source1: sqlite-amalgamation-%{sqlite_version}.tar.bz2 +Patch11: sqlite-fix_pointer_casts.patch +URL: http://code.google.com/p/apsw/ +Group: Development/Libraries/Python +License: zlib/libpng License +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: python python-devel +BuildRequires: gcc glibc-devel make pkgconfig autoconf automake libtool +BuildConflicts: sqlite3-devel +%py_requires + +%description +APSW is a Python wrapper for the SQLite embedded relational database +engine. In contrast to other wrappers such as pysqlite it focuses on +being a minimal layer over SQLite attempting just to translate the +complete SQLite API into Python. + +%package doc +Summary: Another Python SQLite Wrapper - Documentation +Group: Development/Libraries/Python +License: zlib/libpng License +%if 0%{?suse_version} >= 1130 +BuildArch: noarch +%endif + +%description doc +APSW is a Python wrapper for the SQLite embedded relational database +engine. In contrast to other wrappers such as pysqlite it focuses on +being a minimal layer over SQLite attempting just to translate the +complete SQLite API into Python. + +%debug_package +%prep +%setup -q -T -b 1 -n "sqlite-%{sqlite_version}" +%setup -q -n "apsw-%{pkg_version}" +%__mv ../sqlite-%{sqlite_version} ./sqlite3 +pushd sqlite3 +%patch11 +popd #sqlite3 + +%build +pushd sqlite3 +CFLAGS="%{optflags} -fPIC -fstack-protector" \ +%configure --enable-threadsafe +%__make %{?jobs:-j%jobs} +%__ln_s .libs/*.a . +popd #sqlite3 + +CFLAGS="%{optflags} -fno-strict-aliasing" \ +%__python ./setup.py build + +%install +%__python ./setup.py \ + install \ + --prefix="%{_prefix}" \ + --root="%{buildroot}" \ + --record-rpm=files.lst + +%__rm doc/.buildinfo + +%__install -d "%{buildroot}%{_docdir}/%{name}" +%__cp -a doc/* "%{buildroot}%{_docdir}/%{name}/" + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files -f files.lst +%defattr(-,root,root) +%dir %{_docdir}/%{name} + +%files doc +%defattr(-,root,root) +%dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/* + diff --git a/sqlite-amalgamation-3.7.0.1.tar.bz2 b/sqlite-amalgamation-3.7.0.1.tar.bz2 new file mode 100644 index 0000000..569de15 --- /dev/null +++ b/sqlite-amalgamation-3.7.0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa83857ec7e698cce862b45e16ec2c2e6feee5ef4804d68a28d8884c97952a3d +size 1107921 diff --git a/sqlite-fix_pointer_casts.patch b/sqlite-fix_pointer_casts.patch new file mode 100644 index 0000000..44d4eb7 --- /dev/null +++ b/sqlite-fix_pointer_casts.patch @@ -0,0 +1,20 @@ +--- sqlite3.c.orig 2010-08-09 17:30:07.000000000 +0200 ++++ sqlite3.c 2010-08-09 17:30:56.000000000 +0200 +@@ -570,6 +570,8 @@ + #define _SQLITE3_H_ + #include /* Needed for the definition of va_list */ + ++#include /* Needed for intptr_t */ ++ + /* + ** Make sure we can call this stuff from C++. + */ +@@ -117745,7 +117747,7 @@ + Rtree *pRtree; + int nDb; /* Length of string argv[1] */ + int nName; /* Length of string argv[2] */ +- int eCoordType = (int)pAux; ++ intptr_t eCoordType = (intptr_t)pAux; + + const char *aErrMsg[] = { + 0, /* 0 */