diff --git a/bcftools-1.10.2.tar.gz b/bcftools-1.10.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f04fc9bb74f6dc7d7b66236300589d06e54a92e5 Binary files /dev/null and b/bcftools-1.10.2.tar.gz differ diff --git a/bcftools.spec b/bcftools.spec new file mode 100644 index 0000000000000000000000000000000000000000..c63c62c9db9997f900d23ef29908ee9237f9b469 --- /dev/null +++ b/bcftools.spec @@ -0,0 +1,71 @@ +Name: bcftools +Version: 1.10.2 +Release: 1 +Summary: Tools for genomic variant calling and manipulating VCF/BCF files + +# This software is available under a choice of one of two licenses, +# the MIT/Expat (MIT) or the GNU General Public License Version 3 (GPLv3+). +# And if compiled with the GNU Scientific Library, in this case it is built +# with --enable-libgsl, the use of this software is governed by the GPLv3+ +# license. +# See . +License: GPLv3+ +URL: https://www.htslib.org/ +Source0: https://github.com/samtools/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz + + +BuildRequires: gcc autoconf automake gsl-devel htslib-devel htslib-tools zlib-devel +# bcftools had been included in samtools version 0.X. +# https://github.com/samtools/samtools/commit/e7ae7f96c7e78a2dd6eabdaed57037c483951929 +Conflicts: samtools < 1.0 + + +%description +BCFtools is a set of utilities that manipulate genomic variant calls in the +Variant Call Format (VCF) and its binary counterpart (BCF). All commands work +transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed. + + +%prep +%setup -q + +%build +autoheader +autoconf +%configure CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" \ + --prefix=%{_prefix} \ + --with-htslib=system \ + --enable-perl-filters \ + --enable-libgsl \ + --with-bcf-plugin-path='%{_usr}/local/libexec/bcftools:$(plugindir)' +%make_build + + +%install +%make_install + + +%check +# Check if bcftools is built with system htslib. +ldd bcftools | grep -E '/lib(64)?/libhts\.so\.' + +make test + + +%files +%doc AUTHORS NEWS +%license LICENSE +%{_bindir}/bcftools +%{_bindir}/color-chrs.pl +%{_bindir}/guess-ploidy.py +%{_bindir}/plot-roh.py +%{_bindir}/plot-vcfstats +%{_bindir}/run-roh.pl +%{_bindir}/vcfutils.pl +%{_libexecdir}/bcftools +%{_mandir}/man1/bcftools.1* + + +%changelog +* Wed Jun 16 2021 zhao yang - 1.10.2-1 +- package init \ No newline at end of file