From 51672312bd2f5e181c35034e8b3f9aed44ccc9a042d4c30c5cf9b5a6a2639e03 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Wed, 17 Jul 2019 20:43:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kgraphviewer?expand=0&rev=14 --- kgraphviewer.changes | 6 ++++++ kgraphviewer.spec | 47 ++++++++++++-------------------------------- 2 files changed, 19 insertions(+), 34 deletions(-) diff --git a/kgraphviewer.changes b/kgraphviewer.changes index 93ce188..e262709 100644 --- a/kgraphviewer.changes +++ b/kgraphviewer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 17 20:42:04 UTC 2019 - Christophe Giboudeaux + +- Use _kf5_debugdir for logging categories files. +- Run spec-cleaner + ------------------------------------------------------------------- Mon Sep 17 16:25:31 UTC 2018 - wbauer@tmo.at diff --git a/kgraphviewer.spec b/kgraphviewer.spec index 0f218e7..86e8148 100644 --- a/kgraphviewer.spec +++ b/kgraphviewer.spec @@ -1,7 +1,7 @@ # # spec file for package kgraphviewer # -# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,27 +21,27 @@ Name: kgraphviewer Version: 2.4.3 Release: 0 Summary: Graphviz dot graph file viewer -License: GPL-2.0 +License: GPL-2.0-only Group: Development/Tools/Other -Url: https://www.kde.org/applications/graphics/kgraphviewer/ +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: kparts-devel BuildRequires: kwidgetsaddons-devel +BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) -BuildRequires: pkgconfig(Qt5Widgets) -BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Widgets) 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. @@ -67,6 +67,7 @@ KGraphViewer is a Graphviz dot graph file viewer, aimed to replace the other out Graphs are commonly used in scientific domains and particularly in computer science. %lang_package + %prep %setup -q @@ -78,52 +79,30 @@ Graphs are commonly used in scientific domains and particularly in computer scie %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 + %{kf5_find_htmldocs} %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 +%license COPYING COPYING.DOC +%doc AUTHORS %dir %{_kf5_configkcfgdir} -%{_kf5_configdir}/kgraphviewer.categories -#{_kf5_applicationsdir}/kgrapheditor.desktop +%{_kf5_debugdir}/kgraphviewer.categories %{_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