File mafft.spec of Package mafft

#
# spec file for package mafft
#
# Copyright (c) 2024 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:           mafft
Version:        7.525
Release:        0
Summary:        Multiple alignment program for amino acid or nucleotide sequences
License:        MIT
Group:          Productivity/Scientific/Chemistry
URL:            https://mafft.cbrc.jp/alignment/software/
Source:         https://mafft.cbrc.jp/alignment/software/%{name}-%{version}-without-extensions-src.tgz
BuildRequires:  gcc-c++
BuildRequires:  sed

%description
MAFFT is a multiple sequence alignment program for unix-like operating systems. It offers a range of multiple alignment methods.

%prep
%setup -q -n %{name}-%{version}-without-extensions

%build
cd core/
%make_build PREFIX=%{_prefix} LIBDIR=%{_libdir}/mafft CFLAGS="%{optflags}"

%install
cd core/
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}/mafft DESTDIR=%{buildroot}

sed -i 's/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/' %{buildroot}%{_bindir}/*.rb

ln -sf %{_libdir}/mafft/mafft-profile %{buildroot}%{_bindir}
ln -sf %{_libdir}/mafft/mafft-distance %{buildroot}%{_bindir}

%files
%license license
%doc readme.bk README.md test
%{_bindir}/*
%{_libdir}/%{name}
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by