From 4c78304e819c065df9cd95b21a1ec04b3c04a7a6ee87ea7f9974ba82b619df8e Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Wed, 12 Nov 2014 21:26:18 +0000 Subject: [PATCH] Use the correct patch OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kgraphviewer?expand=0&rev=6 --- kgraphviewer.spec | 10 +++++----- test_old_graphviz.diff => old_graphviz.diff | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename test_old_graphviz.diff => old_graphviz.diff (100%) diff --git a/kgraphviewer.spec b/kgraphviewer.spec index ca58b62..2dfeac5 100644 --- a/kgraphviewer.spec +++ b/kgraphviewer.spec @@ -25,6 +25,7 @@ License: GPL-2.0 and GPL-2.0+ and LGPL-2.1+ and GPL-3.0 Group: Development/Tools/Other Url: https://projects.kde.org/kgraphviewer Source0: ftp://ftp.kde.org/pub/kde/unstable/kgraphviewer/%{version}/src/%{name}-%{version}.tar.xz +Source1: old_graphviz.diff BuildRequires: boost-devel BuildRequires: graphviz-devel BuildRequires: libkde4-devel @@ -58,13 +59,12 @@ KGraphViewer is a Graphviz dot graph file viewer for KDE %lang_package %prep %setup -q +%if 0%{?suse_version} < 1320 +# The patch inside the tarball doesn't apply +patch0 -p1 +%endif %build - %if 0%{?suse_version} < 1320 - # The patch is in the tarball - patch -p1 < old_graphviz.diff - %endif - %cmake_kde4 -d build %make_jobs diff --git a/test_old_graphviz.diff b/old_graphviz.diff similarity index 100% rename from test_old_graphviz.diff rename to old_graphviz.diff