kst/kst.spec

118 lines
3.3 KiB
RPMSpec

#
# spec file for package kst
#
# Copyright (c) 2011 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.4
Release: 1
License: GPL-2.0+
Summary: Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality
Url: http://kst-plot.kde.org/
Group: Productivity/Graphics/Visualization/Graph
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
BuildRequires: libnetcdf-devel
BuildRequires: libqt4-devel
BuildRequires: readline-devel
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1130
BuildRequires: getdata-devel
%endif
%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}
%prep
%setup -q
%build
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"
%cmake_kde4 -d build -- $EXTRA_FLAGS $RPM_BUILD_DIR/%buildsubdir/cmake
%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
%changelog