Accepting request 1148732 from Java:packages

rpm 4.20 compat

OBS-URL: https://build.opensuse.org/request/show/1148732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jzlib?expand=0&rev=25
This commit is contained in:
Ana Guerrero 2024-02-21 17:01:32 +00:00 committed by Git OBS Bridge
commit ec8bf8b82c
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 21 14:06:48 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Sun Mar 20 12:17:34 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -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