From 3e7ab65343658bda9bdbb391f70f50a618c8ffcb Mon Sep 17 00:00:00 2001 From: He Rengui Date: Fri, 26 Mar 2021 10:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E9=98=B6?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=8A=A8=E6=80=81=E5=BA=93=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E5=85=B7=E6=9C=89=E6=89=A7=E8=A1=8C=E6=9D=83=E9=99=90=EF=BC=8C?= =?UTF-8?q?=E5=90=A6=E5=88=99=E4=B8=8D=E5=87=BA=E7=8E=B0=E5=9C=A8provides?= =?UTF-8?q?=E5=88=97=E8=A1=A8=EF=BC=8C=E5=85=B6=E4=BB=96=E5=8C=85=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=BC=95=E7=94=A8=EF=BC=9B=E5=A2=9E=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htslib.spec | 67 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 25 deletions(-) diff --git a/htslib.spec b/htslib.spec index b7dddf3..8325540 100644 --- a/htslib.spec +++ b/htslib.spec @@ -1,63 +1,80 @@ -#%global debug_package %{nil} - Name: htslib Version: 1.10.2 -Release: 1 +Release: 2 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 -BuildRequires: gcc autoconf automake make curl-devel zlib-devel bzip2-devel xz-devel libxcrypt-devel openssl-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. +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. %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}/man1/bgzip.1* +%{_mandir}/man1/htsfile.1* +%{_mandir}/man1/tabix.1* +%{_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 %changelog -* Sun Mar 29 2020 Wei Xiong +* Fri Mar 26 2021 herengui - 1.10.2-2 +- Add compilation parameters, update package lists + +* Sun Mar 29 2020 Wei Xiong - 1.10.2-1 - Package init -- Gitee