From c554e1b712f6cc88786d63bd67ecf2948daf5ef8c91876cdec2d3e86d70a24e3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 7 Oct 2024 08:45:49 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=86 --- apache-ivy.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apache-ivy.spec b/apache-ivy.spec index e53d2e2..4024b5c 100644 --- a/apache-ivy.spec +++ b/apache-ivy.spec @@ -20,7 +20,7 @@ %bcond_without oro %bcond_without sftp %bcond_without vfs -%bcond_with pack200 +%bcond_without pack200 Name: apache-ivy Version: 2.5.2 Release: 0 @@ -41,13 +41,13 @@ BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local >= 6 BuildRequires: jsch BuildRequires: oro +BuildRequires: strip-nondeterminism Provides: ivy = %{version}-%{release} Obsoletes: ivy < %{version}-%{release} BuildArch: noarch %if %{with pack200} BuildRequires: pack200 %else -BuildRequires: strip-nondeterminism BuildConflicts: java >= 14 BuildConflicts: java-devel >= 14 BuildConflicts: java-headless >= 14 @@ -188,9 +188,9 @@ echo "ivy" > %{buildroot}%{_sysconfdir}/ant.d/%{name} # Man page install -d %{buildroot}%{_mandir}/man1 install %{SOURCE1} %{buildroot}%{_mandir}/man1/ivy.1 -%if %{without pack200} -strip-nondeterminism %{buildroot}%{_javadocdir}/%{name}/*.zip -%endif +if [ -f %{buildroot}%{_javadocdir}/%{name}/*.zip ]; then + strip-nondeterminism %{buildroot}%{_javadocdir}/%{name}/*.zip +fi %files -f .mfiles %license LICENSE NOTICE