This commit is contained in:
parent
3f27a4e90f
commit
af131dca04
@ -1,5 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 25 19:27:30 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Initial packaging of last xbean version that works with asm5
|
||||
- Initial packaging of xbean version 4.5
|
||||
- Spec file inspired by Fedora rpm package
|
||||
|
@ -28,7 +28,7 @@ Source0: http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{versi
|
||||
Patch0: 0001-Unshade-ASM.patch
|
||||
Patch2: 0003-Port-to-QDox-2.0.patch
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: asm5
|
||||
BuildRequires: objectweb-asm >= 5
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: javapackages-local
|
||||
@ -36,11 +36,10 @@ BuildRequires: javapackages-tools
|
||||
BuildRequires: log4j
|
||||
BuildRequires: slf4j
|
||||
BuildRequires: unzip
|
||||
BuildRequires: mvn(org.osgi:org.osgi.core)
|
||||
# The code uses sun.misc.URLClassloader
|
||||
BuildConflicts: java-devel >= 9
|
||||
Requires: apache-commons-logging
|
||||
Requires: asm5
|
||||
Requires: objectweb-asm >= 5
|
||||
Requires: log4j
|
||||
Requires: slf4j
|
||||
BuildArch: noarch
|
||||
@ -110,14 +109,14 @@ for i in xbean-asm-util xbean-classpath xbean-finder xbean-naming xbean-reflect;
|
||||
pushd $i
|
||||
mkdir -p build/classes
|
||||
javac -d build/classes -encoding utf-8 -source 6 -target 6 \
|
||||
-cp $(build-classpath log4j commons-logging-api slf4j/api asm5/asm asm5/asm-commons):../xbean-asm-util/xbean-asm-util.jar \
|
||||
-cp $(build-classpath log4j commons-logging-api slf4j/api objectweb-asm/asm objectweb-asm/asm-commons):../xbean-asm-util/xbean-asm-util.jar \
|
||||
$(find src/main/java -name *.java)
|
||||
jar cf $i.jar -C build/classes .
|
||||
popd
|
||||
done
|
||||
mkdir -p build/apidoc
|
||||
javadoc -d build/apidoc -source 6 -encoding utf-8 \
|
||||
-classpath $(build-classpath log4j commons-logging-api slf4j/api asm5/asm asm5/asm-commons) \
|
||||
-classpath $(build-classpath log4j commons-logging-api slf4j/api objectweb-asm/asm objectweb-asm/asm-commons) \
|
||||
$(for i in xbean-asm-util xbean-classpath xbean-finder xbean-naming xbean-reflect; do find $i/src/main/java -name *.java; done | xargs)
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user