15
0
forked from pool/python-apsw

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
This commit is contained in:
Todd R
2017-08-31 16:47:02 +00:00
committed by Git OBS Bridge
parent 67be4e9ea7
commit 68ef39d040
4 changed files with 39 additions and 48 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4e58472b6adff5aec9830ae209d65815d0d6ca74878d6cfed7becbbadec096b7
size 659131

3
apsw-3.9.2-r1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dab96fd164dde9e59f7f27228291498217fa0e74048e2c08c7059d7e39589270
size 2607431

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Aug 31 16:45:50 UTC 2017 - toddrme2178@gmail.com
- Update to version 3.9.2-r1
* No changelog
-------------------------------------------------------------------
Thu Aug 24 13:32:48 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Tue Oct 15 13:04:33 UTC 2013 - tchvatal@suse.com
@@ -39,3 +50,4 @@ Mon Aug 9 15:40:35 UTC 2010 - pascal.bleser@opensuse.org
- initial package (3.7.0.1-r1)

View File

@@ -1,8 +1,7 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package python-apsw
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -17,28 +16,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-apsw
Version: 3.7.17_r1
Version: 3.9.2_r1
%define tarver 3.9.2-r1
Release: 0
%define pkg_version 3.7.17-r1
%define sqlite_version 3.7.17
Summary: Another Python SQLite Wrapper
License: Zlib
Group: Development/Libraries/Python
Source: http://apsw.googlecode.com/files/apsw-%{pkg_version}.zip
Url: http://code.google.com/p/apsw/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: make
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-devel
BuildRequires: sqlite3-devel >= %{sqlite_version}
BuildRequires: unzip
%py_requires
BuildRequires: python-rpm-macros
BuildRequires: sqlite3-devel
%python_subpackages
%description
APSW is a Python wrapper for the SQLite embedded relational database
@@ -46,40 +39,26 @@ 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.
%package doc
Summary: Another Python SQLite Wrapper - Documentation
Group: Development/Libraries/Python
%description doc
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-%{pkg_version}"
%setup -q -n apsw-%{tarver}
%build
python setup.py build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -f doc/.buildinfo
%python_install
install -d "%{buildroot}%{_docdir}/%{name}"
cp -a doc/* "%{buildroot}%{_docdir}/%{name}/"
%check
export CFLAGS="%{optflags} -fno-strict-aliasing"
%{python_expand $python setup.py build_ext --inplace
$python setup.py test
$python setup.py clean
}
%files
%files %{python_files}
%defattr(-,root,root)
%doc doc/_sources/copyright.txt
%{python_sitearch}/apsw.so
%{python_sitearch}/apsw-%{version}-py%{py_ver}.egg-info
%exclude %{_docdir}/%{name}
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%exclude %{_docdir}/%{name}/copyright.txt
%{python_sitearch}/apsw*.so
%{python_sitearch}/apsw-%{version}-py*.egg-info
%changelog