|
|
751c2d3 |
Name: bcftools
|
|
|
77ae30d |
Version: 1.15.1
|
|
|
2c10fd7 |
Release: 8%{?dist}
|
|
|
751c2d3 |
Summary: Tools for genomic variant calling and manipulating VCF/BCF files
|
|
|
751c2d3 |
|
|
|
751c2d3 |
# This software is available under a choice of one of two licenses,
|
|
|
ce8b6a8 |
# the MIT/Expat (MIT) or the GNU General Public License Version 3
|
|
|
ce8b6a8 |
# (GPL-3.0-or-later).
|
|
|
751c2d3 |
# And if compiled with the GNU Scientific Library, in this case it is built
|
|
|
ce8b6a8 |
# with --enable-libgsl, the use of this software is governed by the
|
|
|
ce8b6a8 |
# GPL-3.0-or-later license.
|
|
|
751c2d3 |
# See <https://github.com/samtools/bcftools/blob/develop/LICENSE>.
|
|
|
ce8b6a8 |
License: GPL-3.0-or-later
|
|
|
751c2d3 |
# https:// is better than http://.
|
|
|
751c2d3 |
URL: https://www.htslib.org/
|
|
|
751c2d3 |
Source0: https://github.com/samtools/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
|
|
77ae30d |
# Fix test_vcf_plugin tests.
|
|
|
77ae30d |
# https://github.com/samtools/bcftools/commit/0676ccfb710778129f0337aa4ea3fa014f7c97fb
|
|
|
77ae30d |
Patch0: bcftools-1.15.1-aarch64-fix-vcf_plugin-tests.patch
|
|
|
751c2d3 |
|
|
|
751c2d3 |
BuildRequires: gcc
|
|
|
751c2d3 |
BuildRequires: gsl-devel
|
|
|
751c2d3 |
BuildRequires: htslib-devel
|
|
|
751c2d3 |
BuildRequires: htslib-tools
|
|
|
751c2d3 |
BuildRequires: perl-interpreter
|
|
|
751c2d3 |
BuildRequires: perl(ExtUtils::Embed)
|
|
|
751c2d3 |
BuildRequires: perl(File::Temp)
|
|
|
e5be8c8 |
BuildRequires: perl(FindBin)
|
|
|
751c2d3 |
BuildRequires: perl(Getopt::Long)
|
|
|
751c2d3 |
BuildRequires: zlib-devel
|
|
|
6fbd029 |
BuildRequires: make
|
|
|
751c2d3 |
# bcftools had been included in samtools version 0.X.
|
|
|
751c2d3 |
# https://github.com/samtools/samtools/commit/e7ae7f96c7e78a2dd6eabdaed57037c483951929
|
|
|
751c2d3 |
Conflicts: samtools < 1.0
|
|
|
751c2d3 |
# A big-endian (s390x) environment is not supported.
|
|
|
751c2d3 |
# https://github.com/samtools/htslib/issues/355
|
|
|
751c2d3 |
ExcludeArch: s390x
|
|
|
07332ca |
|
|
|
07332ca |
%description
|
|
|
07332ca |
BCFtools is a set of utilities that manipulate genomic variant calls in the
|
|
|
07332ca |
Variant Call Format (VCF) and its binary counterpart (BCF). All commands work
|
|
|
07332ca |
transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.
|
|
|
07332ca |
|
|
|
07332ca |
(This BCFtools includes the polysomy subcommand, which is implemented using
|
|
|
07332ca |
the GNU Scientific Library. Hence this package is licensed according to the
|
|
|
07332ca |
GNU General Public License, rather than the MIT license used when BCFtools
|
|
|
07332ca |
is built without the polysomy subcommand.)
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%prep
|
|
|
07332ca |
%setup -q
|
|
|
77ae30d |
%patch0 -p1
|
|
|
07332ca |
|
|
|
751c2d3 |
sed -i '1s|/usr/bin/env perl|/usr/bin/perl|' misc/*.pl misc/plot-vcfstats
|
|
John Marshall |
d4c8dd7 |
sed -i '1s|/usr/bin/env python3\{0,1\}|%{__python3}|' misc/*.py
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%build
|
|
|
07332ca |
%configure CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" \
|
|
|
07332ca |
--prefix=%{_prefix} \
|
|
|
751c2d3 |
--with-htslib=system \
|
|
|
751c2d3 |
--enable-perl-filters \
|
|
|
751c2d3 |
--enable-libgsl \
|
|
|
07332ca |
--with-bcf-plugin-path='%{_usr}/local/libexec/bcftools:$(plugindir)'
|
|
|
07332ca |
%make_build
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%install
|
|
|
07332ca |
%make_install
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%check
|
|
|
751c2d3 |
# Check if bcftools is built with system htslib.
|
|
|
751c2d3 |
ldd bcftools | grep -E '/lib(64)?/libhts\.so\.'
|
|
|
751c2d3 |
|
|
|
77ae30d |
%ifarch i686
|
|
|
77ae30d |
# Skip 2 failed tests.
|
|
|
77ae30d |
# https://github.com/samtools/bcftools/issues/1776
|
|
|
77ae30d |
sed -i -E '/^test_vcf_convert_hs2vcf.+convert.gs.gt.ids.3N6.gen.+/ s/^/#/' test/test.pl
|
|
|
77ae30d |
%endif
|
|
|
07332ca |
make test
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%files
|
|
|
07332ca |
%doc AUTHORS NEWS
|
|
|
07332ca |
%license LICENSE
|
|
|
751c2d3 |
# We do not use a wildcard to list bin files, because this often leads
|
|
|
751c2d3 |
# to problems when the name changes or something additional is installed.
|
|
|
751c2d3 |
%{_bindir}/bcftools
|
|
|
751c2d3 |
%{_bindir}/color-chrs.pl
|
|
John Marshall |
d4c8dd7 |
%{_bindir}/gff2gff.py
|
|
|
751c2d3 |
%{_bindir}/guess-ploidy.py
|
|
|
751c2d3 |
%{_bindir}/plot-roh.py
|
|
|
751c2d3 |
%{_bindir}/plot-vcfstats
|
|
|
751c2d3 |
%{_bindir}/run-roh.pl
|
|
|
751c2d3 |
%{_bindir}/vcfutils.pl
|
|
|
07332ca |
%{_libexecdir}/bcftools
|
|
|
07332ca |
%{_mandir}/man1/bcftools.1*
|
|
|
07332ca |
|
|
|
07332ca |
|
|
|
07332ca |
%changelog
|
|
|
2c10fd7 |
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-8
|
|
|
2c10fd7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
2c10fd7 |
|
|
|
0ae0816 |
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-7
|
|
|
0ae0816 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
0ae0816 |
|
|
|
ce8b6a8 |
* Sat Oct 28 2023 Benson Muite <benson_muite@emailplus.org> - 1.15.1-6
|
|
|
ce8b6a8 |
- Use SPDX license identifier
|
|
|
ce8b6a8 |
|
|
|
4827640 |
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-5
|
|
|
4827640 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
4827640 |
|
|
|
077ed5e |
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.15.1-4
|
|
|
077ed5e |
- Perl 5.38 rebuild
|
|
|
077ed5e |
|
|
|
4a9ce38 |
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-3
|
|
|
4a9ce38 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
4a9ce38 |
|
|
|
58de657 |
* Tue Aug 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.1-2
|
|
|
58de657 |
- Rebuild for gsl-2.7.1
|
|
|
58de657 |
|
|
|
77ae30d |
* Mon Aug 15 2022 Jun Aruga <jaruga@redhat.com> - 1.15.1-1
|
|
|
77ae30d |
- Update to BCFtools version 1.15.1
|
|
|
77ae30d |
|
|
|
453b73d |
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
|
|
|
453b73d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
453b73d |
|
|
|
969aa75 |
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-3
|
|
|
969aa75 |
- Perl 5.36 rebuild
|
|
|
969aa75 |
|
|
|
2c154cd |
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-2
|
|
|
2c154cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
2c154cd |
|
|
John Marshall |
d4c8dd7 |
* Fri Jul 23 2021 John Marshall <jmarshall@hey.com> - 1.13-1
|
|
John Marshall |
d4c8dd7 |
- Update to BCFtools version 1.13
|
|
John Marshall |
d4c8dd7 |
- Remove outdated patches which have been applied upstream
|
|
John Marshall |
d4c8dd7 |
- Update Python shebang rewriting to handle both "python" and "python3"
|
|
John Marshall |
d4c8dd7 |
- Package gff2gff.py script, added in BCFtools 1.11
|
|
John Marshall |
d4c8dd7 |
|
|
|
e5a2cd1 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-8
|
|
|
e5a2cd1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
e5a2cd1 |
|
|
|
e3d3060 |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.9-7
|
|
|
e3d3060 |
- Perl 5.34 rebuild
|
|
|
e3d3060 |
|
|
|
d582ad4 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-6
|
|
|
d582ad4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d582ad4 |
|
|
|
39b748f |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-5
|
|
|
39b748f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
39b748f |
|
|
|
f49e2ed |
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.9-4
|
|
|
f49e2ed |
- Perl 5.32 rebuild
|
|
|
f49e2ed |
|
|
|
e5be8c8 |
* Tue Mar 17 2020 Jun Aruga <jaruga@redhat.com> - 1.9-3
|
|
|
e5be8c8 |
- Fix the build failure adding perl(FindBin) build dependency.
|
|
|
e5be8c8 |
|
|
|
a6c2358 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-2
|
|
|
a6c2358 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a6c2358 |
|
|
|
751c2d3 |
* Tue Nov 19 2019 Jun Aruga <jaruga@redhat.com> - 1.9-1
|
|
|
751c2d3 |
- Exclude a CPU architecture s390x.
|
|
|
751c2d3 |
- Add Conflicts tag for samtools < 1.0.
|
|
|
751c2d3 |
- Align the field delimiter as 1 space.
|
|
|
751c2d3 |
- Use additional RPM macros for Source0.
|
|
|
751c2d3 |
- Add a logic to check if bcftools is built with system htslib.
|
|
|
751c2d3 |
- Update comments for license.
|
|
|
751c2d3 |
|
|
|
07332ca |
* Wed Nov 06 2019 John Marshall <jmarshall@users.sourceforge.net> - 1.9-1
|
|
|
07332ca |
- New spec file for bcftools, now separate from samtools (#1767792).
|
|
|
07332ca |
- Backported Python 3 and configure patches from later upstream development.
|