Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
4864c2239b
!8 update to 1.11, new version fixed CVE-2020-36403
Merge pull request !8 from 莫得感情的打包机器人/openEuler-20.03-LTS-SP3
2022-02-08 10:06:19 +00:00
herengui
1a4dd74adb update to 1.11, new version fixed CVE-2020-36403
Signed-off-by: herengui <herengui@uniontech.com>
2022-02-08 15:48:37 +08:00
openeuler-ci-bot
a3d5d079ce !5 [sync] PR-4: provide htslib-tools package
From: @openeuler-sync-bot
Reviewed-by: @reganhe_xx
Signed-off-by: @reganhe_xx
2021-08-20 05:20:01 +00:00
yangzhao_kl
5b61b130f8 add htslib-tools package
(cherry picked from commit 64212845716cc3beb2382ec66bbd510751d12cbf)
2021-08-20 13:10:42 +08:00
openeuler-ci-bot
f2d8d5bd0d !2 更新spec文件
From: @reganhe_xx
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-03-26 23:09:37 +08:00
He Rengui
3e7ab65343 修改安装阶段,动态库应该具有执行权限,否则不出现在provides列表,其他包无法引用;增加配置参数,更新打包文件列表 2021-03-26 10:51:21 +08:00
openeuler-ci-bot
10c4c2e384 !1 init package
From: @myeuler
Reviewed-by: 
Signed-off-by:
2020-09-22 08:52:10 +08:00
myeuler
36856dec32 update htslib.spec. 2020-09-21 22:39:05 +08:00
myeuler
9be0a76b11 update htslib.spec. 2020-09-20 22:36:50 +08:00
myeuler
a3ec549edb update htslib.spec. 2020-08-14 00:11:01 +08:00
3 changed files with 61 additions and 25 deletions

Binary file not shown.

BIN
htslib-1.11.tar.gz Normal file

Binary file not shown.

View File

@ -1,63 +1,99 @@
#%global debug_package %{nil}
Name: htslib
Version: 1.10.2
Version: 1.11
Release: 1
Summary: C library for high-throughput sequencing data formats
License: MIT and BSD
URL: http://www.htslib.org
Source0: https://github.com/samtools/htslib/archive/%{name}-%{version}.tar.gz
Source0: https://github.com/samtools/htslib/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc autoconf automake make curl-devel zlib-devel bzip2-devel
BuildRequires: gcc autoconf automake make curl-devel zlib-devel bzip2-devel xz-devel libxcrypt-devel openssl-devel
%description
HTSlib is an implementation of a unified C library for accessing common file formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data, and is the core library used by samtools and bcftools. HTSlib only depends on zlib. It is known to be compatible with gcc, g++ and clang.
HTSlib implements a generalized BAM index, with file extension .csi (coordinate-sorted index). The HTSlib file reader first looks for the new index and then for the old if the new index is absent.
HTSlib is an implementation of a unified C library for accessing common file
formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data,
and is the core library used by samtools and bcftools. HTSlib only depends on
zlib. It is known to be compatible with gcc, g++ and clang.
HTSlib implements a generalized BAM index, with file extension .csi (
coordinate-sorted index). The HTSlib file reader first looks for the new index
and then for the old if the new index is absent.
%package devel
Summary: libs for htslib package
Requires: %{name} = %{version}-%{release}
%description devel
HTSlib is an implementation of a unified C library for accessing common file formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data, and is the core library used by samtools and bcftools. HTSlib only depends on zlib. It is known to be compatible with gcc, g++ and clang.
HTSlib implements a generalized BAM index, with file extension .csi (coordinate-sorted index). The HTSlib file reader first looks for the new index and then for the old if the new index is absent.
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package tools
Summary: Additional htslib-based tools
Requires: %{name} = %{version}-%{release}
%description tools
Includes the popular tabix indexer, which indexes both .tbi and .csi formats,
the htsfile identifier tool, and the bgzip compression utility.
%prep
%setup -q -n %{name}-%{version}/
%setup -q -n %{name}-%{version}
%build
autoheader
autoconf
%configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-gcs --enable-libcurl --enable-s3
%configure --prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-plugins \
--enable-gcs \
--enable-libcurl \
--enable-s3
%make_build
# As we don't install libhts.a, the .private keywords are irrelevant.
sed -i -E '/^(Libs|Requires)\.private:/d' htslib.pc.tmp
%install
%make_install
# The dynamic libraries should have execution permissions, otherwise it cannot be referenced by other packages
find %{buildroot}/%{_libdir} -iname "*.so.*" -exec chmod +x {} \;
rm -rf %{buildroot}/%{_libdir}/libhts.a
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%doc README NEWS README.large_positions.md
%{_bindir}/*
%{_libdir}/libhts.so.*
%{_mandir}/*
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/hfile_gcs.so
%{_libexecdir}/%{name}/hfile_libcurl.so
%{_libexecdir}/%{name}/hfile_s3.so
%{_libexecdir}/%{name}/hfile_s3_write.so
%{_mandir}/man5/faidx.5*
%{_mandir}/man5/sam.5*
%{_mandir}/man5/vcf.5*
%{_mandir}/man7/htslib-s3-plugin.7*
%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/libhts.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_libdir}/pkgconfig/htslib.pc
%files tools
%{_bindir}/bgzip
%{_bindir}/htsfile
%{_bindir}/tabix
%{_mandir}/man1/bgzip.1*
%{_mandir}/man1/htsfile.1*
%{_mandir}/man1/tabix.1*
%changelog
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
* Tue Feb 08 2022 herengui <herengui@uniontech.com> - 1.11-1
- update to 1.11, new version fixed CVE-2020-36403
* Wed Jun 16 2021 zhao yang <yangzhao1@kylinos.cn> - 1.10.2-3
- Add htslib-tools package
* Fri Mar 26 2021 herengui <herengui@uniontech.com> - 1.10.2-2
- Add compilation parameters, update package lists
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com> - 1.10.2-1
- Package init