diff --git a/1000-graphviz-anolis-support-loongarch64.patch b/1000-graphviz-anolis-support-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..00851d41f5d52c725fc93ea4c3f2a8b2727bf0a3 --- /dev/null +++ b/1000-graphviz-anolis-support-loongarch64.patch @@ -0,0 +1,12 @@ +diff -Nur graphviz-stable_release_2.40.1/configure.ac graphviz-stable_release_2.40.1.new/configure.ac +--- graphviz-stable_release_2.40.1/configure.ac 2021-09-15 18:30:42.388796030 +0800 ++++ graphviz-stable_release_2.40.1.new/configure.ac 2021-09-15 18:33:22.365966385 +0800 +@@ -112,7 +112,7 @@ + case "${host_os}" in + *linux* ) + case "${host_cpu}" in +- aarch64 | powerpc64 | powerpc64le | s390x | x86_64 | sparc64 ) ++ aarch64 | powerpc64 | powerpc64le | s390x | x86_64 | sparc64 | loongarch64) + LIBPOSTFIX="64" + INTGOSIZE=64 + ;; diff --git a/graphviz.spec b/graphviz.spec index cdd9f53ed1aa0de79a13c6222809e4b0f8cdb8f3..6647ab2fc50aca5f4281d182d2bbac3546189c71 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %if 0%{?rhel} == 8 %bcond_with python2 %bcond_with php @@ -61,7 +63,7 @@ Name: graphviz Summary: Graph Visualization Tools Version: 2.40.1 -Release: 43%{?dist} +Release: 43%{anolis_release}%{?dist} License: EPL-1.0 URL: http://www.graphviz.org/ # A bit hacking needed due to: https://gitlab.com/graphviz/graphviz/issues/1371 @@ -75,6 +77,9 @@ Patch3: graphviz-2.40.1-dotty-menu-fix.patch Patch4: graphviz-2.40.1-coverity-scan-fixes.patch Patch5: graphviz-2.40.1-CVE-2020-18032.patch Patch6: graphviz-2.40.1-makefile-docs-fix.patch + +Patch1000: 1000-graphviz-anolis-support-loongarch64.patch + BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby, guile-devel @@ -294,6 +299,8 @@ Various tcl packages (extensions) for the graphviz tools. %patch5 -p1 -b .CVE-2020-18032 %patch6 -p1 -b .makefile-docs-fix +%patch1000 -p1 + # Attempt to fix rpmlint warnings about executable sources find -type f -regex '.*\.\(c\|h\)$' -exec chmod a-x {} ';' @@ -612,6 +619,9 @@ php --no-php-ini \ %{_mandir}/man3/*.3tcl* %changelog +* Wed Sep 15 2021 Liwei Ge - 2.40.1-43.0.1 +- Support loongarch64 platform + * Tue Jun 8 2021 Jaroslav Škarvada - 2.40.1-43 - Fixed races during pdf documentation build which should build docs correctly Related: CVE-2020-18032