2021-10-28 18:01:02 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-fastavro
|
2023-12-08 10:52:41 +08:00
|
|
|
Version: 1.9.1
|
2022-10-18 16:44:38 +08:00
|
|
|
Release: 1
|
2021-10-28 18:01:02 +08:00
|
|
|
Summary: Fast read/write of AVRO files
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/fastavro/fastavro
|
2023-12-08 10:52:41 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/f/fastavro/fastavro-%{version}.tar.gz
|
2021-10-28 18:01:02 +08:00
|
|
|
|
|
|
|
|
%description
|
2021-10-29 15:30:05 +08:00
|
|
|
Fast Avro for Python
|
2023-06-06 17:18:50 +08:00
|
|
|
|
2021-10-28 18:01:02 +08:00
|
|
|
%package -n python3-fastavro
|
|
|
|
|
Summary: Fast read/write of AVRO files
|
2023-06-06 17:18:50 +08:00
|
|
|
Provides: python-fastavro = %{version}-%{release}
|
2021-10-28 18:01:02 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-cffi
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%description -n python3-fastavro
|
|
|
|
|
The `fastavro` library was written to offer performance comparable to the Java
|
|
|
|
|
library. With regular CPython, `fastavro` uses C extensions which allow it to
|
|
|
|
|
iterate the same 10,000 record file in 1.7 seconds. With PyPy, this drops to 1.5
|
|
|
|
|
seconds (to be fair, the JAVA benchmark is doing some extra JSON
|
|
|
|
|
encoding/decoding).
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Development documents and examples for fastavro
|
|
|
|
|
Provides: python3-fastavro-doc
|
|
|
|
|
%description help
|
|
|
|
|
Development documents and examples for fastavro
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-18 16:44:38 +08:00
|
|
|
%autosetup -n fastavro-%{version}
|
2021-10-28 18:01:02 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
|
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
|
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
|
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
|
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
|
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
|
|
|
|
%files -n python3-fastavro -f filelist.lst
|
|
|
|
|
%dir %{python3_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-12-08 10:52:41 +08:00
|
|
|
* Fri Sep 08 2023 xu_ping <707078654@qq.com> - 1.9.1-1
|
|
|
|
|
- Update package to version 1.9.1
|
|
|
|
|
|
2023-08-01 11:32:09 +08:00
|
|
|
* Tue Aug 01 2023 sunhui <sunhui@kylinos.cn> - 1.8.2-1
|
|
|
|
|
- Update package to version 1.8.2
|
|
|
|
|
|
2023-06-06 17:18:50 +08:00
|
|
|
* Tue Jun 06 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.7.4-1
|
|
|
|
|
- Update package to version 1.7.4
|
|
|
|
|
|
2023-04-10 16:35:23 +08:00
|
|
|
* Mon Apr 10 2023 caodongxia <caodongxia@h-partners.com> - 1.7.3-1
|
|
|
|
|
- Update package to version 1.7.3
|
|
|
|
|
|
2023-02-27 15:57:27 +08:00
|
|
|
* Mon Feb 27 2023 wubijie <wubijie@kylinos.cn> - 1.7.2-1
|
|
|
|
|
- Update package to version 1.7.2
|
|
|
|
|
|
2022-12-16 14:24:05 +08:00
|
|
|
* Fri Dec 16 2022 chendexi <chendexi@kylinos.cn> - 1.7.0-1
|
|
|
|
|
- Upgrade package to version 1.7.0
|
|
|
|
|
|
2022-10-18 16:44:38 +08:00
|
|
|
* Tue Oct 18 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.6.1-1
|
|
|
|
|
- Upgrade package to version 1.6.1
|
|
|
|
|
|
2022-06-20 16:36:41 +08:00
|
|
|
* Mon Jun 20 2022 tanyulong <tanyulong@kylinos.cn> - 1.4.5-2
|
|
|
|
|
- Delete unnecessary gdb from BuildRequires
|
|
|
|
|
|
2021-10-28 18:01:02 +08:00
|
|
|
* Tue Oct 26 2021 yangchenguang <yangchenguang@uniontech.com> - 1.4.5-1
|
2022-12-16 14:24:05 +08:00
|
|
|
- Init Package
|