Created attachment 876531 [details] graphviz-2.34.0-ppc64le-support.patch add ppc64le support Version-Release number of selected component (if applicable): graphviz-2.34.0 Please consider following patch: --- graphviz.spec.ori +++ graphviz.spec @@ -1,5 +1,5 @@ # Necessary conditionals -%ifarch ppc64 s390 s390x sparc64 %{arm} alpha aarch64 +%ifarch ppc64 ppc64le s390 s390x sparc64 %{arm} alpha aarch64 %global SHARP 0 %else %global SHARP 1 @@ -67,6 +67,8 @@ Patch3: graphviz-2.34.0-lefty-getaddri Patch4: graphviz-2.34.0-CVE-2014-0978-CVE-2014-1235.patch # Fix chknum overflow (CVE-2014-1236) Patch5: graphviz-2.34.0-CVE-2014-1236.patch +# ppc64le support +Patch6: graphviz-2.34.0-ppc64le-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig @@ -274,6 +276,7 @@ Various tcl packages (extensions) for th %patch3 -p1 -b .lefty-getaddrinfo %patch4 -p1 -b .CVE-2014-0978-CVE-2014-1235 %patch5 -p1 -b .CVE-2014-1236 +%patch6 -p1 -b .ppc64le-support # Attempt to fix rpmlint warnings about executable sources find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';'
Thanks for the patch. The only modification I am using is the %power64 macro instead of the enumeration of arches.