# # spec file for package kst # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 Christian Trippe ctrippe@opensuse.org # # 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: kst Version: 2.0.6 Release: 0 Summary: Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality License: GPL-2.0+ Group: Productivity/Graphics/Visualization/Graph Url: http://kst-plot.kde.org/ Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: Mesa-devel BuildRequires: cmake BuildRequires: fdupes BuildRequires: gsl-devel BuildRequires: kde4-filesystem BuildRequires: libcfitsio-devel %if 0%{?suse_version} >= 1220 BuildRequires: libnetcdf_c++-devel BuildRequires: netcdf-devel BuildRequires: python-numpy-devel #Python-scipy is only available from 12.2 onwards, so the whole python scripting part ist only build for 12.2 onwards BuildRequires: python-scipy-devel %else BuildRequires: libnetcdf-devel %endif BuildRequires: getdata-devel BuildRequires: libqt4-devel BuildRequires: readline-devel BuildRequires: update-desktop-files %description 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} Requires: libqt4-devel %description devel Development libraries and headers needed to build software making use of %{name} %if 0%{?suse_version} >= 1220 %package -n python-kst Summary: Python scripting support for %{name} Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python-base = %py_ver Requires: python-numpy Requires: python-scipy %description -n python-kst Provides scripting support for %{name} with Python %endif %prep %setup -q %build %if 0%{?suse_version} >= 1220 EXTRA_FLAGS="-Dkst_install_prefix=%{_kde_prefix} \ -Dkst_rpath=0 \ -Dkst_install_libdir=%{_lib} \ -Dkst_install_plugin_desktop_file_path=%{_kde4_servicesdir}/%{name} -Dkst_release=1 \ -Dkst_python=1" %else EXTRA_FLAGS="-Dkst_install_prefix=%{_kde_prefix} \ -Dkst_rpath=0 \ -Dkst_install_libdir=%{_lib} \ -Dkst_install_plugin_desktop_file_path=%{_kde4_servicesdir}/%{name} -Dkst_release=1" %endif %cmake_kde4 -d build -- $EXTRA_FLAGS $RPM_BUILD_DIR/%buildsubdir/cmake make %{?_smp_mflags} %install cd build %make_install cd .. %suse_update_desktop_file %{name}2 Qt KDE Education Science Math %fdupes %{buildroot} %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_kde4_datadir}/applications/%{name}2.desktop %{_kde4_bindir}/%{name}2 %{_kde4_datadir}/applnk/ %{_kde4_datadir}/mimelink/ %{_kde4_iconsdir}/hicolor/*/apps/*%{name}.* %{_kde4_libdir}/lib%{name}*.so.* %{_kde4_libdir}/%{name}2/ %{_kde4_mandir}/man1/%{name}2.1.gz %files devel %defattr(-,root,root) %{_kde4_libdir}/*.so %{_kde4_libdir}/lib%{name}2app.a %if 0%{?suse_version} >= 1220 %files -n python-kst %defattr(-,root,root) %{python_sitearch}/pykst.py %{python_sitearch}/pykstpp.py %{python_sitearch}/pykstpp_h.py %endif %changelog