File tv.spec of Package treeviewx
#
# spec file for package tv
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Matthias Mailänder
#
# 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: tv
Version: 0.5
Release: 0
Summary: Phylogenetic Tree Viewer
License: GPL-2.0
Group: Productivity/Scientific/Other
Url: http://code.google.com/p/treeviewx/
Source0: %{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: update-desktop-files
%if 0%{?suse_version} < 1140
BuildRequires: wxGTK-devel >= 2.8
%else
BuildRequires: wxWidgets-devel
%endif
#treeview has apparently some messy code, so we need this
BuildRequires: -post-build-checks
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Program to read and display NEXUS and Newick format tree files
(such as those output by PAUP, ClustalX, TREE-PUZZLE, and other
programs).
%prep
%setup -q
%build
%configure
make
%install
%makeinstall
install -D bitmaps/treeview.xpm %{buildroot}/%{_datadir}/pixmaps/treeview.xpm
%suse_update_desktop_file -c treeview "TreeView X" "Phylogenetic Tree Viewer" tv treeview Education Science
# fix permissions
chmod 644 %{buildroot}%{_datadir}/pixmaps/treeview.xpm
chmod 644 COPYING
%fdupes -s %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
rm -rf filelists
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/tv
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%changelog