2009-07-16 04:52:54 +02:00
|
|
|
#
|
2012-01-27 15:22:43 +01:00
|
|
|
# spec file for package objectweb-asm
|
2009-07-16 04:52:54 +02:00
|
|
|
#
|
2024-05-15 13:20:45 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-07-16 04:52:54 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-11 10:31:45 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-07-16 04:52:54 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-05-15 13:20:45 +02:00
|
|
|
%define __requires_exclude java-headless
|
2009-07-16 04:52:54 +02:00
|
|
|
Name: objectweb-asm
|
2024-05-15 13:20:45 +02:00
|
|
|
Version: 9.7
|
2013-09-09 13:59:37 +02:00
|
|
|
Release: 0
|
2018-12-11 10:31:45 +01:00
|
|
|
Summary: Java bytecode manipulation framework
|
2011-12-06 18:33:09 +01:00
|
|
|
License: BSD-3-Clause
|
2009-07-16 04:52:54 +02:00
|
|
|
Group: Development/Libraries/Java
|
2018-12-11 10:31:45 +01:00
|
|
|
URL: http://asm.objectweb.org/
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2024-05-15 13:20:45 +02:00
|
|
|
Source1: %{name}-build.tar.xz
|
2021-10-20 22:02:57 +02:00
|
|
|
Source2: https://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom
|
|
|
|
Source3: https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom
|
|
|
|
Source4: https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom
|
|
|
|
Source5: https://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom
|
|
|
|
Source6: https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom
|
|
|
|
Source7: https://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom
|
2019-03-06 11:20:03 +01:00
|
|
|
# We still want to create an "all" uberjar, so this is a custom pom to generate it
|
|
|
|
# TODO: Fix other packages to no longer depend on "asm-all" so we can drop this
|
|
|
|
Source9: asm-all.pom
|
2018-12-11 10:31:45 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
2024-05-15 13:20:45 +02:00
|
|
|
BuildRequires: java-devel >= 9
|
|
|
|
BuildRequires: javapackages-local >= 6
|
2018-12-11 10:31:45 +01:00
|
|
|
BuildRequires: xz
|
2024-05-15 13:20:45 +02:00
|
|
|
Requires: java >= 1.8
|
|
|
|
# For the script
|
|
|
|
Requires: javapackages-tools
|
2019-03-06 11:20:03 +01:00
|
|
|
Obsoletes: %{name}-examples
|
2017-05-19 14:03:57 +02:00
|
|
|
BuildArch: noarch
|
2009-07-16 04:52:54 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
ASM is a Java bytecode manipulation framework.
|
|
|
|
|
|
|
|
It can be used to dynamically generate stub classes or other proxy
|
|
|
|
classes, directly in binary form, or to dynamically modify classes at
|
|
|
|
load time, i.e., just before they are loaded into the Java Virtual
|
|
|
|
Machine.
|
|
|
|
|
|
|
|
ASM offers similar functionalities as BCEL or SERP, but is much
|
|
|
|
smaller.
|
|
|
|
|
2018-12-11 10:31:45 +01:00
|
|
|
%package javadoc
|
|
|
|
Summary: Java bytecode manipulation framework
|
2018-12-11 16:41:23 +01:00
|
|
|
Group: Documentation/HTML
|
2018-12-11 10:31:45 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
ASM is a Java bytecode manipulation framework.
|
|
|
|
|
|
|
|
It can be used to dynamically generate stub classes or other proxy
|
|
|
|
classes, directly in binary form, or to dynamically modify classes at
|
|
|
|
load time, i.e., just before they are loaded into the Java Virtual
|
|
|
|
Machine.
|
|
|
|
|
|
|
|
ASM offers similar functionalities as BCEL or SERP, but is much
|
|
|
|
smaller.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Java bytecode manipulation framework
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
ASM is a Java bytecode manipulation framework.
|
|
|
|
|
|
|
|
It can be used to dynamically generate stub classes or other proxy
|
|
|
|
classes, directly in binary form, or to dynamically modify classes at
|
|
|
|
load time, i.e., just before they are loaded into the Java Virtual
|
|
|
|
Machine.
|
|
|
|
|
|
|
|
ASM offers similar functionalities as BCEL or SERP, but is much
|
|
|
|
smaller.
|
|
|
|
|
2009-07-16 04:52:54 +02:00
|
|
|
%prep
|
2019-03-06 11:20:03 +01:00
|
|
|
%setup -q -a1
|
|
|
|
cp %{SOURCE2} asm/pom.xml
|
|
|
|
cp %{SOURCE3} asm-analysis/pom.xml
|
|
|
|
cp %{SOURCE4} asm-commons/pom.xml
|
|
|
|
cp %{SOURCE5} asm-test/pom.xml
|
|
|
|
cp %{SOURCE6} asm-tree/pom.xml
|
|
|
|
cp %{SOURCE7} asm-util/pom.xml
|
|
|
|
# Insert asm-all pom
|
|
|
|
mkdir -p asm-all
|
|
|
|
sed 's/@VERSION@/%{version}/g' %{SOURCE9} > asm-all/pom.xml
|
|
|
|
|
2019-11-25 08:55:25 +01:00
|
|
|
for i in asm asm-analysis asm-commons asm-tree asm-util asm-all; do
|
2019-03-06 11:20:03 +01:00
|
|
|
%pom_remove_parent ${i}
|
|
|
|
done
|
2009-07-16 04:52:54 +02:00
|
|
|
|
|
|
|
%build
|
2024-05-15 13:20:45 +02:00
|
|
|
%{ant} -Dproject.version=%{version} \
|
2019-03-06 11:20:03 +01:00
|
|
|
package javadoc
|
2009-07-16 04:52:54 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2019-03-06 11:20:03 +01:00
|
|
|
install -dm 0755 %{buildroot}/%{_javadir}/%{name}
|
2019-11-25 08:55:25 +01:00
|
|
|
for i in asm asm-analysis asm-commons asm-tree asm-util asm-all; do
|
2019-03-06 11:20:03 +01:00
|
|
|
install -pm 0644 ${i}/target/${i}-%{version}.jar %{buildroot}/%{_javadir}/%{name}/${i}.jar
|
|
|
|
done
|
2013-09-11 09:32:59 +02:00
|
|
|
|
2019-03-06 11:20:03 +01:00
|
|
|
# poms
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
2019-11-25 08:55:25 +01:00
|
|
|
for i in asm asm-analysis asm-commons asm-tree asm-util; do
|
2024-05-15 13:20:45 +02:00
|
|
|
%{mvn_install_pom} ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
2019-03-06 11:20:03 +01:00
|
|
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar
|
2018-12-11 10:31:45 +01:00
|
|
|
done
|
2024-05-15 13:20:45 +02:00
|
|
|
%{mvn_install_pom} asm-all/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/asm-all.pom
|
2019-03-06 11:20:03 +01:00
|
|
|
%add_maven_depmap %{name}/asm-all.pom %{name}/asm-all.jar -a org.ow2.asm:asm-debug-all
|
2013-09-11 09:32:59 +02:00
|
|
|
|
2018-12-11 10:31:45 +01:00
|
|
|
# javadoc
|
2019-03-06 11:20:03 +01:00
|
|
|
install -dm 0755 %{buildroot}/%{_javadocdir}/%{name}
|
2019-11-25 08:55:25 +01:00
|
|
|
for i in asm asm-analysis asm-commons asm-tree asm-util; do
|
2019-03-06 11:20:03 +01:00
|
|
|
cp -pr ${i}/target/site/apidocs %{buildroot}/%{_javadocdir}/%{name}/${i}
|
|
|
|
done
|
|
|
|
%fdupes -s %{buildroot}/%{_javadocdir}
|
2013-09-11 09:32:59 +02:00
|
|
|
|
2019-03-06 11:20:03 +01:00
|
|
|
# script
|
2019-11-25 08:55:25 +01:00
|
|
|
%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-util %{name}-processor true
|
2019-03-06 11:20:03 +01:00
|
|
|
|
|
|
|
%files -f .mfiles
|
2018-12-11 10:31:45 +01:00
|
|
|
%license LICENSE.txt
|
2019-03-06 11:20:03 +01:00
|
|
|
%{_bindir}/%{name}-processor
|
2018-12-11 10:31:45 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
2009-07-16 04:52:54 +02:00
|
|
|
%changelog
|