File boxshade.spec of Package boxshade
#
# spec file for package boxshade
#
# Copyright (c) 2012 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/
#
Name: boxshade
Summary: Pretty Printing and Shading of Multiple-alignment Files
License: SUSE-Public-Domain
Group: Productivity/Scientific/Other
Version: 3.3.1
Release: 0
BuildRequires: gcc
BuildRequires: make
Source: source.tar.Z
Patch: boxshade-cflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.isrec.isb-sib.ch/ftp-server/boxshade/
%description
BOXSHADE is a program for creating pretty output of mutiple aligned
protein/DNA data.
3.3.1 is the first available C version.
%prep
%setup -c
%patch -p1
%build
make -f makefile.unx
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/boxshade/
install -m 755 boxshade %{buildroot}/%{_bindir}/boxshade
install -m 644 *.sim %{buildroot}/%{_datadir}/boxshade/
install -m 644 *.grp %{buildroot}/%{_datadir}/boxshade/
install -m 644 *.par %{buildroot}/%{_datadir}/boxshade/
#install script to set BOXDIR
%{__mkdir_p} %{buildroot}%{_sysconfdir}/profile.d
echo "export BOXDIR=%{_datadir}/%{name}/" > %{buildroot}%{_sysconfdir}/profile.d/boxshade.sh
echo "setenv BOXDIR %{_datadir}/%{name}/" > %{buildroot}%{_sysconfdir}/profile.d/boxshade.csh
%clean
%files
%defattr(-,root,root)
%{_bindir}/boxshade
%{_datadir}/boxshade
%config(noreplace) %{_sysconfdir}/profile.d/*
%changelog