From 04dd2f35f19853dbba3f1fc2fba3f6932ea4619a69f36eb40a105354730acc09 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:33 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + LICENSE | 32 ++++++++++++++++++++++++ dbf-0.97.5.tar.gz | 3 +++ python-dbf.changes | 49 ++++++++++++++++++++++++++++++++++++ python-dbf.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 170 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 dbf-0.97.5.tar.gz create mode 100644 python-dbf.changes create mode 100644 python-dbf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8840f67 --- /dev/null +++ b/LICENSE @@ -0,0 +1,32 @@ +Copyright (c) 2008-2018 Ethan Furman +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + + Neither the name Ethan Furman nor the names of any + contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/dbf-0.97.5.tar.gz b/dbf-0.97.5.tar.gz new file mode 100644 index 0000000..3c9a5ca --- /dev/null +++ b/dbf-0.97.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b83754146a4661db43060690bc2921f036f00aef9e9409427d7525bf165b0a8 +size 90331 diff --git a/python-dbf.changes b/python-dbf.changes new file mode 100644 index 0000000..9179868 --- /dev/null +++ b/python-dbf.changes @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Thu May 24 17:31:07 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.97.5 + * Fix bug in VFP doubles + * Fix field creation flag handling + * Allow (redundant) "binary" flag on binary type fields + * Fix fp/FoxBase table header creation + * Can now open dbf files as read-only when lacking write permissions. + * Moved to a single 2/3 code base. + * Opening a database now defaults to dbf.READ_ONLY; can also use dbf.READ_WRITE; + the corresponding strings are no longer supported. +- Spec file cleanups +- License is now included in source archive + +------------------------------------------------------------------- +Wed Jul 26 08:53:07 UTC 2017 - bruno@ioda-net.ch + +-specfile add line to fix build for Leap + +------------------------------------------------------------------- +Wed Jun 7 12:07:29 UTC 2017 - bruno@ioda-net.ch + +- specfile move to unified single-spec-python + +------------------------------------------------------------------- +Sat Jul 23 18:07:35 UTC 2016 - arun@gmx.de + +- specfile: + * update copyright year + * no more README or WHATSNEW in tar-ball + +- update to version 0.96.8: + (no changelog available) + +------------------------------------------------------------------- +Sun May 8 07:14:51 UTC 2016 - arun@gmx.de + +- specfile: + * changed to https for source url + * updated source url to files.pythonhosted.org + +------------------------------------------------------------------- +Thu Nov 19 16:36:34 UTC 2015 - bruno@ioda-net.ch + +- Initial packaging on obs + * Including from upstream missing LICENSE file + * Fix eol by sed + diff --git a/python-dbf.spec b/python-dbf.spec new file mode 100644 index 0000000..f820621 --- /dev/null +++ b/python-dbf.spec @@ -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