Blame SPECS/blosc.spec

9d1c46
Summary: High performance compressor optimized for binary data
9d1c46
Name: blosc
9d1c46
Version: 1.21.0
9d1c46
Release: 1%{?dist}
9d1c46
License: MIT
9d1c46
Source: https://github.com/Blosc/c-blosc/archive/v%{version}/blosc-%{version}.tar.gz
9d1c46
Patch0: %{name}-gcc11.patch
9d1c46
9d1c46
URL:  https://github.com/Blosc/c-blosc
9d1c46
BuildRequires: gcc
9d1c46
BuildRequires: gcc-c++
9d1c46
BuildRequires: cmake
9d1c46
BuildRequires: lz4-devel
9d1c46
BuildRequires: snappy-devel
9d1c46
BuildRequires: zlib-devel
9d1c46
BuildRequires: libzstd-devel
9d1c46
9d1c46
%description
9d1c46
Blosc is a compression library designed to transmit data to the processor
9d1c46
cache faster than the traditional non-compressed memory fetch.
9d1c46
Compression ratios are not very high, but the decompression is very fast.
9d1c46
Blosc is meant not only to reduce the size of large datasets on-disk or
9d1c46
in-memory, but also to accelerate memory-bound computations.
9d1c46
9d1c46
%package devel
9d1c46
Summary: Header files and libraries for Blosc development
9d1c46
Requires: %{name}%{?_isa} = %{version}-%{release}
9d1c46
9d1c46
%description devel
9d1c46
The blosc-devel package contains the header files and libraries needed
9d1c46
to develop programs that use the blosc meta-compressor.
9d1c46
9d1c46
%package bench
9d1c46
Summary: Benchmark for the Blosc compressor
9d1c46
Requires: %{name} = %{version}-%{release}
9d1c46
Requires: python3-matplotlib
9d1c46
9d1c46
%description bench
9d1c46
The blosc-bench package contains a benchmark suite which evaluates
9d1c46
the performance of Blosc, and compares it with memcpy.
9d1c46
9d1c46
%prep
9d1c46
%autosetup -n c-%{name}-%{version} -p1
9d1c46
rm -r internal-complibs/lz4* internal-complibs/zstd*
9d1c46
9d1c46
# Fix rpath issue
9d1c46
sed -i '1i  set\(CMAKE_SKIP_RPATH true\)' bench/CMakeLists.txt
9d1c46
9d1c46
# Fix cmake detection of pthreads
9d1c46
sed -i '1i  set\(CMAKE_POSITION_INDEPENDENT_CODE TRUE\)' CMakeLists.txt
9d1c46
9d1c46
# https://github.com/Blosc/c-blosc/issues/190
9d1c46
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt
9d1c46
9d1c46
# Add python shebang and permission
9d1c46
sed -i '1i  #!/usr/bin/python3' bench/plot-speeds.py
9d1c46
9d1c46
%build
9d1c46
# Use the proper library path and SSE2 instruction on 64bits systems
9d1c46
%cmake \
9d1c46
    -DBUILD_STATIC:BOOL=OFF \
9d1c46
    -DPREFER_EXTERNAL_LZ4:BOOL=ON \
9d1c46
    -DTEST_INCLUDE_BENCH_SUITE:BOOL=OFF \
9d1c46
    -DDEACTIVATE_SNAPPY:BOOL=OFF \
9d1c46
    -DPREFER_EXTERNAL_ZLIB:BOOL=ON \
9d1c46
    -DPREFER_EXTERNAL_ZSTD:BOOL=ON
9d1c46
9d1c46
%cmake_build
9d1c46
9d1c46
%check
9d1c46
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
9d1c46
%ctest
9d1c46
9d1c46
%install
9d1c46
%cmake_install
9d1c46
9d1c46
install -p bench/plot-speeds.py* -Dt %{buildroot}/%{_pkgdocdir}/bench/
9d1c46
install -pm 0644 bench/*.c %{buildroot}/%{_pkgdocdir}/bench
9d1c46
9d1c46
install -p %{_vpath_builddir}/bench/bench -D %{buildroot}/%{_bindir}/%{name}-bench
9d1c46
install -p bench/plot-speeds.py %{buildroot}/%{_bindir}/%{name}-plot-times
9d1c46
9d1c46
%files
9d1c46
%exclude %{_pkgdocdir}/bench/
9d1c46
%license LICENSES/*
9d1c46
%doc README.md ANNOUNCE.rst RELEASE_NOTES.rst README*.rst
9d1c46
%{_libdir}/libblosc.so.1*
9d1c46
9d1c46
%files devel
9d1c46
%{_libdir}/libblosc.so
9d1c46
%{_libdir}/pkgconfig/blosc.pc
9d1c46
%{_includedir}/blosc.h
9d1c46
%{_includedir}/blosc-export.h
9d1c46
9d1c46
%files bench
9d1c46
%{_pkgdocdir}/bench/*.c
9d1c46
%{_bindir}/%{name}-bench
9d1c46
%{_bindir}/%{name}-plot-times
9d1c46
9d1c46
9d1c46
%changelog
9d1c46
* Sat Feb 13 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.21.0-1
9d1c46
- Update to latest version (#1742237)
9d1c46
9d1c46
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.1-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9d1c46
9d1c46
* Tue Dec 15 2020 Jeff Law <law@redhat.com> - 1.20.1-2
9d1c46
- Prevent inlining, cloning and ipa analysis of sw32_ and _sw32 functions
9d1c46
9d1c46
* Wed Sep  9 20:41:44 MDT 2020 Orion Poplawski <orion@nwra.com> - 1.20.1-1
9d1c46
- Update to 1.20.1
9d1c46
9d1c46
* Tue Aug 11 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.19.0-4
9d1c46
- Fix build for new CMake macros (#1863272)
9d1c46
- Re-enable Snappy support (#1867915)
9d1c46
9d1c46
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-3
9d1c46
- Second attempt - Rebuilt for
9d1c46
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9d1c46
9d1c46
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9d1c46
9d1c46
* Wed Jun 24 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.19.0-1
9d1c46
- Update to latest version (#1742237)
9d1c46
9d1c46
* Sat May 23 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.18.1-1
9d1c46
- Update to latest version (#1742237)
9d1c46
9d1c46
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9d1c46
9d1c46
* Thu Oct  3 2019 Orion Poplawski <orion@nwra.com> - 1.17.0-1
9d1c46
- Update to 1.17.0
9d1c46
9d1c46
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.3-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9d1c46
9d1c46
* Sat May  4 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.16.3-1
9d1c46
- Update to latest version (#1671929)
9d1c46
9d1c46
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.4-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9d1c46
9d1c46
* Mon Nov 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.14.4-1
9d1c46
- Update to latest version (#1609768)
9d1c46
9d1c46
* Thu Jul 19 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.14.3-1
9d1c46
- Update to latest version (#1539013)
9d1c46
- Drop obsolete ldconfig invocations
9d1c46
9d1c46
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.3-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9d1c46
9d1c46
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.3-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9d1c46
9d1c46
* Thu Jan 25 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.13.3-1
9d1c46
- Update to latest version (#1536731)
9d1c46
9d1c46
* Thu Jan 18 2018 Jan Beran <jberan@redhat.com> - 1.13.1-1
9d1c46
* New version using Python 3
9d1c46
9d1c46
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9d1c46
9d1c46
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9d1c46
9d1c46
* Sat Mar 11 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.11.3-1
9d1c46
- Update to latest version
9d1c46
- Build against external zstd
9d1c46
- A pkgconfig file is now provided
9d1c46
9d1c46
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9d1c46
9d1c46
* Mon Nov 07 2016 Than Ngo <than@redhat.com> - 1.11.1-2
9d1c46
- Fix the bigendian issue which causes build failure in PyTables (bz#1379123)
9d1c46
9d1c46
* Sun Nov  6 2016 Orion Poplawski <orion@cora.nwra.com> - 1.11.1-1
9d1c46
- Update to 1.11.1 (#1361777)
9d1c46
- Run cmake in %%build
9d1c46
9d1c46
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 1.10.1-2
9d1c46
- rebuilt for matplotlib-2.0.0
9d1c46
9d1c46
* Thu Jul 28 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 1.10.1-1
9d1c46
- Update to latest version (#1323008)
9d1c46
9d1c46
* Thu Jul 14 2016 Thibault North <tnorth@fedoraproject.org> - 1.9.3-1
9d1c46
- Update to 1.9.3 (#1211599)
9d1c46
- Remove 32-bits test patch now integrated
9d1c46
9d1c46
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-1
9d1c46
- Update to 1.9.0 (#1211599)
9d1c46
- Update URL
9d1c46
- Disable parallel build
9d1c46
- Run all tests
9d1c46
- Ship license files
9d1c46
9d1c46
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9d1c46
9d1c46
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9d1c46
9d1c46
* Wed May  6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.6.1-1
9d1c46
- Update to 1.6.1 (#1211599)
9d1c46
9d1c46
* Mon Apr 20 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.4-1
9d1c46
- Update to 1.5.4 (#1211599)
9d1c46
9d1c46
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.2-1
9d1c46
- Update to 1.5.2 (#1115808)
9d1c46
9d1c46
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-3
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9d1c46
9d1c46
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
9d1c46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9d1c46
9d1c46
* Sat Mar 22 2014 Thibault North <tnorth@fedoraproject.org> - 1.3.5-1
9d1c46
- Update to 1.3.5
9d1c46
9d1c46
* Fri Mar 21 2014 Thibault North <tnorth@fedoraproject.org> - 1.3.4-1
9d1c46
- Update to 1.3.4
9d1c46
9d1c46
* Tue Jan 07 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.0-1.rc2
9d1c46
- Attempt to package new version
9d1c46
9d1c46
* Tue Oct 22 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-9
9d1c46
- Fix flags and bench compilation
9d1c46
9d1c46
* Mon Oct 21 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-8
9d1c46
- Fix docdir for F<20 and remove sse flag
9d1c46
9d1c46
* Mon Oct 21 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-7
9d1c46
- Use install instead of cp, more fixes
9d1c46
9d1c46
* Mon Oct 21 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-6
9d1c46
- Fixes
9d1c46
9d1c46
* Mon Oct 21 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-5
9d1c46
- Use pkgdocdir, various fixes.
9d1c46
9d1c46
* Mon Oct 21 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-4
9d1c46
- Fix docdir, add blosc-bench subpackage
9d1c46
9d1c46
* Fri Oct 18 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-3
9d1c46
- Fixes (thanks Zbigniew Jędrzejewski-Szmek)
9d1c46
9d1c46
* Wed Oct 16 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-2
9d1c46
- Various fixes
9d1c46
9d1c46
* Fri Sep 20 2013 Thibault North <tnorth@fedoraproject.org> - 1.2.3-1
9d1c46
- Sync upstream
9d1c46
9d1c46
* Fri Mar 22 2013 Thibault North <tnorth@fedoraproject.org> - 1.1.6-1
9d1c46
- Initial package