From 037180394bb3076e809f43e07bb6c61076eb1a23 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Wed, 15 Feb 2023 15:18:12 +0900 Subject: [PATCH] Bump to python3-sqlite 0.5.0 Change-Id: Id3b88c646c4836fbd0e926c0273a9689af763679 Signed-off-by: JinWang An --- packaging/python3-sqlite.manifest | 5 ++++ packaging/python3-sqlite.spec | 39 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 packaging/python3-sqlite.manifest create mode 100644 packaging/python3-sqlite.spec diff --git a/packaging/python3-sqlite.manifest b/packaging/python3-sqlite.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-sqlite.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-sqlite.spec b/packaging/python3-sqlite.spec new file mode 100644 index 0000000..c6f0e86 --- /dev/null +++ b/packaging/python3-sqlite.spec @@ -0,0 +1,39 @@ +Name: python3-sqlite +Version: 0.5.0 +Release: 0 +Summary: DB-API 2.0 interface for SQLite 3.x +License: Zlib +Group: Platform Development/Python +Url: https://github.com/coleifer/pysqlite3 +Source: %{name}-%{version}.tar.gz +Source1001: python3-sqlite.manifest + +BuildRequires: pkgconfig(python3) +BuildRequires: sqlite3-devel +BuildRequires: python3-setuptools + +Requires: sqlite3 + +%description +Python3 interface to SQLite 3 +pysqlite is an interface to the SQLite 3.x embedded relational database engine. +It is almost fully compliant with the Python3 database API version 2.0 also +exposes the unique features of SQLite. + +%prep +%setup -q -n pysqlite3-%{version} +cp %{SOURCE1001} . + +%build +export CFLAGS="%{optflags}" +%{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm -rf %{buildroot}%{_prefix}/pysqlite3-doc # Remove wrongly installed junk + +%files +%manifest %{name}.manifest +%license LICENSE +%{python3_sitearch}/pysqlite3/ +%{python3_sitearch}/pysqlite3-%{version}-py*.egg-info -- 2.34.1