File prank.spec of Package prank

#
# spec file for package prank
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           prank
Summary:        Probabilistic Alignment Kit
Version:        170427
Release:        0
License:        GPL-2.0-or-later
Group:          Productivity/Scientific/Other
URL:            http://wasabiapp.org/software/prank/
Source:         http://wasabiapp.org/download/prank/%{name}.source.%{version}.tgz
BuildRequires:  gcc-c++
BuildRequires:  make

%description
PRANK is a command-line program that contains the latest features and the 
complete set of options. It is ideal for scripting and non-interactive work, 
and as it supports the MSAML-formatted output, the resulting alignments can 
always be browsed using the graphical front-end in PRANKSTER

PRANK is developed on Linux but works also on MacOSX and Windows

Citation:
Loytynoja A, Goldman N. 2005. An algorithm for progressive multiple alignment 
of sequences with insertions. PNAS 102:10557-10562

%prep
%setup -n prank-msa/src
# Remove explicit -m64 option, break 32bit archs and aarch64
sed -i -e '/FLAGS/ s,-m64,,' Makefile

%build
%make_build DEFINES="%{optflags} -Wno-error=return-type"

%install
install -m 755 -D prank %{buildroot}%{_bindir}/prank
install -m 644 -D prank.1 %{buildroot}%{_mandir}/man1/prank.1

%files
%{_bindir}/prank
%{_mandir}/man1/prank*

%changelog
openSUSE Build Service is sponsored by