# # spec file for package kgraphviewer # # Copyright (c) 2019 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 https://bugs.opensuse.org/ # %define soname 3 Name: kgraphviewer Version: 2.4.3 Release: 0 Summary: Graphviz dot graph file viewer License: GPL-2.0-only Group: Development/Tools/Other URL: https://www.kde.org/applications/graphics/kgraphviewer/ Source: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: graphviz-devel BuildRequires: kcoreaddons-devel BuildRequires: kdoctools-devel BuildRequires: ki18n-devel BuildRequires: kiconthemes-devel BuildRequires: kparts-devel BuildRequires: kwidgetsaddons-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) Requires: graphviz Requires: libkgraphviewer%{soname} = %{version} Recommends: %{name}-lang %description KGraphViewer is a Graphviz dot graph file viewer, aimed to replace the other outdated Graphviz tools. Graphs are commonly used in scientific domains and particularly in computer science. %package -n libkgraphviewer%{soname} Summary: Graphviz dot graph file viewer Group: Development/Tools/Other Suggests: kgraphviewer = %{version} %description -n libkgraphviewer%{soname} KGraphViewer is a Graphviz dot graph file viewer, aimed to replace the other outdated Graphviz tools. Graphs are commonly used in scientific domains and particularly in computer science. %package -n kgraphviewer-devel Summary: Graphviz dot graph file viewer Group: Development/Tools/Other Requires: kgraphviewer = %{version} Requires: libkgraphviewer%{soname} = %{version} %description -n kgraphviewer-devel KGraphViewer is a Graphviz dot graph file viewer, aimed to replace the other outdated Graphviz tools. Graphs are commonly used in scientific domains and particularly in computer science. %lang_package %prep %setup -q %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %find_lang kgraphviewer %{name}.lang %{kf5_find_htmldocs} %post -n libkgraphviewer%{soname} -p /sbin/ldconfig %postun -n libkgraphviewer%{soname} -p /sbin/ldconfig %files -n kgraphviewer-devel %{_includedir}/* %{_kf5_cmakedir}/KGraphViewerPart %{_kf5_libdir}/libkgraphviewer.so %files -n libkgraphviewer%{soname} %{_kf5_libdir}/libkgraphviewer.so.* %files lang -f %{name}.lang %files %license COPYING COPYING.DOC %doc AUTHORS %dir %{_kf5_configkcfgdir} %{_kf5_debugdir}/kgraphviewer.categories %{_kf5_applicationsdir}/org.kde.kgraphviewer.desktop %{_kf5_kxmlguidir}/kgraphviewer %{_kf5_sharedir}/kgraphviewerpart %{_kf5_bindir}/* %{_kf5_configkcfgdir}/kgraphviewer_partsettings.kcfg %{_kf5_configkcfgdir}/kgraphviewersettings.kcfg %{_kf5_appstreamdir}/org.kde.kgraphviewer.appdata.xml %{_kf5_appstreamdir}/org.kde.libkgraphviewer.metainfo.xml %{_kf5_iconsdir}/* %{_kf5_plugindir}/kgraphviewerpart.so %{_kf5_servicesdir}/kgraphviewer_part.desktop %doc %lang(en) %{_kf5_htmldir}/en/kgraphviewer %changelog