From b1eefbe35b938645f6da3f2b010473bbddb4ccba Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Fri, 10 Apr 2020 15:45:11 +0900 Subject: [PATCH] Add packaging files Change-Id: Ia3c9da2d317854343a70e1488698fa0a87ac40da Signed-off-by: Hyunjee Kim --- packaging/python3-sqlite.manifest | 5 +++ packaging/python3-sqlite.spec | 53 +++++++++++++++++++++++++++++++ 2 files changed, 58 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..62687cc --- /dev/null +++ b/packaging/python3-sqlite.spec @@ -0,0 +1,53 @@ +# +# spec file for package python3-pysqlite +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +Name: python3-sqlite +Version: 0.4.2 +Release: 0 +Url: http://pysqlite.googlecode.com/ +Summary: DB-API 2.0 interface for SQLite 3.x +License: Zlib +Group: Platform Development/Python +Source: http://pysqlite.googlecode.com/files/pysqlite-%{version}.tar.gz +Source1001: python3-sqlite.manifest +BuildRequires: python3-devel +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 +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 +%defattr(-,root,root,-) +%license LICENSE +%{python3_sitearch}/* + +%changelog -- 2.34.1