From 0547305e1f58c2497cd196d5babeebe3338c0792 Mon Sep 17 00:00:00 2001
From: fstrba <>
Date: Feb 23 2024 15:47:29 +0000
Subject: Update hamcrest to version 2.2 / rev 30 via SR 1148909
https://build.opensuse.org/request/show/1148909
by user fstrba + anag+factory
cleanup
---
diff --git a/.files b/.files
index 9a1e481..1e1ad4d 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index e1b6b27..bc10215 100644
--- a/.rev
+++ b/.rev
@@ -234,4 +234,12 @@
2.2
982390
+
+ ca3b46bb9aab4a661255cc6ed4c81630
+ 2.2
+
+ anag+factory
+ cleanup
+ 1148909
+
diff --git a/.servicemark b/.servicemark
deleted file mode 100644
index 8f10946..0000000
--- a/.servicemark
+++ /dev/null
@@ -1 +0,0 @@
-6dc583b8158e2106754d323df4da90ea
diff --git a/hamcrest.changes b/hamcrest.changes
index 204ef28..dc0420d 100644
--- a/hamcrest.changes
+++ b/hamcrest.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed Feb 21 09:10:46 UTC 2024 - Fridrich Strba
+
+- Use %patch -P N instead of deprecated %patchN.
+
+-------------------------------------------------------------------
Thu Jun 9 16:00:32 UTC 2022 - Fridrich Strba
- Upgrade to upstream version 2.2
diff --git a/hamcrest.spec b/hamcrest.spec
index fdee3b9..6fbcf05 100644
--- a/hamcrest.spec
+++ b/hamcrest.spec
@@ -1,7 +1,7 @@
#
# spec file for package hamcrest
#
-# 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
@@ -33,14 +33,14 @@ Patch0: 0001-Fix-build-with-OpenJDK-11.patch
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
-BuildRequires: javapackages-local
-%if %{with tests}
-BuildRequires: ant-junit
-%endif
+BuildRequires: javapackages-local >= 6
Provides: %{name}-core = %{version}
Obsoletes: %{name}-core < %{version}
Obsoletes: %{name}-demo < %{version}
BuildArch: noarch
+%if %{with tests}
+BuildRequires: ant-junit
+%endif
%description
Provides a library of matcher objects (also known as constraints or
@@ -56,14 +56,14 @@ Group: Documentation/HTML
Javadoc for %{name}.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
cp %{SOURCE1} build.xml
cp %{SOURCE3} %{SOURCE4} .
-%patch0 -p2
+%patch -P 0 -p2
%build
-%ant \
+%{ant} \
%if %{without tests}
-Dtest.skip=true \
%endif
@@ -79,7 +79,7 @@ ln -sf %{name}.jar %{buildroot}%{_javadir}/%{name}/library.jar
# poms
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
-install -pm 0644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
+%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a "org.hamcrest:hamcrest-all,org.hamcrest:hamcrest-core,org.hamcrest:hamcrest-library"
# javadoc