File ugene.spec of Package UGENE
#
# spec file for package ugene
#
# 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: ugene
Summary: Integrated bioinformatics toolkit
Version: 1.11.1
Release: 1%{?dist}
#The entire source code is GPLv2+ except:
#file src/libs_3rdparty/qtbindings_core/src/qtscriptconcurrent.h which is GPLv2
#files in src/plugins_3rdparty/script_debuger/src/qtscriptdebug/ which are GPLv2
License: GPL-2.0
Group: Productivity/Scientific/Other
URL: http://ugene.unipro.ru
Source0: http://ugene.unipro.ru/downloads/%{name}-%{version}.tar.bz2
Patch0: patch1
Source100: %{name}-%{version}-rpmlintrc
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libqt4-devel >= 4.6.0 libQtWebKit-devel >= 4.6.0 desktop-file-utils
#We need strict versions of qt for correct work of src/libs_3rdparty/qtbindings_*
Requires: libqt4 >= 4.6.0 libqt4-x11 >= 4.6.0
%description
Unipro UGENE is a cross-platform visual environment for DNA and protein
sequence analysis. UGENE integrates the most important bioinformatics
computational algorithms and provides an easy-to-use GUI for performing
complex analysis of the genomic data. One of the main features of UGENE
is a designer for custom bioinformatics workflows.
%prep
%setup -q
%patch0 -p1
%build
%ifarch amd64 x86_64
%_bindir/qmake CONFIG+=x64 -r \
INSTALL_BINDIR=%{_bindir} \
INSTALL_LIBDIR=%{_libdir} \
INSTALL_DATADIR=%{_datadir} \
INSTALL_MANDIR=%{_mandir}
%else
%_bindir/qmake -r \
INSTALL_BINDIR=%{_bindir} \
INSTALL_LIBDIR=%{_libdir} \
INSTALL_DATADIR=%{_datadir} \
INSTALL_MANDIR=%{_mandir}
%endif
make %{?_smp_mflags}
%install
make install INSTALL_ROOT=%{buildroot}
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/%{name}/
%{_mandir}/man1/*
%doc COPYRIGHT LICENSE
%changelog