# # spec file for package kgraphviewer # # Copyright (c) 2018 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/ # %define soname 3 Name: kgraphviewer Version: 2.4.3 Release: 0 Summary: Graphviz dot graph file viewer License: GPL-2.0 Group: Development/Tools/Other Url: https://www.kde.org/applications/graphics/kgraphviewer/ Source: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: graphviz-devel BuildRequires: kcoreaddons-devel BuildRequires: kdoctools-devel BuildRequires: kparts-devel BuildRequires: ki18n-devel BuildRequires: kiconthemes-devel BuildRequires: kwidgetsaddons-devel BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5PrintSupport) Requires: graphviz Requires: libkgraphviewer%{soname} = %{version} Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 %if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120300 %kf5_find_htmldocs %else # %%kf5_find_htmldocs is only defined since Leap 42.3 CURDIR=`pwd` pushd %{buildroot}%{_kf5_htmldir} for i in *; do if ! [ -d "/usr/share/locale/${i}" ]; then echo "Removing unsupported translation %{_kf5_htmldir}/${i}" rm -rf "$i" elif [ "$i" != "en" ]; then echo "%doc %lang($i) %{_kf5_htmldir}/${i}" >> $CURDIR/%{name}.lang fi done popd %endif %post -n libkgraphviewer%{soname} -p /sbin/ldconfig %postun -n libkgraphviewer%{soname} -p /sbin/ldconfig %files -n kgraphviewer-devel %defattr(-,root,root) %{_includedir}/* %{_kf5_cmakedir}/KGraphViewerPart %{_kf5_libdir}/libkgraphviewer.so %files -n libkgraphviewer%{soname} %defattr(-,root,root) %{_kf5_libdir}/libkgraphviewer.so.* %files lang -f %{name}.lang %defattr(-,root,root) %files %defattr(-,root,root) %doc AUTHORS COPYING COPYING.DOC %dir %{_kf5_configkcfgdir} %{_kf5_configdir}/kgraphviewer.categories #{_kf5_applicationsdir}/kgrapheditor.desktop %{_kf5_applicationsdir}/org.kde.kgraphviewer.desktop #{_kf5_appsdir}/kgrapheditor %{_kf5_kxmlguidir}/kgraphviewer %{_kf5_sharedir}/kgraphviewerpart %{_kf5_bindir}/* #{_kf5_configkcfgdir}/kgrapheditorsettings.kcfg %{_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