2014-11-12 21:52:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package kgraphviewer
|
|
|
|
#
|
2018-09-17 21:50:15 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2014-11-12 21:52:01 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-09-13 17:09:29 +02:00
|
|
|
%define soname 3
|
2014-11-12 21:52:01 +01:00
|
|
|
Name: kgraphviewer
|
2018-09-17 21:50:15 +02:00
|
|
|
Version: 2.4.3
|
2014-11-12 21:52:01 +01:00
|
|
|
Release: 0
|
2017-09-13 17:09:29 +02:00
|
|
|
Summary: Graphviz dot graph file viewer
|
|
|
|
License: GPL-2.0
|
2014-11-12 21:52:01 +01:00
|
|
|
Group: Development/Tools/Other
|
2017-09-13 17:09:29 +02:00
|
|
|
Url: https://www.kde.org/applications/graphics/kgraphviewer/
|
2014-11-30 18:51:39 +01:00
|
|
|
Source: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
|
2014-11-12 21:52:01 +01:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: graphviz-devel
|
2017-09-13 17:09:29 +02:00
|
|
|
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)
|
2014-11-12 21:52:01 +01:00
|
|
|
Requires: graphviz
|
|
|
|
Requires: libkgraphviewer%{soname} = %{version}
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-09-13 17:09:29 +02:00
|
|
|
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.
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%package -n libkgraphviewer%{soname}
|
2017-09-13 17:09:29 +02:00
|
|
|
Summary: Graphviz dot graph file viewer
|
2014-11-12 21:52:01 +01:00
|
|
|
Group: Development/Tools/Other
|
|
|
|
Suggests: kgraphviewer = %{version}
|
|
|
|
|
|
|
|
%description -n libkgraphviewer%{soname}
|
2017-09-13 17:09:29 +02:00
|
|
|
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.
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%package -n kgraphviewer-devel
|
2017-09-13 17:09:29 +02:00
|
|
|
Summary: Graphviz dot graph file viewer
|
2014-11-12 21:52:01 +01:00
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: kgraphviewer = %{version}
|
|
|
|
Requires: libkgraphviewer%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n kgraphviewer-devel
|
2017-09-13 17:09:29 +02:00
|
|
|
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.
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%lang_package
|
|
|
|
%prep
|
2014-11-12 22:15:18 +01:00
|
|
|
%setup -q
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%build
|
2017-09-13 17:09:29 +02:00
|
|
|
%cmake_kf5 -d build
|
2014-11-12 21:52:01 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2017-09-13 17:09:29 +02:00
|
|
|
%kf5_makeinstall -C build
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%find_lang kgraphviewer %{name}.lang
|
2017-09-13 17:09:29 +02:00
|
|
|
%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
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%post -n libkgraphviewer%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libkgraphviewer%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n kgraphviewer-devel
|
|
|
|
%defattr(-,root,root)
|
2017-09-13 17:09:29 +02:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_kf5_cmakedir}/KGraphViewerPart
|
|
|
|
%{_kf5_libdir}/libkgraphviewer.so
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%files -n libkgraphviewer%{soname}
|
|
|
|
%defattr(-,root,root)
|
2017-09-13 17:09:29 +02:00
|
|
|
%{_kf5_libdir}/libkgraphviewer.so.*
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING COPYING.DOC
|
2017-09-13 17:09:29 +02:00
|
|
|
%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
|
2014-11-12 21:52:01 +01:00
|
|
|
|
|
|
|
%changelog
|