From 024005c9c8dc786c3fab5471fd98d9b2b3e483919fbcdd0581a801a8f030fdda Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 22 Nov 2024 11:22:55 +0000 Subject: [PATCH] Initial Build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastavro?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + fastavro-1.9.7.tar.gz | 3 ++ python-fastavro.changes | 4 +++ python-fastavro.spec | 80 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fastavro-1.9.7.tar.gz create mode 100644 python-fastavro.changes create mode 100644 python-fastavro.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/fastavro-1.9.7.tar.gz b/fastavro-1.9.7.tar.gz new file mode 100644 index 0000000..cba47ed --- /dev/null +++ b/fastavro-1.9.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13e11c6cb28626da85290933027cd419ce3f9ab8e45410ef24ce6b89d20a1f6c +size 987818 diff --git a/python-fastavro.changes b/python-fastavro.changes new file mode 100644 index 0000000..d0eb007 --- /dev/null +++ b/python-fastavro.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 1 19:21:31 UTC 2024 - Fergal Mc Carthy + +- Initial version based upon fastavro 1.9.7 diff --git a/python-fastavro.spec b/python-fastavro.spec new file mode 100644 index 0000000..ee4c1a1 --- /dev/null +++ b/python-fastavro.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-fastavro +# +# Copyright (c) 2024 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-fastavro +Version: 1.9.7 +Release: 0 +Summary: Fast read/write of AVRO files +License: MIT +URL: https://github.com/fastavro/fastavro +Source: https://files.pythonhosted.org/packages/source/f/fastavro/fastavro-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module lz4} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module zlib-ng} +BuildRequires: %{python_module zstandard} +# /SECTION +BuildRequires: fdupes +Suggests: python-cramjam +Suggests: python-zstandard +Suggests: python-lz4 +Suggests: python-lz4 +Suggests: python-cramjam +Suggests: python-zstandard +%python_subpackages + +%description +Fast read/write of AVRO files + +%prep +%setup -q -n fastavro-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/fastavro +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +donttest="test_optional_codecs[snappy]" +donttest+=" or test_optional_codecs_not_installed_reading[snappy]" +%pytest -k "not ($donttest)" + +%post +%python_install_alternative fastavro + +%postun +%python_uninstall_alternative fastavro + +%files %{python_files} +%doc ChangeLog README.md +%license LICENSE +%python_alternative %{_bindir}/fastavro +%{python_sitearch}/* + +%changelog