Accepting request 1114398 from Java:packages:test
javapackages >= 6 OBS-URL: https://build.opensuse.org/request/show/1114398 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xbean?expand=0&rev=26
This commit is contained in:
parent
2045002d18
commit
811b0ad963
18
xbean.spec
18
xbean.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package xbean
|
||||
#
|
||||
# Copyright (c) 2022 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
|
||||
@ -30,12 +30,10 @@ Patch3: 0003-Remove-dependency-on-log4j-and-commons-logging.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.7
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: objectweb-asm >= 9
|
||||
BuildRequires: slf4j
|
||||
BuildRequires: unzip
|
||||
Requires: objectweb-asm >= 9
|
||||
Requires: slf4j
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -60,14 +58,6 @@ This package provides API documentation for xbean.
|
||||
|
||||
cp xbean-asm-util/src/main/java/org/apache/xbean/asm9/original/commons/AsmConstants.java xbean-reflect/src/main/java/org/apache/xbean/recipe/
|
||||
|
||||
# Parent POM is not packaged
|
||||
%pom_remove_parent
|
||||
|
||||
for i in xbean-asm-util xbean-finder xbean-reflect; do
|
||||
%pom_remove_parent ${i}
|
||||
%pom_xpath_inject pom:project "<groupId>org.apache.xbean</groupId><version>%{version}</version>" ${i}
|
||||
done
|
||||
|
||||
%pom_disable_module xbean-classloader
|
||||
%pom_disable_module xbean-classpath
|
||||
%pom_disable_module xbean-bundleutils
|
||||
@ -93,8 +83,6 @@ find -name Log4jConverter.java -delete
|
||||
%pom_remove_dep org.osgi:org.osgi.core xbean-finder
|
||||
rm -r xbean-finder/src/main/java/org/apache/xbean/finder{,/archive}/Bundle*
|
||||
|
||||
%pom_change_dep -r -f ::::: :::::
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib objectweb-asm slf4j
|
||||
@ -110,7 +98,7 @@ done
|
||||
# poms
|
||||
install -dm 755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
for i in xbean-asm-util xbean-finder xbean-reflect; do
|
||||
install -m 0644 ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||
%{mvn_install_pom} ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user