Name: perl-Bio-SamTools Version: 1.21 Release: 2%{?dist} Summary: Bio::SamTools Perl module License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Bio-SamTools/ Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/Bio-SamTools-1.21.tar.gz Patch0: %{name}-%{version}-includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.008 #BuildRequires: perl(Bio::Root::Version) >= 1.005009001 BuildRequires: perl-bioperl BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Module::Build) BuildRequires: samtools-devel >= 0.1.8 BuildRequires: zlib-devel #Requires: perl(Bio::Root::Version) >= 1.005009001 Requires: perl-bioperl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: samtools-devel >= 0.1.8 %{?perl_default_filter} %description This is a Perl interface to the SAMtools sequence alignment interface. See http://samtools.sourceforge.net/. %prep %setup -q -n Bio-SamTools-%{version} %patch0 -p0 %build export SAMTOOLS="/usr/include/samtools" %{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" ./Build %install rm -rf %{buildroot} ./Build install destdir=%{buildroot} create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check ./Build test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes DISCLAIMER LICENSE README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Bio* %{_mandir}/man3/* %{_bindir}/bamToGBrowse.pl %changelog * Sun Oct 10 2010 Adam Huffman - 1.21-2 - add patch to fix includes (from Rasmus) * Sun Sep 26 2010 Adam Huffman - 1.21-1 - new upstream version * Mon Sep 6 2010 Adam Huffman - 1.20-3 - filter unwanted provides * Mon Sep 6 2010 Adam Huffman - 1.20-2 - add zlib BR * Wed Jul 21 2010 Adam Huffman 1.20-1 - Specfile autogenerated by cpanspec 1.78.