File probcons.spec of Package probcons

#
# spec file for package probcons
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild

Name: probcons
Summary: Multiple Alignments of Protein Sequences
Version: 1.12
Release: 2
License: Public Domain
Group: Productivity/Scientific/Other
BuildRequires: gcc-c++ make
Source: %{name}_v1_12.tar.gz
Patch0: probcons-cstring.patch 
Patch1: probcons-1.12-fix-gcc-4.6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://probcons.stanford.edu

%description
PROBCONS is a novel tool for generating multiple alignments of protein 
sequences. Using a combination of probabilistic modeling and consistency-based 
alignment techniques, PROBCONS has achieved the highest accuracies of all 
alignment methods to date.

Citation:
Do, C.B., Mahabhashyam, M.S.P., Brudno, M., and Batzoglou, S. 2005. 
PROBCONS: Probabilistic Consistency-based Multiple Sequence Alignment. 
Genome Research 15: 330-340. 

%prep
%setup -n %{name}
#missing cstring in includes
%patch0 -p1
%patch1 -p1

%build
make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
#compare clashes with program the same name from ImageMagick
install -m 755 compare %{buildroot}/%{_bindir}/compare-probcons
install -m 755 probcons %{buildroot}/%{_bindir}/probcons
install -m 755 makegnuplot %{buildroot}/%{_bindir}/makegnuplot
install -m 755 project %{buildroot}/%{_bindir}/project

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%doc README

%changelog
openSUSE Build Service is sponsored by