From ca10b27fcad97da1d22f55b36d3ada50b0941c74dc1e8b7b8e7cf93a79141647 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 18 May 2018 15:37:07 +0000 Subject: [PATCH] Accepting request 610412 from devel:languages:python:misc Needed by python-agate-dbfread See request 605896 https://build.opensuse.org/request/show/605896 OBS-URL: https://build.opensuse.org/request/show/610412 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbfread?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + dbfread-2.0.7.tar.gz | 3 ++ python-dbfread.changes | 10 ++++++ python-dbfread.spec | 71 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dbfread-2.0.7.tar.gz create mode 100644 python-dbfread.changes create mode 100644 python-dbfread.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/dbfread-2.0.7.tar.gz b/dbfread-2.0.7.tar.gz new file mode 100644 index 0000000..bed2e4c --- /dev/null +++ b/dbfread-2.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07c8a9af06ffad3f6f03e8fe91ad7d2733e31a26d2b72c4dd4cfbae07ee3b73d +size 33212 diff --git a/python-dbfread.changes b/python-dbfread.changes new file mode 100644 index 0000000..8fdc5c8 --- /dev/null +++ b/python-dbfread.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Fri May 18 15:35:44 UTC 2018 - toddrme2178@gmail.com + +- Use license tag +- Fix tests + +------------------------------------------------------------------- +Tue Nov 7 18:23:33 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-dbfread.spec b/python-dbfread.spec new file mode 100644 index 0000000..c154a86 --- /dev/null +++ b/python-dbfread.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-dbfread +# +# 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-%{**}} +# Test directories messed up by python_expand +%bcond_without test +Name: python-dbfread +Version: 2.0.7 +Release: 0 +License: MIT +Summary: Read DBF Files with Python +Url: https://github.com/olemb/dbfread +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/d/dbfread/dbfread-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module pytest} +%endif +BuildArch: noarch + +%python_subpackages + +%description +DBF is a file format used by databases such dBase, Visual FoxPro, and +FoxBase+. This library reads DBF files and returns the data as native +Python data types for further processing. It is primarily intended for +batch jobs and one-off scripts. + +%prep +%setup -q -n dbfread-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +rm -rf build +rm -rf _build.* +%{python_expand rm -rf build +py.test-%{$python_bin_suffix} +} +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog