Accepting request 1108217 from Java:packages
cleanup and break potential cycle OBS-URL: https://build.opensuse.org/request/show/1108217 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-lang3?expand=0&rev=9
This commit is contained in:
commit
754e98c462
@ -1,23 +0,0 @@
|
||||
Index: commons-lang3-3.12.0-src/pom.xml
|
||||
===================================================================
|
||||
--- commons-lang3-3.12.0-src.orig/pom.xml
|
||||
+++ commons-lang3-3.12.0-src/pom.xml
|
||||
@@ -513,18 +513,6 @@
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
- <dependencyManagement>
|
||||
- <dependencies>
|
||||
- <dependency>
|
||||
- <groupId>org.junit</groupId>
|
||||
- <artifactId>junit-bom</artifactId>
|
||||
- <version>5.7.1</version>
|
||||
- <type>pom</type>
|
||||
- <scope>import</scope>
|
||||
- </dependency>
|
||||
- </dependencies>
|
||||
- </dependencyManagement>
|
||||
-
|
||||
<!-- Lang should depend on very little -->
|
||||
<dependencies>
|
||||
<!-- testing -->
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 30 20:57:36 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Break cycle with the new bcel
|
||||
- Removed patch:
|
||||
* apache-commons-lang3-junit-bom.patch
|
||||
+ not needed since we install the pom file using the new
|
||||
%%mvn_install_pom macro which sanitizes the pom file to the
|
||||
bare runtime dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 29 15:18:48 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,11 +28,13 @@ URL: https://commons.apache.org/proper/commons-lang/
|
||||
Source0: https://dlcdn.apache.org/commons/lang/source/%{short_name}-%{version}-src.tar.gz
|
||||
Source1: build.xml
|
||||
Source2: default.properties
|
||||
Patch0: apache-commons-lang3-junit-bom.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local >= 6
|
||||
#!BuildIgnore: bcel
|
||||
#!BuildIgnore: xalan-j2
|
||||
#!BuildIgnore: xerces-j2
|
||||
Provides: %{short_name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
@ -58,20 +60,11 @@ Javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{short_name}-%{version}-src
|
||||
%patch0 -p1
|
||||
|
||||
cp %{SOURCE1} .
|
||||
cp %{SOURCE2} .
|
||||
sed -i 's/\r//' *.txt
|
||||
|
||||
# Not needed since we don't build with maven
|
||||
%pom_remove_parent
|
||||
%pom_xpath_inject "pom:project" "<groupId>org.apache.commons</groupId>"
|
||||
%pom_xpath_remove pom:project/pom:reporting
|
||||
%pom_xpath_remove pom:project/pom:build
|
||||
%pom_xpath_remove pom:project/pom:profiles
|
||||
%pom_remove_dep :::test
|
||||
|
||||
%build
|
||||
export OPT_JAR_LIST=`cat %{_sysconfdir}/ant.d/junit`
|
||||
export CLASSPATH=
|
||||
@ -86,9 +79,10 @@ ant \
|
||||
install -dm 755 %{buildroot}%{_javadir}
|
||||
install -m 0644 target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
||||
|
||||
# pom
|
||||
install -dm 755 %{buildroot}%{_mavenpomdir}
|
||||
install -m 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar
|
||||
|
||||
# javadoc
|
||||
|
Loading…
Reference in New Issue
Block a user