File kst.spec of Package kst

# spec file for package kst
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Christian Trippe
# 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

Name:           kst
Version:        2.0.8
Release:        0
Summary:        Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality
License:        GPL-2.0+
Group:          Productivity/Graphics/Visualization/Graph
Source:         Kst-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gsl2-support.patch -- fixes build with GSL-2.0
Patch:          gsl2-support.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  Mesa-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  getdata-devel
BuildRequires:  gsl-devel
BuildRequires:  libcfitsio-devel
BuildRequires:  libmatio-devel
BuildRequires:  libnetcdf
BuildRequires:  libnetcdf_c++-devel
BuildRequires:  netcdf-devel
BuildRequires:  readline-devel
BuildRequires:  update-desktop-files
Requires:       libnetcdf
Obsoletes:      python-kst < %{version}
%if 0%{?suse_version} >= 1500
BuildRequires:  libqt5-linguist
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  libqt4-devel

Kst is a data plotting and viewing program. Some of the features include:

- Robust plotting of live "streaming" data
- Powerful keyboard and mouse plot manipulation
- Powerful plug-in and extension support
- Large selection of built-in plotting and data manipulation functions,
  such as histograms, equations, and power spectra
- Color mapping and contour mapping capabilities for three-dimensional data
- Monitoring of events and notification support
- Built-in filtering and curve fitting capabilities
- Convenient command line interface
- Powerful graphical user interface

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
%if 0%{?suse_version} >= 1500
Requires:       pkgconfig(Qt5Concurrent)
Requires:       pkgconfig(Qt5Core)
Requires:       pkgconfig(Qt5Network)
Requires:       pkgconfig(Qt5PrintSupport)
Requires:       pkgconfig(Qt5Widgets)
Requires:       pkgconfig(Qt5Xml)
Requires:       libqt4-devel

%description devel
Development libraries and headers needed to build software
making use of %{name}

%setup -q -n=Kst-2.0.8
%patch -p1

EXTRA_FLAGS="-Dkst_install_prefix=/usr \
             -Dkst_rpath=0 \
             -Dkst_install_libdir=%{_lib} \
             -Dkst_release=1 \
             -Dkst_dbgsym=1 \
             -Dkst_python=0 \
%if 0%{?suse_version} >= 1500

make %{?_smp_mflags}

%suse_update_desktop_file -r %{name}2 Qt KDE Science Math
%fdupes %{buildroot}

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

rm -rf %{buildroot}

%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%dir %{_datadir}/kst
%dir %{_datadir}/kst/locale

%files devel

openSUSE Build Service is sponsored by