diff --git a/jzlib.changes b/jzlib.changes index 9d2e134..08560fe 100644 --- a/jzlib.changes +++ b/jzlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 21 14:06:48 UTC 2024 - Fridrich Strba + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Sun Mar 20 12:17:34 UTC 2022 - Fridrich Strba diff --git a/jzlib.spec b/jzlib.spec index 71a9480..330c34a 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -1,7 +1,7 @@ # # spec file for package jzlib # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,7 +30,7 @@ Patch0: jzlib-javadoc-fixes.patch BuildRequires: ant >= 1.6 BuildRequires: fdupes BuildRequires: java-devel -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildArch: noarch %description @@ -57,7 +57,7 @@ Group: Documentation/HTML %prep %setup -q -%patch0 +%patch -P 0 cp %{SOURCE1} build.xml # bnc#500524 @@ -73,7 +73,8 @@ install -Dpm 644 target/%{name}-%{version}.jar \ %{buildroot}%{_javadir}/%{name}.jar # pom -install -Dpm 644 pom.xml \ +install -dm 755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} pom.xml \ %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar