%define pkgver %(echo %version | tr _ -) Name: python-apsw Version: 3.28.0_r1 Release: 2mamba Summary: Another Python SQLite Wrapper Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://code.google.com/p/apsw/ Source: https://github.com/rogerbinns/apsw.git/%{pkgver}/apsw-%{version}.tar.bz2 #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. %if "%{?with_pyver}" %pyver_package %endif %prep %setup -q -n apsw-%{version} %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 %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %changelog * Wed Aug 28 2019 Silvan Calarco 3.28.0_r1-2mamba - rebuilt with py3 and py36 packages * Sun Aug 18 2019 Silvan Calarco 3.28.0_r1-1mamba - update to 3.28.0_r1 * Sun Jul 31 2016 Silvan Calarco 3.13.0_r1-1mamba - update to 3.13.0_r1 * Thu Jul 10 2014 Silvan Calarco 3.8.5_r1-1mamba - update to 3.8.5_r1 * 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