[kgraphviewer] Initial import

Lubomir Rintel lkundrak at fedoraproject.org
Mon Feb 9 10:07:48 UTC 2015


commit e7a3a08f2e132411bc78604dae198e710e35cff8
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Mon Feb 9 11:07:32 2015 +0100

    Initial import

 .gitignore        |    1 +
 kgraphviewer.spec |  117 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..71aea47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kgraphviewer-2.2.0.tar.xz
diff --git a/kgraphviewer.spec b/kgraphviewer.spec
new file mode 100644
index 0000000..1ef33dd
--- /dev/null
+++ b/kgraphviewer.spec
@@ -0,0 +1,117 @@
+Name:           kgraphviewer
+Summary:        Graphviz dot graph file viewer
+Version:        2.2.0
+Release:        2%{?dist}
+Group:          Applications/Multimedia
+# Bit of a mess. README states it's GPLv2+, however the source files
+# indicate it's GPLv2. FDL is included in COPYING.DOC, but does not
+# apply to anything.
+License:        GPLv2
+Url:            https://projects.kde.org/projects/extragear/graphics/kgraphviewer
+Source0:        http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
+
+BuildRequires:  boost-devel
+BuildRequires:  graphviz-devel
+BuildRequires:  zlib-devel
+BuildRequires:  hicolor-icon-theme
+BuildRequires:  gettext
+BuildRequires:  libappstream-glib
+BuildRequires:  desktop-file-utils
+BuildRequires:  kdelibs4-devel
+Requires:       graphviz
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+%{?kde_runtime_requires}
+
+%description
+KGraphViewer is a Graphviz dot graph file viewer.
+
+
+%package libs
+Summary:        Graphviz dot graph file viewer library
+Group:          Development/Libraries
+Requires:       kde-filesystem
+
+
+%description libs
+KGraphViewer is a Graphviz dot graph file viewer for KDE.
+This packages contains a library that can be shared by other tools.
+
+
+%package devel
+Summary:        Graphviz dot graph file viewer development files
+Group:          Development/Libraries
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description devel
+KGraphViewer is a Graphviz dot graph file viewer for KDE
+This package contains files useful for software development with
+th KGraphViewer library.
+
+
+%prep
+%setup -q
+
+
+%build
+mkdir %{_target_platform}
+pushd %{_target_platform}
+%cmake_kde4 ..
+popd
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/*.desktop
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
+%find_lang %{name} --with-kde
+
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+        /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+        /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files -f %{name}.lang
+%{_kde4_bindir}/*
+%{_kde4_datadir}/applications/kde4/*.desktop
+%{_kde4_configdir}.kcfg/*.kcfg
+%{_kde4_appsdir}/*
+%{_kde4_iconsdir}/hicolor/*/*/*
+%{_kde4_libdir}/kde4/kgraphviewerpart.so
+%{_kde4_sharedir}/kde4/services/kgraphviewer_part.desktop
+%{_datadir}/appdata/*
+
+
+%files devel
+%{_kde4_includedir}/%{name}/
+%{_kde4_libdir}/libkgraphviewer.so
+
+
+%files libs
+%{_kde4_libdir}/libkgraphviewer.so.*
+%doc AUTHORS
+%license COPYING
+
+
+%changelog
+* Thu Feb 05 2015 Lubomir Rintel <lkundrak at v3.sk> - 2.2.0-2
+- Address concerns from the review (Rex Dieter, Mario Blättermann) (rh #1190056)
+
+* Thu Feb 05 2015 Lubomir Rintel <lkundrak at v3.sk> - 2.2.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..139fb6e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+043ace59a061a99fff2757a17be4e1d6  kgraphviewer-2.2.0.tar.xz


More information about the scm-commits mailing list