From a391106af1010c22ca225aefe82ff706dcbd1eb2 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 10:44:52 +0100 Subject: [PATCH] automatic version update by autodist [release 3.8.1-1mamba;Sat Mar 01 2014] --- README.md | 2 ++ python-apsw.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 python-apsw.spec diff --git a/README.md b/README.md index 279ee88..aed8d86 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-apsw +Another Python SQLite 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. The documentation has a section on the differences between APSW and pysqlite. APSW supports CPython 2.3 onwards and CPython 3.1 onwards. + diff --git a/python-apsw.spec b/python-apsw.spec new file mode 100644 index 0000000..099cbec --- /dev/null +++ b/python-apsw.spec @@ -0,0 +1,53 @@ +Name: python-apsw +Version: 3.8.1 +Release: 1mamba +Summary: Another Python SQLite Wrapper +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: openmamba WebBuild System +URL: https://code.google.com/p/apsw/ +Source: https://apsw.googlecode.com/files/apsw-%{version}-r1.zip +License: GPL +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 python-apsw' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary} 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. The documentation has a section on the differences between APSW and pysqlite. APSW supports CPython 2.3 onwards and CPython 3.1 onwards. + +%prep +%setup -q -n apsw-%{version}-r1 + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +## note: this list is just an example; modify as required +# %{python_sitearch}/%{name}.py* +# %{python_sitearch}/%{name}.so + +## note: eventually add the remaining documents (if any) +# + +%changelog +* Sat Mar 01 2014 Automatic Build System 3.8.1-1mamba +- automatic version update by autodist + +* Mon Oct 07 2013 openmamba WebBuild System 3.8.0.2-1mamba +- package created by ercolinux using the webbuild interface