File python-sqlite3dbm.spec of Package python-sqlite3dbm

#
# spec file for package python-sqlite3dbm
#
# 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/
#
%define mod_name sqlite3dbm

Name:           python-sqlite3dbm
Version:        0.1.4
Release:        1
Summary:        SQLite-backed dictionary conforming to the dbm interface
Group:          Development/Languages/Python
License:        Apache-2.0
Url:            https://pypi.python.org/pypi/sqlite3dbm
Source0:        http://pypi.python.org/packages/source/s/%{mod_name}/%{mod_name}-%{version}.tar.gz

%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This module provides a SQLite-backed dictionary conforming to the dbm
interface, along with a shelve class that wraps the dict and provides
serialization for it.


%prep
%setup -n %{mod_name}-%{version}


%build
python setup.py build


%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
%files
%defattr(-,root,root)
%doc AUTHORS.txt CHANGES.txt LICENSE.txt MANIFEST.in PKG-INFO README.md
%{python_sitelib}

%changelog
openSUSE Build Service is sponsored by