diff --git a/_service b/_service
deleted file mode 100644
index 3430c8e..0000000
--- a/_service
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- https://gitlab.com/graphviz/graphviz
- git
- master
- disable
- graphviz
- 2.42.3
-
-
- *.tar
- gz
-
-
-
\ No newline at end of file
diff --git a/graphviz-2.46-fix-shebang.patch b/graphviz-2.46-fix-shebang.patch
deleted file mode 100644
index 9edd326..0000000
--- a/graphviz-2.46-fix-shebang.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- graphviz-2.46.1/cmd/gvmap/gvmap.sh.orig 2021-02-18 18:41:12.414357238 +0100
-+++ graphviz-2.46.1/cmd/gvmap/gvmap.sh 2021-02-18 18:41:23.626463135 +0100
-@@ -1,4 +1,4 @@
--#!/usr/bin/env ksh
-+#!/usr/bin/ksh
-
- # Script for gvmap pipeline
- # Use -A to add flags for gvmap; e.g., -Ae results in gvmap -e
diff --git a/graphviz-2.46.1.tar.gz b/graphviz-2.46.1.tar.gz
deleted file mode 100644
index 05e25c7..0000000
--- a/graphviz-2.46.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:931ed197bc833aec8501d66194b01620dd395130c380e350a6ec1b31e4866eac
-size 34065777
diff --git a/graphviz-2.47.1.tar.bz2 b/graphviz-2.47.1.tar.bz2
new file mode 100644
index 0000000..1613dc7
--- /dev/null
+++ b/graphviz-2.47.1.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e151a039113a0f1ff871185ef760ec67fbc30144ea25a5024c3ee42d0aa9b01e
+size 27711428
diff --git a/graphviz.changes b/graphviz.changes
index 4cd3a67..596b1b5 100644
--- a/graphviz.changes
+++ b/graphviz.changes
@@ -1,3 +1,27 @@
+-------------------------------------------------------------------
+Fri May 14 13:05:09 UTC 2021 - Ferdinand Thiessen
+
+- Update to version 2.47.1
+ * More detailed error messages when opening input file fails
+ * The edges in JSON output are ordered now
+ * Fixed xdot man page does not document some functions
+ * Fixed PIC renderer
+ * Fixed dot conversion to dia format
+ * Fixed memory leak of reference-counted HTML strings
+ * Fix for TBbalance attribute code
+ * Fixed HTML parser error with single closing square bracket in
+ table row
+ * Fixed reference counted strings put the HTML bit in the middle
+ of the reference count
+ * Fixed & escape disappearing
+ * Fixed gvpr -? to actually print usage and exit non-zero
+ * Fixed memory leak in libmingle
+ * Fixed memory leak in ANN bridge
+ * Fixed buffer overflow in unflatten
+ * Fixed agxbputc macro does not bracket its arguments
+- Drop upstream fixed graphviz-2.46-fix-shebang.patch
+ * Using POSIX shell, no need for ksh
+
-------------------------------------------------------------------
Wed Apr 14 08:19:54 UTC 2021 - Andreas Schwab
diff --git a/graphviz.spec b/graphviz.spec
index 1caaf7c..8da2fdc 100644
--- a/graphviz.spec
+++ b/graphviz.spec
@@ -54,26 +54,24 @@
%endif
%bcond_without python2
Name: graphviz%{psuffix}
-Version: 2.46.1
+Version: 2.47.1
Release: 0
Summary: Graph Visualization Tools
License: EPL-1.0
Group: Productivity/Graphics/Visualization/Graph
URL: https://www.graphviz.org/
-Source0: https://gitlab.com/graphviz/graphviz/-/archive/2.46.1/graphviz-%{version}.tar.gz
+Source0: https://gitlab.com/graphviz/graphviz/-/archive/2.46.1/graphviz-%{version}.tar.bz2
Source1: graphviz-rpmlintrc
#PATCH-FIX-UPSTREAM add flags to also link against libGLU and libGL
-Patch1: graphviz-smyrna-link_against_glu.patch
-Patch2: graphviz-fix-pkgIndex.patch
+Patch0: graphviz-smyrna-link_against_glu.patch
+Patch1: graphviz-fix-pkgIndex.patch
#PATCH-FIX-UPSTREAM Off-by-one bug
-Patch3: graphviz-array_overflow.patch
-
-Patch6: graphviz-2.20.2-interpreter_names.patch
+Patch2: graphviz-array_overflow.patch
+Patch3: graphviz-2.20.2-interpreter_names.patch
#PATCH-FIX-UPSTREAM Don't warn about harmless issues with swig generated code
-Patch7: graphviz-useless_warnings.patch
-Patch8: graphviz-no_strict_aliasing.patch
-Patch9: graphviz-no_php_extra_libs.patch
-Patch10: graphviz-2.46-fix-shebang.patch
+Patch4: graphviz-useless_warnings.patch
+Patch5: graphviz-no_strict_aliasing.patch
+Patch6: graphviz-no_php_extra_libs.patch
BuildRequires: autoconf
BuildRequires: automake
@@ -350,16 +348,13 @@ programs that use the graphviz libraries including man3 pages.
%prep
%setup -q -n %{mname}-%{version}
-
+%patch0
%patch1
%patch2
%patch3
-
+%patch4
+%patch5 -p1
%patch6
-%patch7
-%patch8 -p1
-%patch9
-%patch10 -p1
# pkg-config returns 0 (TRUE) when guile-2.2 is present
if pkg-config --atleast-version=2.2 guile-2.2; then