Only build go subpackage on %golang_arches

(i.e. the architectures where golang is available). Currently,
%{golang_arches} does not exclude any architecture that we currently
build for, but this may change in the future.
This commit is contained in:
Maxwell G 2022-07-05 10:19:09 -05:00
parent 4b5281594a
commit e806029dbc
1 changed files with 9 additions and 1 deletions

View File

@ -56,7 +56,11 @@
%global GUILE 0
%endif
%ifarch %{golang_arches}
%global GOLANG 1
%else
%global GOLANG 0
%endif
# Plugins version
%global pluginsver 6
@ -77,7 +81,7 @@
Name: graphviz
Summary: Graph Visualization Tools
Version: 5.0.0
Release: 2%{?dist}
Release: 3%{?dist}
License: EPL-1.0
URL: http://www.graphviz.org/
Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
@ -712,6 +716,10 @@ php --no-php-ini \
%endif
%changelog
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 5.0.0-3
- Only build go subpackage on %%golang_arches (i.e. the architectures where
golang is available).
* Fri Jul 15 2022 Jiri Vanek <jvanek@redhat.com> - 5.0.0-2
- adapted to removal of java on i686
- finsihing merged https://src.fedoraproject.org/rpms/graphviz/pull-request/9#request_diff