Accepting request 1148817 from Java:packages
rpm 4.20 compat OBS-URL: https://build.opensuse.org/request/show/1148817 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/testng?expand=0&rev=5
This commit is contained in:
commit
9a701e880f
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 21 17:12:29 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Use %patch -P N instead of deprecated %patchN.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 12:13:04 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Tue Nov 22 12:13:04 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
22
testng.spec
22
testng.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package testng
|
# spec file for package testng
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -34,12 +34,10 @@ BuildRequires: beust-jcommander
|
|||||||
BuildRequires: bsh2
|
BuildRequires: bsh2
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: google-guice
|
BuildRequires: google-guice
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: jsr-305
|
BuildRequires: jsr-305
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: snakeyaml
|
BuildRequires: snakeyaml
|
||||||
Requires: mvn(com.beust:jcommander)
|
|
||||||
Requires: mvn(org.yaml:snakeyaml)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -58,9 +56,9 @@ This package contains the API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch0 -p1
|
%patch -P 0 -p1
|
||||||
%patch1 -p1
|
%patch -P 1 -p1
|
||||||
%patch2 -p1
|
%patch -P 2 -p1
|
||||||
|
|
||||||
sed 's/@VERSION@/%{version}/' %{SOURCE1} > pom.xml
|
sed 's/@VERSION@/%{version}/' %{SOURCE1} > pom.xml
|
||||||
cp %{SOURCE2} build.xml
|
cp %{SOURCE2} build.xml
|
||||||
@ -69,18 +67,10 @@ cp %{SOURCE2} build.xml
|
|||||||
find ! -path "*/test/*" -name *.jar -print -delete
|
find ! -path "*/test/*" -name *.jar -print -delete
|
||||||
find -name *.class -delete
|
find -name *.class -delete
|
||||||
|
|
||||||
# these are unnecessary
|
|
||||||
%pom_remove_plugin :maven-gpg-plugin .
|
|
||||||
%pom_remove_plugin :maven-source-plugin .
|
|
||||||
%pom_remove_plugin :maven-javadoc-plugin .
|
|
||||||
|
|
||||||
sed -i -e 's/DEV-SNAPSHOT/%{version}/' src/main/java/org/testng/internal/Version.java
|
sed -i -e 's/DEV-SNAPSHOT/%{version}/' src/main/java/org/testng/internal/Version.java
|
||||||
|
|
||||||
cp -p ./src/main/java/*.dtd.html ./src/main/resources/.
|
cp -p ./src/main/java/*.dtd.html ./src/main/resources/.
|
||||||
|
|
||||||
# jdk15 classifier is used by some other packages
|
|
||||||
%{mvn_alias} : :::jdk15:
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib ant/ant beust-jcommander bsh2/bsh google-guice jsr305 junit snakeyaml
|
build-jar-repository -s lib ant/ant beust-jcommander bsh2/bsh google-guice jsr305 junit snakeyaml
|
||||||
@ -93,7 +83,7 @@ install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.j
|
|||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
%add_maven_depmap %{name}.pom %{name}.jar -a org.testng:testng::jdk15:
|
%add_maven_depmap %{name}.pom %{name}.jar -a org.testng:testng::jdk15:
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user