# # spec file for package kst (Version 2.0.0beta2) # # Copyright (c) 2009 SUSE LINUX Products 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/ # # norootforbuild Name: kst BuildRequires: gsl-devel kdebase4-workspace-devel libkde4-devel readline-devel BuildRequires: chrpath libcfitsio-devel libqt4-devel update-desktop-files %if %suse_version > 1020 BuildRequires: fdupes %endif License: GPL v2 or later Group: Productivity/Graphics/Visualization/Graph Summary: Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality Version: 2.0.0beta2 Release: 1 Url: http://extragear.kde.org/apps/kst/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %name-2.0.0-beta2.tar.bz2 Patch: fix-desktop.diff %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 Authors: -------- C. Barth Netterfield George Staikos Andrew Walker Rick Chern %package devel License: GPL v2 or later Summary: Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality Group: Productivity/Scientific/Math Requires: kst = %{version} Requires: libkde4-devel %description 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 Authors: -------- C. Barth Netterfield George Staikos Andrew Walker Rick Chern %prep %setup -q -n %name %patch %build export INSTDIR=/usr qmake -r ./kst.pro make -j3 %install make INSTALL_ROOT=${RPM_BUILD_ROOT} install mkdir -p ${RPM_BUILD_ROOT}/usr/lib/kst mv ${RPM_BUILD_ROOT}/usr/plugin/* ${RPM_BUILD_ROOT}/usr/lib/kst %suse_update_desktop_file kst Qt KDE Education Science Math %kde_post_install %if %suse_version > 1020 %fdupes $RPM_BUILD_ROOT %endif cd ${RPM_BUILD_ROOT} cd usr/bin for i in `ls` do chrpath -r %{_libdir}:/usr/lib/kst $i done cd ../lib for i in `ls lib*` do chrpath -r %{_libdir}:/usr/lib/kst $i done cd ../lib/kst for i in `ls` do chrpath -r %{_libdir}:/usr/lib/kst $i done %ifarch x86_64 cd $RPM_BUILD_ROOT/usr mv lib lib64 %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %dir %{_libdir}/kst %{_bindir}/kst %{_libdir}/libkstapp.so.* %{_libdir}/libkstmath.so.* %{_libdir}/libkst.so.* %{_libdir}/kst/* %files devel %defattr(-,root,root) %{_libdir}/*.so %changelog