File dialign.spec of Package dialign
#
# spec file for package dialign
#
# 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: dialign
Summary: Multiple Sequence Alignment Program
Version: 2.2.1
Release: 3
License: LGPL-2.1
Group: Productivity/Scientific/Other
BuildRequires: gcc make
Source: %{name}-%{version}-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://bibiserv.techfak.uni-bielefeld.de/dialign/
%description
Dialign2. Multiple alignment of protein or DNA sequences.
Citation:
B. Morgenstern (1999). DIALIGN 2: improvement of the segment-to-segment
approach to multiple sequence alignment. Bioinformatics 15, 211 - 218.
For more information, updated references etc. please visit the
DIALIGN home page at http://dialign.gobics.de/
%prep
%setup -n dialign_package
%build
export CFLAGS="$RPM_OPT_FLAGS"
cd src
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
cd src
install -m 755 dialign2-2 %{buildroot}%{_bindir}/dialign2-2
ln -s %{_bindir}/dialign2-2 %{buildroot}/%{_bindir}/dialign
cd ..
cp -rv dialign2_dir/* %{buildroot}/%{_datadir}/%{name}/
#install script to set DIALIGN2_DIR
%{__mkdir_p} %{buildroot}%{_sysconfdir}/profile.d
echo "export DIALIGN2_DIR=%{_datadir}/%{name}/" > %{buildroot}%{_sysconfdir}/profile.d/dialign.sh
echo "setenv DIALIGN2_DIR %{_datadir}/%{name}/" > %{buildroot}%{_sysconfdir}/profile.d/dialign.csh
%clean
%files
%defattr(-,root,root)
%{_bindir}/*
%doc license INSTALLATION_GUIDE USER_GUIDE
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/profile.d/*
%changelog