File kst.spec of Package kde3-kst

#
# spec file for package kst (Version 1.8.0)
#
# 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/

Name:           kde3-kst
BuildRequires:  gsl1-devel kdelibs3-devel libcfitsio-devel
%if %suse_version > 1210
%if %suse_version >= 1500
BuildRequires:  readline-devel
%else
BuildRequires:  readline5-devel
%endif
BuildRequires:  libnetcdf_c++-devel
%else 
BuildRequires:  libnetcdf-devel readline-devel
%endif
BuildRequires:	openssl-devel
BuildRequires:  fdupes
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Visualization/Graph
Summary:        Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality
Version:        1.8.0
Release:        1
Url:            http://extragear.kde.org/apps/kst/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        kst-%version.tar.bz2
Source1:        kst-updated-desktop-files.tar.gz
Requires:       %{name}-lang = %{version}
Patch0:         fix-desktop-file.diff
Obsoletes:      kst <= 1.8.0
Provides:       kst = 1.8.0

%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

%lang_package

%package devel
License:        GPL-2.0-or-later
Summary:        Real-Time Data Viewing and Plotting Tool with Basic Data Analysis Functionality
Group:          Productivity/Scientific/Math
Requires:       kst = %{version}
Requires:       kdelibs3-devel
Obsoletes:      kst-devel <= 1.8.0
Provides:       kst-devel = 1.8.0

%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


%prep 
%setup -q -n kst-%{version}
%patch -P 0
pushd kst
popd
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options

#export LDFLAGS="$LDFLAGS -fno-lto"
#export CXXFLAGS="$CXXFLAGS -flo-lto"

./configure $configkde --disable-final --with-extra-includes=/usr/include/libcfitsio0
sed -i 's|flto=auto|fno-lto|g' kst/src/**/Makefile
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=${RPM_BUILD_ROOT} install
tar xvzf %SOURCE1 -C ${RPM_BUILD_ROOT}
kde_post_install
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT/opt/kde3
%endif
%find_lang kst

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f kst.lang lang
%defattr(-,root,root)
%dir /opt/kde3/share/locale/br
%dir /opt/kde3/share/locale/br/LC_MESSAGES
%dir /opt/kde3/share/locale/ka
%dir /opt/kde3/share/locale/ka/LC_MESSAGES
%dir /opt/kde3/share/locale/mt
%dir /opt/kde3/share/locale/mt/LC_MESSAGES
%dir /opt/kde3/share/locale/nds
%dir /opt/kde3/share/locale/nds/LC_MESSAGES
%dir /opt/kde3/share/locale/cy
%dir /opt/kde3/share/locale/cy/LC_MESSAGES
%dir /opt/kde3/share/locale/ga
%dir /opt/kde3/share/locale/ga/LC_MESSAGES
%dir /opt/kde3/share/locale/ms
%dir /opt/kde3/share/locale/ms/LC_MESSAGES
%dir /opt/kde3/share/locale/rw
%dir /opt/kde3/share/locale/rw/LC_MESSAGES

%files
%defattr(-,root,root)
/opt/kde3/bin/d2asc
/opt/kde3/bin/kst
/opt/kde3/bin/kstcmd
/opt/kde3/%_lib/kde3/kst*
/opt/kde3/%_lib/kde3/plugins/designer/kstwidgets.*
/opt/kde3/%_lib/libkstwidgets.so.*
/opt/kde3/%_lib/libkstextdate.so.*
/opt/kde3/%_lib/libkstmath.so.*
/opt/kde3/%_lib/libkstapp.so.*
/opt/kde3/%_lib/libkst.so.*
/opt/kde3/%_lib/libkstwidgets.so
/opt/kde3/%_lib/libkstextdate.so
/opt/kde3/%_lib/libkstmath.so
/opt/kde3/%_lib/libkstapp.so
/opt/kde3/%_lib/libkst.so
/opt/kde3/share/applications/kde/kst.desktop
/opt/kde3/share/apps/kconf_update/kstautosave11.upd
/opt/kde3/share/apps/kconf_update/kstrcmisc11.upd
/opt/kde3/share/apps/kst
/opt/kde3/share/icons/*/*/*/addelogentry.*
/opt/kde3/share/icons/*/*/*/kst*
/opt/kde3/share/icons/*/*/*/launchelogbrowser.*
/opt/kde3/share/mimelnk/application/x-kst.desktop
/opt/kde3/share/services/kst
/opt/kde3/share/servicetypes/kst
/opt/kde3/share/man/man1/kst.1
/opt/kde3/share/config/colors

%files devel
%defattr(-,root,root)
/opt/kde3/include/kst*
/opt/kde3/include/rwlock.h
/opt/kde3/%_lib/libkstwidgets.la
/opt/kde3/%_lib/libkstextdate.la
/opt/kde3/%_lib/libkstmath.la
/opt/kde3/%_lib/libkstapp.la
/opt/kde3/%_lib/libkst.la

%changelog
openSUSE Build Service is sponsored by