File stacks.spec of Package stacks

#
# spec file for package stacks
#
# Copyright (c) 2018 SUSE LINUX 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:           stacks
Version:        2.62
Release:        0
Summary:        Pipeline to analyze restriction enzyme-based data
License:        GPL-3.0-only
Group:          Productivity/Scientific/Other
URL:            http://catchenlab.life.illinois.edu/stacks/
Source:         http://catchenlab.life.illinois.edu/stacks/source/stacks-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  perl-DBD-mysql
BuildRequires:  python
BuildRequires:  sparsehash-devel
BuildRequires:  zlib-devel
Requires:       perl
Requires:       python

%description
Stacks is a software pipeline for building loci from short-read sequences, such as those generated on the Illumina platform.
Stacks was developed to work with restriction enzyme-based data, such as RAD-seq, for the purpose of building genetic maps and
conducting population genomics and phylogeography.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install

# CONVERT env HASHBANGS TO USE DIRECT EXECUTABLE
perlbin=`which perl`
sed -i "s:/usr/bin/env perl:${perlbin}:" %{buildroot}/%{_bindir}/*.pl
pybin=`which python`
sed -i "s:/usr/bin/env python:${pybin}:" %{buildroot}/%{_bindir}/*.py

%files
%license LICENSE
%doc README ChangeLog
%{_bindir}/*
%{_datadir}/stacks/
%{_datadir}/stacks/php/
%{_datadir}/stacks/php/*
%{_datadir}/stacks/sql/
%{_datadir}/stacks/sql/*

%changelog
openSUSE Build Service is sponsored by