2007-01-16 00:20:47 +01:00
|
|
|
#
|
2011-04-21 12:19:27 +02:00
|
|
|
# spec file for package kst
|
2007-01-16 00:20:47 +01:00
|
|
|
#
|
2013-03-17 10:06:57 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-21 12:19:11 +02:00
|
|
|
# Copyright (c) 2011 Christian Trippe ctrippe@opensuse.org
|
2007-01-16 00:20:47 +01:00
|
|
|
#
|
2008-10-24 15:15:03 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:20:47 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-26 11:02:42 +02:00
|
|
|
|
2007-01-16 00:20:47 +01:00
|
|
|
Name: kst
|
2013-07-21 08:09:28 +02:00
|
|
|
Version: 2.0.7
|
2012-03-26 11:02:42 +02:00
|
|
|
Release: 0
|
2011-10-19 13:52:09 +02:00
|
|
|
Summary: Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality
|
2012-03-26 11:02:42 +02:00
|
|
|
License: GPL-2.0+
|
2011-10-19 13:52:09 +02:00
|
|
|
Group: Productivity/Graphics/Visualization/Graph
|
2012-03-26 11:02:42 +02:00
|
|
|
Url: http://kst-plot.kde.org/
|
2013-07-21 08:09:28 +02:00
|
|
|
Source: Kst-%{version}.tar.gz
|
2011-10-19 13:52:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-21 12:19:11 +02:00
|
|
|
BuildRequires: Mesa-devel
|
2011-10-19 13:52:09 +02:00
|
|
|
BuildRequires: cmake
|
2007-05-23 16:18:12 +02:00
|
|
|
BuildRequires: fdupes
|
2011-10-19 13:52:09 +02:00
|
|
|
BuildRequires: gsl-devel
|
|
|
|
BuildRequires: kde4-filesystem
|
|
|
|
BuildRequires: libcfitsio-devel
|
2012-03-26 11:02:42 +02:00
|
|
|
%if 0%{?suse_version} >= 1220
|
2012-07-13 11:31:43 +02:00
|
|
|
BuildRequires: libnetcdf_c++-devel
|
2012-03-26 11:02:42 +02:00
|
|
|
BuildRequires: netcdf-devel
|
2012-08-04 09:19:23 +02:00
|
|
|
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
|
2012-03-26 11:02:42 +02:00
|
|
|
%else
|
2010-12-14 11:26:02 +01:00
|
|
|
BuildRequires: libnetcdf-devel
|
2012-03-26 11:02:42 +02:00
|
|
|
%endif
|
2012-05-22 08:16:10 +02:00
|
|
|
BuildRequires: getdata-devel
|
2011-10-19 13:52:09 +02:00
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2011-04-21 12:19:11 +02:00
|
|
|
|
2007-01-16 00:20:47 +01:00
|
|
|
%description
|
2013-03-17 10:06:57 +01:00
|
|
|
Kst is a data plotting and viewing program. Some of the features include:
|
2011-10-19 13:52:09 +02:00
|
|
|
|
|
|
|
- Robust plotting of live "streaming" data
|
2007-01-16 00:20:47 +01:00
|
|
|
- Powerful keyboard and mouse plot manipulation
|
|
|
|
- Powerful plug-in and extension support
|
2013-03-17 10:06:57 +01:00
|
|
|
- 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
|
2007-01-16 00:20:47 +01:00
|
|
|
- Monitoring of events and notification support
|
|
|
|
- Built-in filtering and curve fitting capabilities
|
|
|
|
- Convenient command line interface
|
|
|
|
- Powerful graphical user interface
|
|
|
|
|
2007-05-30 01:14:46 +02:00
|
|
|
%package devel
|
2011-10-19 13:52:09 +02:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: %{name} = %{version}
|
2011-04-21 12:19:11 +02:00
|
|
|
Requires: libqt4-devel
|
2007-05-30 01:14:46 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-10-19 13:52:09 +02:00
|
|
|
Development libraries and headers needed to build software
|
|
|
|
making use of %{name}
|
2007-05-30 01:14:46 +02:00
|
|
|
|
2012-08-04 09:19:23 +02:00
|
|
|
%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
|
|
|
|
|
2011-10-19 13:52:09 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-01-16 00:20:47 +01:00
|
|
|
|
|
|
|
%build
|
2012-08-04 09:19:23 +02:00
|
|
|
%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
|
2011-10-19 13:52:09 +02:00
|
|
|
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"
|
2012-08-04 09:19:23 +02:00
|
|
|
%endif
|
2011-10-19 13:52:09 +02:00
|
|
|
%cmake_kde4 -d build -- $EXTRA_FLAGS $RPM_BUILD_DIR/%buildsubdir/cmake
|
2012-03-26 11:02:42 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:20:47 +01:00
|
|
|
|
|
|
|
%install
|
2011-10-19 13:52:09 +02:00
|
|
|
cd build
|
2011-04-21 12:19:11 +02:00
|
|
|
%make_install
|
2011-10-19 13:52:09 +02:00
|
|
|
cd ..
|
2013-03-17 10:06:57 +01:00
|
|
|
%suse_update_desktop_file -r %{name}2 Qt KDE Science Math
|
2011-10-19 13:52:09 +02:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
%kde_post_install
|
2007-05-23 16:18:12 +02:00
|
|
|
|
2011-10-19 13:52:09 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2008-03-13 19:03:06 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:20:47 +01:00
|
|
|
|
|
|
|
%clean
|
2011-10-19 13:52:09 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:20:47 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-10-19 13:52:09 +02:00
|
|
|
%{_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
|
2011-04-21 12:19:11 +02:00
|
|
|
|
2008-07-09 23:10:21 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-10-19 13:52:09 +02:00
|
|
|
%{_kde4_libdir}/*.so
|
|
|
|
%{_kde4_libdir}/lib%{name}2app.a
|
2008-07-09 23:10:21 +02:00
|
|
|
|
2012-08-04 09:19:23 +02:00
|
|
|
%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
|
|
|
|
|
2007-05-23 16:18:12 +02:00
|
|
|
%changelog
|