SHA256
1
0
forked from pool/kst
kst/kst.spec
Stephan Kulow 68493f2c12 Accepting request 242856 from KDE:Extra
- Build with MAT files support

- Update to 2.0.8

-Removed python-kst and added an obsolete for this. (Sorry I missed the comment in the first srq)

OBS-URL: https://build.opensuse.org/request/show/242856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kst?expand=0&rev=41
2014-07-31 19:50:14 +00:00

115 lines
3.3 KiB
RPMSpec

#
# spec file for package kst
#
# Copyright (c) 2014 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.8
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: getdata-devel
BuildRequires: gsl-devel
BuildRequires: libcfitsio-devel
BuildRequires: libmatio-devel
BuildRequires: libnetcdf_c++-devel
BuildRequires: libqt4-devel
BuildRequires: netcdf-devel
BuildRequires: readline-devel
BuildRequires: update-desktop-files
Obsoletes: python-kst < %{version}
%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 -n=Kst-2.0.8
%build
EXTRA_FLAGS="-Dkst_install_prefix=/usr \
-Dkst_rpath=0 \
-Dkst_install_libdir=%{_lib} \
-Dkst_release=1 \
-Dkst_dbgsym=1 \
-Dkst_python=0"
cmake $EXTRA_FLAGS
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -r %{name}2 Qt KDE Science Math
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_datadir}/applications/%{name}2.desktop
%{_bindir}/%{name}2
%{_datadir}/applnk/
%{_datadir}/mimelink/
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/*/apps/*%{name}.*
%{_libdir}/lib%{name}*.so.*
%{_libdir}/%{name}2/
%{_mandir}/man1/%{name}2.1.gz
%dir %{_datadir}/kst
%dir %{_datadir}/kst/locale
%{_datadir}/kst/locale/kst_common_*.qm
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/lib%{name}2app.a
%changelog