15
0
forked from pool/python-apsw
Files
python-apsw/python-apsw.spec
Todd R 68ef39d040 Accepting request 519978 from devel:languages:python:singlespec-staging
- Update to version 3.9.2-r1
  * No changelog
- singlespec auto-conversion
- Downgrade to 3.7.17 so we build on 13.1 too.
- Fix file collision between doc and normal
- Version bump to 3.8.0.2-r1 to use latest sqlite queries.
- Drop the macroed commands in favor of normal ones
- Drop clean section
- Write fully what documents go where.
- Drop unused tarballs, defines and checks for obsolete openSUSE versions
- osc service localrun format_spec_file
  to add comments and such.
- build for all supported versions from a single spec
- link dynamically against the sqlite3 version that ships with each distro
  version, rather than using amalgamation: this is required by s3ql
- initial package (3.7.0.1-r1)

OBS-URL: https://build.opensuse.org/request/show/519978
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=9
2017-08-31 16:47:02 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-apsw
#
# Copyright (c) 2017 SUSE LINUX 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-apsw
Version: 3.9.2_r1
%define tarver 3.9.2-r1
Release: 0
Summary: Another Python SQLite Wrapper
License: Zlib
Group: Development/Libraries/Python
Url: https://github.com/rogerbinns/apsw/
Source: https://files.pythonhosted.org/packages/source/a/apsw/apsw-%{tarver}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: sqlite3-devel
%python_subpackages
%description
APSW is a Python 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.
%prep
%setup -q -n apsw-%{tarver}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%check
export CFLAGS="%{optflags} -fno-strict-aliasing"
%{python_expand $python setup.py build_ext --inplace
$python setup.py test
$python setup.py clean
}
%files %{python_files}
%defattr(-,root,root)
%{python_sitearch}/apsw*.so
%{python_sitearch}/apsw-%{version}-py*.egg-info
%changelog