kst/kst.spec
Stephan Kulow 29bf33a777 Accepting request 183776 from KDE:Distro:Factory
- Update to 2.0.7
  * Automatic formatting of X axis time display from the datawizard when reading string-formatted time
  * More speed for files with very many columns
  * Scripting: major rework adding support for histograms, spectrums and plugins 
  * Allow the x and y plot labels to be changed from the command line
  * Fix a bug where if you drag a plot to a new tab, it wasn't picked up by future autoformat actions nor listed in plot lists
  * Cumulative sum plugin now returns a vector of the same size as the input vector
  * Fix toggling tied zoom
  * Save/reload "automatically scale number axis" setting in plots.
  * Fix regression in which re-scaling font sizes when adding plots didn't work.
  * Fix gaussian + Lorentzian fits so that they actually fit
  * Respect dialog defaults and curve properties for point density.
  * Restore proper behavior of font scaling when adding plots to tabs (forwarded request 183701 from christiantrippe)

OBS-URL: https://build.opensuse.org/request/show/183776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kst?expand=0&rev=39
2013-07-21 06:09:28 +00:00

150 lines
4.3 KiB
RPMSpec

#
# spec file for package kst
#
# Copyright (c) 2013 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.7
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: Kst-%{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 -r %{name}2 Qt KDE 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