Accepting request 612020 from devel:languages:python:misc

package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf

OBS-URL: https://build.opensuse.org/request/show/612020
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbf?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-24 20:56:33 +00:00
committed by Git OBS Bridge
commit 04dd2f35f1
6 changed files with 170 additions and 0 deletions

62
python-dbf.spec Normal file
View File

@@ -0,0 +1,62 @@
#
# spec file for package python-dbf
#
# Copyright (c) 2018 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-dbf
Version: 0.97.5
Release: 0
Summary: Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://bitbucket.org/stoneleaf/dbf/src/default/
Source: https://files.pythonhosted.org/packages/source/d/dbf/dbf-%{version}.tar.gz
Source10: https://bitbucket.org/stoneleaf/dbf/raw/%{version}/dbf/LICENSE
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf
files (including memos)
Currently supports dBase III, Clipper, FoxPro, and Visual FoxPro tables. Text is
returned as unicode, and codepage settings in tables are honored. Memos and Null
fields are supported.
%prep
%setup -q -n dbf-%{version}
cp %{SOURCE10} .
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%{python_sitelib}/dbf-%{version}-py*.egg-info
%{python_sitelib}/dbf
%changelog