File HMMER.spec of Package HMMER
#
# spec file for package HMMER
#
# Copyright (c) 2013 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
%define emhome %{_datadir}/EMBOSS
Name: HMMER
Version: 2.3.2.650
Release: 0
Summary: The EMBOSS integrated version of HMMER, Biological sequence analysis with profile hidden Markov models
License: GPLv2+
Group: Productivity/Scientific/Other
URL: http://www.emboss.org/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: EMBOSS-devel
BuildRequires: gd-devel
BuildRequires: libpq5
BuildRequires: postgresql-devel
BuildRequires: postgresql-server
BuildRequires: postgresql-server-devel
BuildRequires: libharu-devel
BuildRequires: mariadb
BuildRequires: libmariadb-devel
BuildRequires: fdupes
BuildRequires: xorg-x11-libX11-devel
BuildRequires: libexpat-devel
BuildRequires: zlib-devel
BuildRequires: pam-devel
BuildRequires: libfreetype6
BuildRequires: libpng16-devel
Requires: EMBOSS
%description
HMMER is used for searching sequence databases for homologs of protein sequences, and for making protein sequence alignments. It implements methods using probabilistic models called profile hidden Markov models (profile HMMs). Compared to BLAST, FASTA, and other sequence alignment and database search tools based on older scoring methodology, HMMER aims to be significantly more accurate and more able to detect remote homologs because of the strength of its underlying mathematical models.
%package docs
Summary: Documentation for %{name}
Group: Documentation/Other
%description docs
The %{name}-docs package includes the documentation for %{name}.
%prep
%setup -q
%build
%configure \
--disable-static \
--with-x \
--with-auth \
--with-thread \
--includedir=%{_includedir}/EMBOSS \
--enable-systemlibs \
%ifarch ppc64 sparc64 x86_64
--enable-64 \
%endif
C_INCLUDE_PATH=/usr/include/EMBOSS/epcre:/usr/include/EMBOSS/:/usr/include/EMBOSS/eplplot/
export C_INCLUDE_PATH
%{__make} %{?_smp_mflags}
%install
rm -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
#move doc to /usr/share/doc/packages/EMBOSS/programs
mkdir -p %{buildroot}%{_datadir}/doc/packages/EMBOSS/programs
mv %{buildroot}%{_datadir}/EMBOSS/doc/html %{buildroot}%{_datadir}/doc/packages/EMBOSS/programs
mv %{buildroot}%{_datadir}/EMBOSS/doc/programs/text %{buildroot}%{_datadir}/doc/packages/EMBOSS/programs
rm -rf %{buildroot}%{_datadir}/EMBOSS/doc
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/EMBOSS
%files docs
%defattr(-,root,root,-)
%{_datadir}/doc/packages/EMBOSS
%changelog
* Sun Aug 14 2022 Tobias Schwarz <mail@tobias-schwarz.net> - 2.3.650-1
- updated SPEC file to compile on Leap 15.4
* Thu May 16 2013 Tobias Schwarz <mail@tobias-schwarz.net> - 2.3.650-1
- updated copyright for spec file to 2013
* Sun Oct 28 2012 Tobias Schwarz <mail@tobias-schwarz.net> - 2.3.2.650-1
- Update to version 2.3.2.650
* Tue Jul 10 2012 Tobias Schwarz <mail@tobias-schwarz.net> - 2.3.2-1
- First rpm package