The package rpms/python-fastavro.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python-fastavro.git/commit/?id=7f....
Change:
+ExcludeArch: %{arm32} %{ix86}
Thanks.
Full change:
============
commit 7f9567428fdeb11e0150eed240a6b19bcdb8d8ab
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur(a)gmail.com>
Date: Sun Mar 28 15:24:44 2021 +0100
enh: update to latest release
diff --git a/.gitignore b/.gitignore
index 1d9487c..d5c2228 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/fastavro-0.22.7.tar.gz
/fastavro-0.22.9.tar.gz
/fastavro-0.23.3.tar.gz
+/fastavro-1.3.4.tar.gz
diff --git a/python-fastavro.spec b/python-fastavro.spec
index 76ee908..d885a2d 100644
--- a/python-fastavro.spec
+++ b/python-fastavro.spec
@@ -1,6 +1,6 @@
# Fail only on i686 for some reason. Issue filed upstream:
#
https://github.com/tebeka/fastavro/issues/147
-%bcond_with tests
+%bcond_without tests
%global srcname fastavro
%global sum Fast Avro for Python
@@ -10,8 +10,8 @@ packed with features but dog slow. fastavro is less feature complete
than avro,
however it is much faster.}
Name: python-%{srcname}
-Version: 0.23.3
-Release: 4%{?dist}
+Version: 1.3.4
+Release: 1%{?dist}
Summary: %{sum}
#
https://github.com/tebeka/fastavro/issues/60
@@ -24,6 +24,11 @@ Source0: %pypi_source %{srcname}
BuildRequires: make
BuildRequires: gcc
+# Upstream does not test, nor support 32 bit systems
+# Issue:
https://github.com/fastavro/fastavro/issues/526
+# Fedora bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1943932
+ExcludeArch: %{arm32} %{ix86}
+
%description
%{_description}
@@ -31,15 +36,20 @@ BuildRequires: gcc
%package -n python3-%{srcname}
Summary: %{sum}
BuildRequires: python3-devel
-BuildRequires: %{py3_dist setuptools}
BuildRequires: %{py3_dist Cython}
-BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist numpy}
+BuildRequires: %{py3_dist pandas}
+BuildRequires: %{py3_dist pytest}
+BuildRequires: %{py3_dist python-dateutil}
+BuildRequires: %{py3_dist lz4}
+BuildRequires: %{py3_dist python-snappy}
+BuildRequires: %{py3_dist zstandard}
+BuildRequires: %{py3_dist setuptools}
BuildRequires: %{py3_dist sphinx}
BuildRequires: %{py3_dist sphinx_rtd_theme}
+Requires: %{py3_dist lz4}
Requires: %{py3_dist python-snappy}
-
-%{?python_provide:%python_provide python3-%{srcname}}
+Requires: %{py3_dist zstandard}
%description -n python3-%{srcname}
%{_description}
@@ -52,9 +62,6 @@ Documentation for %{name}.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf *.egg-info
-# We don't run the flake8 and manifest check tests so we remove this from the
-# setup.py file to prevent it from trying to fetch stuff from pypi
-sed -i "/tests_require=/d" setup.py
# Remove the already generated C files so we generate them ourselves
find fastavro/ -name "*.c" -print -delete
@@ -63,6 +70,10 @@ find fastavro/ -name "*.c" -print -delete
export FASTAVRO_USE_CYTHON=1
%py3_build
+# Needs to be inplace for the tests
+%{set_build_flags}
+%{__python3} %{py_setup} %{?py_setup_args} build_ext --inplace
+
pushd docs
PYTHONPATH=../ make html man
pushd _build/html
@@ -75,7 +86,6 @@ popd
%install
export FASTAVRO_USE_CYTHON=1
-
%py3_install
# Install man page
@@ -83,7 +93,9 @@ install -v -p -D -m 0644 docs/_build/man/%{srcname}.1
%{buildroot}%{_mandir}/man
%check
%if %{with tests}
-PYTHONPATH=%{buildroot}%{python3_sitearch} pytest-3 tests
+export FASTAVRO_USE_CYTHON=1
+
+PYTHONPATH=%{buildroot}%{python3_sitearch} pytest-%{python3_version}
%endif
%files -n python3-%{srcname}
@@ -99,6 +111,13 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} pytest-3 tests
%doc docs/_build/html
%changelog
+* Sun Mar 28 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.3.4-1
+- Update to latest release
+- add new BRs
+- remove unneeded pyprovide macro
+- exclude 32 bit arches that upstream does not support
+- Enable tests
+
* Wed Jan 27 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.23.3-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
diff --git a/sources b/sources
index a765075..1861b69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (fastavro-0.23.3.tar.gz) =
472cd8b23bb3ef8e785fdef2b98a1895356a3c34492fa1eb8819031cbd3b44eece31375ce7ece919d9a5313a5c3b5f40691929a3efec544c2fe44b7071a05367
+SHA512 (fastavro-1.3.4.tar.gz) =
ec0d7b7b497855412cdeff4d089675697a9c8153e2d866a0db4c4e34695b027feac2ff520e891f29555815b1bb8a791adf9566b8c3b6929c9bd9305b2c49398a