File labplot.spec of Package labplot
#
# spec file for package labplot
#
# Copyright (c) 2015 SUSE LINUX 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: labplot
Version: 2.0.2
Release: 0
Summary: KDE4 data analysis and visualization application
License: GPL-2.0+
Group: Productivity/Scientific/Other
Url: https://edu.kde.org/applications/science/labplot/
Source: http://download.kde.org/stable/labplot/2.0.2/src/%{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: pkgconfig(gsl)
# BuildRequires: hdf5-devel
BuildRequires: libkde4-devel >= 4.7
# BuildRequires: pkgconfig(netcdf)
BuildRequires: pkgconfig(libpng)
# BuildRequires: liborigin-devel
BuildRequires: hicolor-icon-theme
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(muparser)
BuildRequires: pkgconfig(zlib)
%kde4_runtime_requires
%lang_package
%description
LabPlot is a KDE-application for interactive graphing and analysis
of scientific data. LabPlot provides an easy way to create, manage
and edit plots. It allows you to produce plots based on data from a
spreadsheet or on data imported from external files. Plots can be
exported to several pixmap and vector graphic formats.
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%kde4_makeinstall
popd
%find_lang LabPlot2 %{?no_lang_C}
%fdupes -s %{buildroot}
%kde_post_install
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_kde4_bindir}/labplot2
%{_kde4_appsdir}/LabPlot2/
%{_kde4_applicationsdir}/LabPlot2.desktop
%dir %{_kde4_datadir}/icons/hicolor/512x512
%dir %{_kde4_datadir}/icons/hicolor/512x512/apps
%{_kde4_datadir}/icons/hicolor/*/apps/LabPlot2.*
%{_kde4_datadir}/mime/packages/labplot2.xml
%dir %{_kde4_datadir}/appdata/
%{_kde4_datadir}/appdata/labplot.appdata.xml
%{_kde4_htmldir}/en/LabPlot2/
%files lang -f LabPlot2.lang
%defattr(-,root,root,-)
## These belong in the main package
%exclude %{_kde4_htmldir}/en/LabPlot2/
%changelog