[Ac] python-sqlite
kiesiu
kiesyoo at o2.pl
Tue Mar 20 20:52:53 CET 2007
Hi.
Currently in Ac is python-sqlite-2.0.5-2 and sqlite3-3.3.10-1 which
don't work together because this version of pysqlite doesn't work with
sqlite3-3.3.3 and later[1].
A patch to AC-branch updating python-sqlite to newer version resolving
this problem is in attachment. I'll be grateful if someone with +w could
add it and STBR package.
ChangeLog:
- updated to 2.3.3
[1] - http://initd.org/tracker/pysqlite/wiki/2.0.7_Changelog
--
Łukasz "kiesiu" Kieś
-------------- next part --------------
--- python-sqlite.spec~ 2007-03-15 13:07:16.000000000 +0100
+++ python-sqlite.spec 2007-03-19 17:31:53.000000000 +0100
@@ -5,16 +5,16 @@
Summary: A DB API v2.0 compatible interface to SQLite
Summary(pl): Interfejs do SQLite kompatybilny z DB API v2.0
Name: python-%{module}
-Version: 2.0.5
-Release: 2
+Version: 2.3.3
+Release: 1
License: zlib/libpng
Group: Development/Languages/Python
-Source0: http://initd.org/pub/software/pysqlite/releases/2.0/%{version}/pysqlite-%{version}.tar.gz
-# Source0-md5: 574bbb4f7b3a077506689cbab0d9bf7f
+Source0: http://initd.org/pub/software/pysqlite/releases/2.3/%{version}/pysqlite-%{version}.tar.gz
+# Source0-md5: cac3e827f22befff8b6302109c6eff34
URL: http://www.pysqlite.org/
%pyrequires_eq python-modules
BuildRequires: python-devel >= 1:2.3
-BuildRequires: sqlite3-devel
+BuildRequires: sqlite3-devel >= 3.0.8
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -45,10 +45,12 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
-python setup.py install \
+PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir} \
+ python setup.py install \
--root=$RPM_BUILD_ROOT --optimize=2
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{module}/*.py
+rm -rf $RPM_BUILD_ROOT%{py_sitedir}/pysqlite2/{,test/}*.py \
+ $RPM_BUILD_ROOT%{_prefix}/pysqlite2-doc
cp -aR doc/code/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
@@ -56,7 +58,7 @@
%files
%defattr(644,root,root,755)
-%doc doc/*.html doc/*.css
+%doc doc/*.txt
%dir %{py_sitedir}/pysqlite2
%{py_sitedir}/pysqlite2/*.py[co]
%attr(755,root,root) %{py_sitedir}/pysqlite2/_%{module}.so
More information about the pld-devel-en
mailing list