292c9efb9e
- Update to 1.5.0: * Significant speed ups to the fqzcomp codec via code restructuring and use of memory prefetch instructions. Encode is 30-40% faster and decode 5-8% faster. * Remove unused ax_with_libdeflate.m4 file from build system - removed patch fix_ix86_build.patch already merged in upstream - Update to 1.4.0: * This is almost entirely minor bug fixing with a few small updates. * Optimise compression / speed of the name tokeniser * Improvements for Intel -m32 builds, including better AVX2 validation * Detect Neon capability at runtime via operating system APIs. * Update hts_pack to operate in line with CRAMcodecs spec, where the number of symbols > 16. * Fixed too-stringent buffer overflow checking in O1 rans decoder. OBS-URL: https://build.opensuse.org/request/show/1084765 OBS-URL: https://build.opensuse.org/package/show/science/htscodecs?expand=0&rev=5
85 lines
2.8 KiB
RPMSpec
85 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package htscodecs
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%define sonum 2
|
|
Name: htscodecs
|
|
Version: 1.5.0
|
|
Release: 0
|
|
Summary: C library for custom compression for CRAM and other formats
|
|
License: MIT
|
|
Group: Productivity/Scientific/Other
|
|
URL: https://github.com/samtools/htscodecs
|
|
Source0: https://github.com/samtools/htscodecs/releases/download/v%{version}/htscodecs-%{version}.tar.gz
|
|
Source100: baselibs.conf
|
|
BuildRequires: autoconf
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(bzip2)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
htscodecs provides an API to access CRAM codecs used for "EXTERNAL" block types.
|
|
These consist of two variants of the rANS codec (8-bit and 16-bit renormalisation,
|
|
with run-length encoding and bit-packing also supported in the latter),
|
|
a dynamic arithmetic coder, and custom codecs for name/ID compression
|
|
and quality score compression derived from fqzcomp.
|
|
|
|
%package -n lib%{name}%{sonum}
|
|
Summary: C library for custom compression for CRAM and other formats
|
|
Group: System/Libraries
|
|
|
|
%description -n lib%{name}%{sonum}
|
|
htscodecs provides an API to access CRAM codecs used for "EXTERNAL" block types.
|
|
These consist of two variants of the rANS codec (8-bit and 16-bit renormalisation,
|
|
with run-length encoding and bit-packing also supported in the latter),
|
|
a dynamic arithmetic coder, and custom codecs for name/ID compression
|
|
and quality score compression derived from fqzcomp.
|
|
|
|
%package devel
|
|
Summary: Header files and libraries for compiling against %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: lib%{name}%{sonum} = %{version}
|
|
|
|
%description devel
|
|
Header files and libraries of the samtools project for compiling against %{name}.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}%{_libdir}/lib%{name}.la
|
|
|
|
%post -n lib%{name}%{sonum} -p /sbin/ldconfig
|
|
%postun -n lib%{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
%files -n lib%{name}%{sonum}
|
|
%license LICENSE.md
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
%files devel
|
|
%doc README.md NEWS.md
|
|
%{_includedir}/htscodecs
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%changelog
|