File kgraphviewer.spec of Package kgraphviewer

#
# 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 0
Name:           kgraphviewer
Version:        2.5.0
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:         %{name}-%{version}.tar.xz
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  boost-devel >= 1.36
BuildRequires:  graphviz-devel > 2.30.0
BuildRequires:  cmake(Qt6Core) >= 6.5.0
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Core5Compat)
BuildRequires:  cmake(KF6CoreAddons) >= 6.0.0
BuildRequires:  cmake(KF6I18n)
BuildRequires:  cmake(KF6Parts)
BuildRequires:  cmake(KF6WidgetsAddons)
Requires:       graphviz >= 2.30
Requires:       libkgraphviewer%{soname} = %{version}

%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
%autosetup -n %{name}-%{version}

%build
%cmake_kf6 -DQT_MAJOR_VERSION=6
%kf6_build

%install
%kf6_install

%find_lang kgraphviewer %{name}.lang

rm -rf %{buildroot}%{_datadir}/doc/HTML

%post -n libkgraphviewer%{soname} -p /sbin/ldconfig
%postun -n libkgraphviewer%{soname} -p /sbin/ldconfig

%files -n kgraphviewer-devel
%{_includedir}/*
%{_kf6_cmakedir}/KGraphViewerPart
%{_kf6_libdir}/libkgraphviewer.so

%files -n libkgraphviewer%{soname}
%{_kf6_libdir}/libkgraphviewer.so.*

%files lang -f %{name}.lang

%files
%license COPYING
%doc AUTHORS
%dir %{_kf6_configkcfgdir}
%{_kf6_applicationsdir}/org.kde.kgraphviewer.desktop
%{_kf6_sharedir}/qlogging-categories6/kgraphviewer.categories
%{_kf6_bindir}/*
%{_kf6_configkcfgdir}/kgraphviewer_partsettings.kcfg
%{_kf6_configkcfgdir}/kgraphviewersettings.kcfg
%{_kf6_appstreamdir}/org.kde.kgraphviewer.appdata.xml
%{_kf6_iconsdir}/*
%{_kf6_plugindir}/kf6/parts/kgraphviewerpart.so

%changelog
openSUSE Build Service is sponsored by