From 407a00df07d27eb958c9dcb0d972877141d4c4d781674dcd6d528f1fb6c33878 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 27 May 2025 13:00:22 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbf?expand=0&rev=21 --- .gitattributes | 23 +++++++++ .gitignore | 1 + dbf-0.99.3.tar.gz | 3 ++ python-dbf.changes | 123 +++++++++++++++++++++++++++++++++++++++++++++ python-dbf.spec | 65 ++++++++++++++++++++++++ 5 files changed, 215 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dbf-0.99.3.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/dbf-0.99.3.tar.gz b/dbf-0.99.3.tar.gz new file mode 100644 index 0000000..f2c9987 --- /dev/null +++ b/dbf-0.99.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:940272a72ac27d16a1db69aafef820684012cc3553ffe9875d5cd2e3a9cb69dc +size 104801 diff --git a/python-dbf.changes b/python-dbf.changes new file mode 100644 index 0000000..01b2490 --- /dev/null +++ b/python-dbf.changes @@ -0,0 +1,123 @@ +------------------------------------------------------------------- +Mon May 26 11:26:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Jan 4 16:19:13 UTC 2023 - Dirk Müller + +- update to 0.99.3: + * no upstream changelog available + +------------------------------------------------------------------- +Wed Oct 12 03:00:08 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.99.2 + no upstream changelog + +------------------------------------------------------------------- +Thu Sep 2 12:49:17 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 0.99.1: + * fix: encoding error, warnings + * add TimeStamp type to DB3 tables + * Import ABC from collections.abc for Python 3.9 compatibility. + * support date/time/datetime as argument to Period + * make Vapor objects Falsey + * add more null tests + +------------------------------------------------------------------- +Wed Oct 7 03:23:16 UTC 2020 - Steve Kowalik + +- Update to 0.99.0: + * Backwards incompatible change: + + new records will have unspecified fields that are nullable set to Null + * change default input encoding from 'ascii' to 'utf-8' + * improve unicode support + * default field case is now upper + * FieldnameList is used to support both upper- and lower-case field checks + * fix memo block size changing to default when copying + +------------------------------------------------------------------- +Fri Sep 13 09:45:05 UTC 2019 - Tomáš Chvátal + +- Update to 0.98.3: + * no obvious changelog + +------------------------------------------------------------------- +Fri Jul 26 07:45:21 UTC 2019 - pgajdos@suse.com + +- version update to 0.98.2 + * allow dbf files without .dbf ending + * allow any case for accessing field names + +------------------------------------------------------------------- +Tue Mar 19 15:01:20 UTC 2019 - Tomáš Chvátal + +- Update to 0.98.0: + * fix resize_field to work on empty tables + * fix export to fixed-width by using codecs.open + * allow non-standard characters in field names (with warnings) +- Run tests + +------------------------------------------------------------------- +Thu Dec 6 12:46:33 UTC 2018 - Tomáš Chvátal + +- Version update to 0.97.11: + * No obvious changelog +- Fix fdupes call + +------------------------------------------------------------------- +Tue Dec 4 12:47:09 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +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..ca7570e --- /dev/null +++ b/python-dbf.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-dbf +# +# Copyright (c) 2025 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: python-dbf +Version: 0.99.3 +Release: 0 +Summary: Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf +License: BSD-3-Clause +URL: https://pypi.org/project/dbf/ +Source: https://files.pythonhosted.org/packages/source/d/dbf/dbf-%{version}.tar.gz +BuildRequires: %{python_module aenum} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-aenum +Requires: python-pytz +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} +chmod -x dbf/LICENSE dbf/README.md dbf/WHATSNEW + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python dbf/test.py + +%files %{python_files} +%license dbf/LICENSE +%{python_sitelib}/dbf-%{version}*-info +%{python_sitelib}/dbf + +%changelog