From 4f4e6e8f34df99782152a6fe63bb5c5b54b633fc Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Aug 23 2022 13:02:42 +0000 Subject: Restrict BR: antlr and result binary ncap2 to %java_arches --- diff --git a/nco.spec b/nco.spec index b35f854..39b1671 100644 --- a/nco.spec +++ b/nco.spec @@ -2,7 +2,7 @@ Name: nco Version: 5.1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Suite of programs for manipulating NetCDF/HDF4 files License: GPLv3 URL: http://nco.sourceforge.net/ @@ -14,11 +14,13 @@ BuildRequires: make BuildRequires: gcc-c++ BuildRequires: bison, flex, gawk BuildRequires: netcdf-devel +%ifarch %java_arches %if 0%{?fedora} || 0%{?rhel} >= 7 BuildRequires: antlr-C++ %else BuildRequires: antlr %endif +%endif BuildRequires: chrpath BuildRequires: gsl-devel BuildRequires: texinfo @@ -63,7 +65,9 @@ This package contains the NCO static libs. %build %configure \ +%ifarch %java_arches HAVE_ANTLR=yes \ +%endif --disable-dependency-tracking --includedir=%{_includedir}/nco %make_build %if 0%{?builddocs} @@ -88,7 +92,9 @@ chrpath -d -k $RPM_BUILD_ROOT%{_bindir}/* || : %doc README* doc/rtfm.txt doc/nco.html doc/nco.pdf doc/nco.css %doc doc/index.shtml doc/TODO doc/ChangeLog doc/nco.png doc/nco_news.shtml %doc doc/nsf.png +%ifarch %java_arches %{_bindir}/ncap2 +%endif %{_bindir}/ncatted %{_bindir}/ncbo %{_bindir}/ncclimo @@ -130,6 +136,9 @@ chrpath -d -k $RPM_BUILD_ROOT%{_bindir}/* || : %changelog +* Tue Aug 23 2022 Mamoru TASAKA - 5.1.0-4 +- Restrict BR: antlr and result binary ncap2 to %%java_arches + * Tue Aug 23 2022 Mamoru TASAKA - 5.1.0-3 - Rebuild for gsl-2.7.1