代码拉取完成,页面将自动刷新
Summary: High performance compressor optimized for binary data
Name: blosc
Version: 1.21.2
Release: 3%{?dist}
License: MIT
Source0: https://github.com/Blosc/c-blosc/archive/v%{version}/blosc-%{version}.tar.gz
URL: https://github.com/Blosc/c-blosc
BuildRequires: snappy-devel zlib-devel libzstd-devel
BuildRequires: gcc gcc-c++ cmake lz4-devel
%description
Blosc is a compression library designed to transmit data to the processor
cache faster than the traditional non-compressed memory fetch.
Compression ratios are not very high, but the decompression is very fast.
Blosc is meant not only to reduce the size of large datasets on-disk or
in-memory, but also to accelerate memory-bound computations.
%package devel
Summary: Header files and libraries for Blosc development
Requires: %{name} = %{version}-%{release}
%description devel
The blosc-devel package contains the header files and libraries needed
to develop programs that use the blosc meta-compressor.
%package bench
Summary: Benchmark for the Blosc compressor
Requires: %{name} = %{version}-%{release}
Requires: python3-matplotlib
%description bench
The blosc-bench package contains a benchmark suite which evaluates
the performance of Blosc, and compares it with memcpy.
%prep
%autosetup -n c-%{name}-%{version} -p1
rm -r internal-complibs/lz4* internal-complibs/zstd*
sed -i '1i set\(CMAKE_SKIP_RPATH true\)' bench/CMakeLists.txt
sed -i '1i set\(CMAKE_POSITION_INDEPENDENT_CODE TRUE\)' CMakeLists.txt
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt
sed -i '1i #!/usr/bin/python3' bench/plot-speeds.py
%build
%cmake \
-DBUILD_STATIC:BOOL=OFF \
-DPREFER_EXTERNAL_LZ4:BOOL=ON \
-DTEST_INCLUDE_BENCH_SUITE:BOOL=OFF \
-DDEACTIVATE_SNAPPY:BOOL=OFF \
-DPREFER_EXTERNAL_ZLIB:BOOL=ON \
-DPREFER_EXTERNAL_ZSTD:BOOL=ON
%cmake_build
%install
%cmake_install
install -p bench/plot-speeds.py* -Dt %{buildroot}/%{_pkgdocdir}/bench/
install -pm 0644 bench/*.c %{buildroot}/%{_pkgdocdir}/bench
install -p %{_vpath_builddir}/bench/bench -D %{buildroot}/%{_bindir}/%{name}-bench
install -p bench/plot-speeds.py %{buildroot}/%{_bindir}/%{name}-plot-times
%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%ctest
%files
%license LICENSES/*
%doc README.md ANNOUNCE.rst RELEASE_NOTES.rst README*.rst
%{_libdir}/libblosc.so.1*
%exclude %{_pkgdocdir}/bench/
%files devel
%{_libdir}/libblosc.so
%{_libdir}/pkgconfig/blosc.pc
%{_includedir}/blosc.h
%{_includedir}/blosc-export.h
%files bench
%{_pkgdocdir}/bench/*.c
%{_bindir}/%{name}-bench
%{_bindir}/%{name}-plot-times
%changelog
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.21.2-3
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.21.2-2
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Apr 21 2023 cunshunxia <cunshunxia@tencent.com> - 1.21.2-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。