53e5276
Name:		bowtie
53e5276
Version:	0.12.7
51044c5
Release:	4%{?dist}
53e5276
Summary:	An ultrafast, memory-efficient short read aligner
53e5276
53e5276
Group:		Applications/Engineering
53e5276
License:	Artistic 2.0
53e5276
URL:		http://bowtie-bio.sourceforge.net/index.shtml
53e5276
Source0:	http://downloads.sourceforge.net/%{name}-bio/%{name}-%{version}-src.zip
53e5276
Patch0:		%{name}-script-shebang.patch
179ce90
Patch1:		%{name}-gcc47.patch
53e5276
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
53e5276
53e5276
53e5276
%description
53e5276
53e5276
Bowtie, an ultrafast, memory-efficient short read aligner for short
53e5276
DNA sequences (reads) from next-gen sequencers. Please cite: Langmead
53e5276
B, et al. Ultrafast and memory-efficient alignment of short DNA
53e5276
sequences to the human genome. Genome Biol 10:R25.
53e5276
53e5276
%prep
53e5276
%setup -q
53e5276
53e5276
%patch0 -p1 
179ce90
#Fix compilation with GCC 4.7
179ce90
%patch1 -p1 -b .%{name}-gcc47.patch
53e5276
53e5276
%build
53e5276
make %{?_smp_mflags} -p EXTRA_FLAGS="%{optflags}"
53e5276
53e5276
53e5276
%install
53e5276
rm -rf %{buildroot}
53e5276
53e5276
mkdir -p %{buildroot}/%{_bindir}
53e5276
mkdir -p %{buildroot}/%{_datadir}/bowtie
53e5276
53e5276
53e5276
install -m 0755 bowtie %{buildroot}/%{_bindir}
53e5276
install -m 0755 bowtie-build %{buildroot}/%{_bindir}
53e5276
install -m 0755 bowtie-inspect %{buildroot}/%{_bindir}
53e5276
53e5276
cp -a reads %{buildroot}/%{_datadir}/bowtie/
53e5276
cp -a indexes %{buildroot}/%{_datadir}/bowtie/
53e5276
cp -a genomes %{buildroot}/%{_datadir}/bowtie/
53e5276
cp -a scripts %{buildroot}/%{_datadir}/bowtie/
53e5276
53e5276
53e5276
%clean
53e5276
rm -rf %{buildroot}
53e5276
53e5276
53e5276
%files
53e5276
%defattr(-,root,root,-)
53e5276
%doc MANUAL NEWS VERSION AUTHORS TUTORIAL doc/
53e5276
%dir %{_datadir}/bowtie
53e5276
%{_bindir}/bowtie
53e5276
%{_bindir}/bowtie-build
53e5276
%{_bindir}/bowtie-inspect
53e5276
%{_datadir}/bowtie/genomes
53e5276
%{_datadir}/bowtie/indexes
53e5276
%{_datadir}/bowtie/reads
53e5276
%{_datadir}/bowtie/scripts
53e5276
53e5276
%changelog
51044c5
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.7-4
51044c5
- Rebuilt for c++ ABI breakage
51044c5
179ce90
* Mon Jan  9 2012 Adam Huffman <verdurin@fedoraproject.org> - 0.12.7-3
179ce90
- add patch to fix compilation with GCC 4.7
179ce90
53e5276
* Mon Jun 27 2011 Adam Huffman <bloch@verdurin.com> - 0.12.7-2
53e5276
- add missing doc/ 
53e5276
- add patch to fix Perl script without shebang
53e5276
53e5276
* Mon Sep 13 2010 Adam Huffman <bloch@verdurin.com> - 0.12.7-1
53e5276
- new upstream release 0.12.7
53e5276
- changelog at http://bowtie-bio.sourceforge.net/index.shtml
53e5276
53e5276
* Tue Aug 31 2010 Adam Huffman <bloch@verdurin.com> - 0.12.5-3
53e5276
- really fix compilation flags
53e5276
53e5276
* Wed Aug 25 2010 Adam Huffman <bloch@verdurin.com> - 0.12.5-2
53e5276
- fix compilation flags
53e5276
53e5276
* Mon Aug  2 2010 Adam Huffman <bloch@verdurin.com> - 0.12.5-1
53e5276
- initial version
53e5276