forked from pool/python-apsw
Drop unused tarballs, defines and checks for obsolete openSUSE versions OBS-URL: https://build.opensuse.org/request/show/202727 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=5
97 lines
2.7 KiB
RPMSpec
97 lines
2.7 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
#
|
|
# spec file for package python-apsw
|
|
#
|
|
# Copyright (c) 2013 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-apsw
|
|
Version: 3.7.8+r1
|
|
Release: 0
|
|
%define pkg_version 3.7.8-r1
|
|
%define sqlite_version 3.7.8
|
|
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
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-devel
|
|
BuildRequires: sqlite3-devel >= %{sqlite_version}
|
|
BuildRequires: unzip
|
|
%py_requires
|
|
|
|
%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.
|
|
|
|
%if !0%{?nodoc}
|
|
%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.
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n "apsw-%{pkg_version}"
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" \
|
|
%__python ./setup.py build
|
|
|
|
%install
|
|
%__python ./setup.py \
|
|
install \
|
|
--prefix="%{_prefix}" \
|
|
--root="%{buildroot}" \
|
|
--record-rpm=files.lst
|
|
|
|
%__rm -f doc/.buildinfo
|
|
|
|
%__install -d "%{buildroot}%{_docdir}/%{name}"
|
|
%if !0%{?nodoc}
|
|
%__cp -a doc/* "%{buildroot}%{_docdir}/%{name}/"
|
|
%endif
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files -f files.lst
|
|
%defattr(-,root,root)
|
|
%if !0%{?nodoc}
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%dir %{_docdir}/%{name}
|
|
%doc %{_docdir}/%{name}/*
|
|
%endif
|
|
|
|
%changelog
|