]> git.pld-linux.org Git - packages/python-sqlite.git/blobdiff - python-sqlite.spec
- updated to 2.5.4 (fixes #339901)
[packages/python-sqlite.git] / python-sqlite.spec
index 083a3213b556b9cbe1cf8953cdd14164e3d4c457..a7ef3cac248913d39e3e370dd6c92ea25dcc8190 100644 (file)
@@ -2,19 +2,18 @@
 %define                module  sqlite
 
 Summary:       A DB API v2.0 compatible interface to SQLite
-Summary(pl):   Interfejs do SQLite kompatybilny z DB API v2.0
+Summary(pl.UTF-8):     Interfejs do SQLite kompatybilny z DB API v2.0
 Name:          python-%{module}
-Version:       1.1.1
-Release:       2
-License:       Free
+Version:       2.5.4
+Release:       1
+License:       zlib/libpng
 Group:         Development/Languages/Python
-Source0:       http://dl.sourceforge.net/pysqlite/pysqlite-%{version}.tar.gz
-# Source0-md5: b95fe36298288171fae227b67bfc09ac
-URL:           http://pysqlite.sourceforge.net/
+Source0:       http://oss.itsystementwicklung.de/download/pysqlite/2.5/%{version}/pysqlite-%{version}.tar.gz
+# Source0-md5: d165bdaf753870348018cee07ac1422c
+URL:           http://www.pysqlite.org/
 %pyrequires_eq python-modules
-BuildRequires: python-devel >= 1:2.3
-BuildRequires: rpm-pythonprov
-BuildRequires: sqlite3-devel
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: sqlite3-devel >= 3.6.11
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,16 +24,16 @@ is a result of SQLite's internal representation of data, however it
 still may be possible to return data in the type specified by the
 table definitions.
 
-%description -l pl
-Ten pakiet zawiera modu³ rozszerzenia dla osadzalnej relacyjnej bazy
-danych SQLite. Próbuje on byæ w zgodzie ze specyfikacj± Python DB-API
-v2 na tyle, na ile to mo¿liwe. Jednym problemem jest to, ¿e SQLite
-zwraca wszystko jako tekst. Jest to wynik wewnêtrznej reprezentacji
-danych przez SQLite; mimo to nadal jest mo¿liwe zwracanie danych typu
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł rozszerzenia dla osadzalnej relacyjnej bazy
+danych SQLite. Próbuje on być w zgodzie ze specyfikacją Python DB-API
+v2 na tyle, na ile to możliwe. Jednym problemem jest to, że SQLite
+zwraca wszystko jako tekst. Jest to wynik wewnętrznej reprezentacji
+danych przez SQLite; mimo to nadal jest możliwe zwracanie danych typu
 podanego w definicji tabeli.
 
 %prep
-%setup -q -n pysqlite
+%setup -q -n pysqlite-%{version}
 
 %build
 CFLAGS="%{rpmcflags}"
@@ -45,20 +44,22 @@ python setup.py build
 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
-cp -aR examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+rm -rf $RPM_BUILD_ROOT%{py_sitedir}/pysqlite2/{,test/}*.py \
+       $RPM_BUILD_ROOT%{_prefix}/pysqlite2-doc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README LICENSE doc/rest/manual.txt
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py[co]
-%dir %{_examplesdir}/%{name}-%{version}
-%{_examplesdir}/%{name}-%{version}/*
-%attr(755,root,root) %{py_sitedir}/_%{module}.so
+%doc doc/*.txt
+%dir %{py_sitedir}/pysqlite2
+%{py_sitedir}/*.egg-info
+%{py_sitedir}/pysqlite2/*.py[co]
+%attr(755,root,root) %{py_sitedir}/pysqlite2/_%{module}.so
+%dir %{py_sitedir}/pysqlite2/test
+%{py_sitedir}/pysqlite2/test/*.py[co]
This page took 0.077215 seconds and 4 git commands to generate.