2d91792
Name:		samtools
be4d4fe
Version:	0.1.8
9f08810
Release:	1%{?dist}
2d91792
Summary:	Tools for nucleotide sequence alignments in the SAM format
2d91792
2d91792
Group:		Applications/Engineering
2d91792
License:	MIT
2d91792
URL:		http://samtools.sourceforge.net/
2d91792
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
2d91792
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2d91792
2d91792
BuildRequires:	zlib-devel >= 1.2.3
2d91792
BuildRequires:	ncurses-devel
2d91792
2d91792
%description
2d91792
SAM (Sequence Alignment/Map) is a flexible generic format for storing
2d91792
nucleotide sequence alignment. SAM tools provide efficient utilities on
2d91792
manipulating alignments in the SAM format.
2d91792
2d91792
2d91792
%prep
2d91792
%setup -q
2d91792
be4d4fe
# fix wrong interpreter
be4d4fe
perl -pi -e "s[/software/bin/python][%{__python}]" misc/varfilter.py
be4d4fe
2d91792
2d91792
%build
2d91792
make CFLAGS="%{optflags}" samtools razip %{?_smp_mflags}
2d91792
2d91792
cd misc/
2d91792
make CFLAGS="%{optflags}" %{?_smp_mflags}
2d91792
2d91792
2d91792
%install
2d91792
rm -rf %{buildroot}
2d91792
mkdir -p %{buildroot}%{_bindir}
2d91792
install -p samtools razip %{buildroot}%{_bindir}
2d91792
2d91792
gzip samtools.1
2d91792
mkdir -p %{buildroot}%{_mandir}/man1/
2d91792
cp -p samtools.1.gz %{buildroot}%{_mandir}/man1/
2d91792
2d91792
cd misc/
9f08810
install -p blast2sam.pl bowtie2sam.pl export2sam.pl interpolate_sam.pl	\
be4d4fe
    maq2sam-long maq2sam-short md5fa md5sum-lite novo2sam.pl psl2sam.pl \
be4d4fe
    sam2vcf.pl samtools.pl soap2sam.pl varfilter.py wgsim wgsim_eval.pl \
be4d4fe
    zoom2sam.pl								\
9f08810
    %{buildroot}%{_bindir}
2d91792
2d91792
2d91792
%clean
2d91792
rm -rf %{buildroot}
2d91792
2d91792
2d91792
%files
2d91792
%defattr(-,root,root,-)
9f08810
%doc AUTHORS ChangeLog COPYING INSTALL NEWS examples/ samtools.txt
2d91792
%{_bindir}/*
2d91792
%{_mandir}/man1/*
2d91792
2d91792
2d91792
%changelog
be4d4fe
* Tue Aug 17 2010 Rasmus Ory Nielsen <ron@ron.dk> - 0.1.8-1
be4d4fe
- Updated to 0.1.8.
be4d4fe
9f08810
* Mon Nov 30 2009 Rasmus Ory Nielsen <ron@ron.dk> - 0.1.7a-1
9f08810
- Updated to 0.1.7a.
9f08810
51ab88a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5c-4
51ab88a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
51ab88a
2d91792
* Sun Jul 12 2009 Rasmus Ory Nielsen <ron@ron.dk> - 0.1.5c-3
2d91792
- Specfile cleanup.
2d91792
2d91792
* Sat Jul 11 2009 Rasmus Ory Nielsen <ron@ron.dk> - 0.1.5c-2
2d91792
- Fixed manpage location.
2d91792
- Make sure optflags is passed to the makefiles.
2d91792
2d91792
* Sat Jul 11 2009 Rasmus Ory Nielsen <ron@ron.dk> - 0.1.5c-1
2d91792
- Initial build.