File ggobi.spec of Package ggobi

#
# spec file for package ggobi
#
# 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:           ggobi
Version:        2.1.11
Release:        0
Summary:        Open Source Visualization for Exploring High-Dimensional Data
License:        CPL-1.0
Group:          Productivity/Graphics/Visualization/Graph
URL:            http://www.ggobi.org/
Source:         http://www.ggobi.org/downloads/%{name}-%{version}.tar.bz2
Patch1:         %{name}-64bit.patch
Patch2:         %{name}-plugin-dir.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  e2fsprogs
BuildRequires:  graphviz-devel
BuildRequires:  gtk2-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libtool
BuildRequires:  libxml2-devel
BuildRequires:  ncurses-devel
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel
Distribution:	openSUSE

%description
GGobi is an open source visualization program for exploring
high-dimensional data. It provides highly dynamic and interactive
graphics such as tours, as well as familiar graphics such as the
scatterplot, barchart and parallel coordinates plots. Plots are
interactive and linked with brushing and identification.

%package devel
Summary:        Open Source Visualization for Exploring High-Dimensional Data
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}
Requires:       gtk2-devel
Requires:       libxml2-devel

%description devel
Devel files for GGobi, an open source visualization program for exploring
high-dimensional data.

%prep
%setup -q
autoreconf -fiv
%patch1 -p1
%patch2 -p1

%build
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"

%configure --with-all-plugins --disable-rpath --docdir=%{_docdir}
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}%{_libdir}/%{name}/plugins/ggvis/plugin.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/DataViewer/plugin.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/DescribeDisplay/plugin.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/GraphAction/plugin.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/GraphLayout/plugin.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/VarCloud/plugin.la
make ggobirc
mkdir -p %{buildroot}%{_sysconfdir}/xdg/ggobi
cp ggobirc %{buildroot}%{_sysconfdir}/xdg/ggobi
%suse_update_desktop_file -i %{name}

%files
%license COPYING
%doc ABOUT-NLS AUTHORS ChangeLog CPLicense.txt README
%dir %{_sysconfdir}/xdg/ggobi
%config %{_sysconfdir}/xdg/ggobi/ggobirc
%{_bindir}/ggobi
%{_datadir}/ggobi
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_docdir}/*
%{_libdir}/ggobi

%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig

%files devel
%dir %{_includedir}/ggobi
%{_includedir}/ggobi/*
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/ggobi.pc
%{_libdir}/*.la

%changelog
openSUSE Build Service is sponsored by