upgrade the version to 7.0

This commit is contained in:
wang_yue111 2020-08-17 17:18:51 +08:00
parent f2d10bbe56
commit 47250530e8
15 changed files with 130 additions and 289 deletions

View File

@ -1,36 +0,0 @@
# objectweb-asm
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# objectweb-asm
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId> <artifactId>asm</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm</name> <name>asm</name>
<description>ASM, a very small and fast Java bytecode manipulation framework</description> <description>ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,19 +77,19 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1,12 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.ow2</groupId> <groupId>org.ow2</groupId>
<artifactId>ow2</artifactId> <artifactId>ow2</artifactId>
@ -41,11 +36,6 @@
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>@VERSION@</version> <version>@VERSION@</version>
</dependency> </dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-xml</artifactId>
<version>@VERSION@</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId> <artifactId>asm-analysis</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm-analysis</name> <name>asm-analysis</name>
<description>Static code analysis API of ASM, a very small and fast Java bytecode manipulation framework</description> <description>Static code analysis API of ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,25 +77,25 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId> <artifactId>asm-commons</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm-commons</name> <name>asm-commons</name>
<description>Usefull class adapters based on ASM, a very small and fast Java bytecode manipulation framework</description> <description>Usefull class adapters based on ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,43 +77,43 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId> <artifactId>asm</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId> <artifactId>asm-analysis</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId> <artifactId>asm-util</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm-test</name> <name>asm-test</name>
<description>Utilities for testing ASM, a very small and fast Java bytecode manipulation framework</description> <description>Utilities for testing ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,19 +77,19 @@
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm-tree</name> <name>asm-tree</name>
<description>Tree API of ASM, a very small and fast Java bytecode manipulation framework</description> <description>Tree API of ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,25 +77,25 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId> <artifactId>asm</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId> <artifactId>asm-util</artifactId>
<version>6.2.1</version> <version>7.0</version>
<name>asm-util</name> <name>asm-util</name>
<description>Utilities for ASM, a very small and fast Java bytecode manipulation framework</description> <description>Utilities for ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url> <url>http://asm.ow2.org/</url>
@ -77,19 +77,19 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId> <artifactId>asm</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId> <artifactId>asm-analysis</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -101,19 +101,19 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId> <artifactId>asm-test</artifactId>
<version>6.2.1</version> <version>7.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId> <artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version> <version>5.3.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1,108 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ow2</groupId>
<artifactId>ow2</artifactId>
<version>1.5</version>
</parent>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-xml</artifactId>
<version>6.2.1</version>
<name>asm-xml</name>
<description>XML API of ASM, a very small and fast Java bytecode manipulation framework</description>
<url>http://asm.ow2.org/</url>
<inceptionYear>2000</inceptionYear>
<organization>
<name>OW2</name>
<url>http://www.ow2.org/</url>
</organization>
<licenses>
<license>
<name>BSD</name>
<url>http://asm.ow2.org/license.html</url>
</license>
</licenses>
<developers>
<developer>
<id>ebruneton</id>
<name>Eric Bruneton</name>
<email>ebruneton@free.fr</email>
<roles>
<role>Creator</role>
<role>Java Developer</role>
</roles>
</developer>
<developer>
<id>eu</id>
<name>Eugene Kuleshov</name>
<email>eu@javatx.org</email>
<roles>
<role>Java Developer</role>
</roles>
</developer>
<developer>
<id>forax</id>
<name>Remi Forax</name>
<email>forax@univ-mlv.fr</email>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>ASM Users List</name>
<subscribe>https://mail.ow2.org/wws/subscribe/asm</subscribe>
<post>asm@objectweb.org</post>
<archive>https://mail.ow2.org/wws/arc/asm/</archive>
</mailingList>
<mailingList>
<name>ASM Team List</name>
<subscribe>https://mail.ow2.org/wws/subscribe/asm-team</subscribe>
<post>asm-team@objectweb.org</post>
<archive>https://mail.ow2.org/wws/arc/asm-team/</archive>
</mailingList>
</mailingLists>
<scm>
<connection>scm:git:https://gitlab.ow2.org/asm/asm/</connection>
<developerConnection>scm:git:https://gitlab.ow2.org/asm/asm/</developerConnection>
<url>https://gitlab.ow2.org/asm/asm/</url>
</scm>
<issueManagement>
<url>https://gitlab.ow2.org/asm/asm/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>6.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-test</artifactId>
<version>6.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

28
generate-tarball.sh Normal file
View File

@ -0,0 +1,28 @@
#!/bin/bash
set -e
name=objectweb-asm
version="$(sed -n 's/Version:\s*//p' *.spec)"
gittag="ASM_${version//./_}"
# RETRIEVE
wget "https://gitlab.ow2.org/asm/asm/repository/${gittag}/archive.tar.gz#/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz"
# Rename dir not to contain commit
mv asm-${gittag}-* ${name}-${version}
# CLEAN TARBALL
# Remove all jar files
find -name '*.jar' -delete
# Remove all class files except those in asm-test, which are shipped alongside appropriately licensed source
find */asm{,-analysis,-commons} -name '*.class' -delete
rm -r */gradle
tar cf "../${name}-${version}.tar.gz" *
cd ..
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"

Binary file not shown.

BIN
objectweb-asm-7.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,56 +1,62 @@
Name: objectweb-asm %bcond_without junit5
Version: 6.2.1 %bcond_without osgi
Release: 3 Name: objectweb-asm
Summary: Java bytecode manipulation and analysis framework Version: 7.0
License: BSD Release: 1
URL: http://asm.ow2.org/ Summary: Java bytecode manipulation and analysis framework
Source0: https://gitlab.ow2.org/asm/asm/repository/ASM_6_2_1/archive.tar.gz#/%{name}-%{version}.tar.gz License: BSD
Source1: asm-parent.pom URL: http://asm.ow2.org/
Source2: https://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom BuildArch: noarch
Source3: https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom Source0: objectweb-asm-%{version}.tar.gz
Source4: https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom Source1: parent.pom
Source5: https://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom Source2: http://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom
Source6: https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom Source3: http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom
Source7: https://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom Source4: http://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom
Source8: https://repo1.maven.org/maven2/org/ow2/asm/asm-xml/%{version}/asm-xml-%{version}.pom Source5: http://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom
Source9: asm-all.pom Source6: http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom
Source7: http://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.maven.plugins:maven-shade-plugin) Source8: asm-all.pom
BuildRequires: mvn(org.ow2:ow2:pom:) mvn(org.codehaus.janino:janino) mvn(org.junit.jupiter:junit-jupiter-api) Source9: generate-tarball.sh
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine) mvn(org.junit.jupiter:junit-jupiter-params) BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform) objectweb-asm >= 6 BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) mvn(org.ow2:ow2:pom:)
Requires: javapackages-tools %if %{with junit5}
BuildArch: noarch BuildRequires: mvn(org.codehaus.janino:janino) mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
%endif
%if %{with osgi}
BuildRequires: objectweb-asm >= 6
%endif
Requires: javapackages-tools
%description %description
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes ASM is an all purpose Java bytecode manipulation and analysis
or to dynamically generate classes, directly in binary form. ASM provides some common bytecode transformations and framework. It can be used to modify existing classes or dynamically
analysis algorithms from which custom complex transformations and code analysis tools can be built. ASM offers similar generate classes, directly in binary form. Provided common
functionality as other Java bytecode frameworks, but is focused on performance. Because it was designed and implemented transformations and analysis algorithms allow to easily assemble
to be as small and as fast as possible, it is well suited for use in dynamic systems (but can of course be used in a custom complex transformations and code analysis tools.
static way too, e.g. in compilers).
%package help %package javadoc
Summary: API documentation for objectweb-asm Summary: API documentation for %{name}
Provides: %{name}-javadoc = %{version}-%{release} %description javadoc
Obsoletes: %{name}-javadoc < %{version}-%{release} This package provides %{summary}.
%description help
This package provides API help documentation for objectweb-asm.
%prep %prep
%autosetup -n asm-ASM_6_2_1-f86d1ce7d413a5d4f9a5b51c49eb592555c82e97 -p1 %setup -q
install -p -m 644 %{SOURCE1} pom.xml cp -p %{SOURCE1} pom.xml
%if %{without junit5}
find -name '*.jar' -delete %pom_disable_module asm-test
find asm{,-analysis,-commons} -name '*.class' -delete %endif
rm -r gradle for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util; do
cp -p $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml
for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util asm-xml; do # Fix junit5 configuration
install -p -m 644 $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml %if %{with junit5}
%pom_add_dep org.junit.jupiter:junit-jupiter-engine:5.1.0:test $pom %pom_add_dep org.junit.jupiter:junit-jupiter-engine:5.1.0:test $pom
%pom_add_plugin org.apache.maven.plugins:maven-surefire-plugin:2.22.0 $pom %pom_add_plugin org.apache.maven.plugins:maven-surefire-plugin:2.22.0 $pom
%endif
%if %{with osgi}
if [ "$pom" != "asm-test" ] ; then if [ "$pom" != "asm-test" ] ; then
# Make into OSGi bundles
bsn="org.objectweb.${pom//-/.}" bsn="org.objectweb.${pom//-/.}"
%pom_xpath_inject pom:project "<packaging>bundle</packaging>" $pom %pom_xpath_inject pom:project "<packaging>bundle</packaging>" $pom
%pom_add_plugin org.apache.felix:maven-bundle-plugin:3.5.0 $pom \ %pom_add_plugin org.apache.felix:maven-bundle-plugin:3.5.0 $pom \
@ -65,18 +71,16 @@ for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util asm-xml; do
</instructions> </instructions>
</configuration>" </configuration>"
fi fi
%endif
done done
sed -i -e '/testReadAndWriteWithComputeMaxsAndLargeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \ sed -i -e '/testReadAndWriteWithComputeMaxsAndLargeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \
asm/src/test/java/org/objectweb/asm/ClassWriterTest.java asm/src/test/java/org/objectweb/asm/ClassWriterTest.java
sed -i -e '/testMergeWithJsrReachableFromTwoDifferentPaths/i@org.junit.jupiter.api.Disabled("missing class file")' \ sed -i -e '/testMergeWithJsrReachableFromTwoDifferentPaths/i@org.junit.jupiter.api.Disabled("missing class file")' \
asm-analysis/src/test/java/org/objectweb/asm/tree/analysis/BasicInterpreterTest.java asm-analysis/src/test/java/org/objectweb/asm/tree/analysis/BasicInterpreterTest.java
sed -i -e '/testSortLocalVariablesAndInstantiate()/i@org.junit.jupiter.api.Disabled("missing class file")' \ sed -i -e '/testSortLocalVariablesAndInstantiate()/i@org.junit.jupiter.api.Disabled("missing class file")' \
asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java
mkdir -p asm-all
install -d asm-all sed 's/@VERSION@/%{version}/g' %{SOURCE8} > asm-all/pom.xml
sed 's/@VERSION@/%{version}/g' %{SOURCE9} > asm-all/pom.xml
%pom_remove_dep org.ow2.asm:asm-test asm-test %pom_remove_dep org.ow2.asm:asm-test asm-test
%mvn_alias :asm-all org.ow2.asm:asm-debug-all %mvn_alias :asm-all org.ow2.asm:asm-debug-all
%mvn_package :asm-aggregator __noinstall %mvn_package :asm-aggregator __noinstall
@ -87,19 +91,26 @@ pushd tools/bnd-module-plugin
javac -sourcepath ../../asm/src/main/java/ -cp $(build-classpath aqute-bnd) $(find -name *.java) javac -sourcepath ../../asm/src/main/java/ -cp $(build-classpath aqute-bnd) $(find -name *.java)
jar cf bnd-module-plugin.jar -C src/main/java org jar cf bnd-module-plugin.jar -C src/main/java org
popd popd
%if %{with junit5}
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%else
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%endif
%install %install
%mvn_install %mvn_install
%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util:%{name}/asm-xml %{name}-processor true %jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util %{name}-processor true
%files -f .mfiles %files -f .mfiles
%license LICENSE.txt %license LICENSE.txt
%{_bindir}/%{name}-processor %{_bindir}/%{name}-processor
%files help -f .mfiles-javadoc %files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog %changelog
* Mon Aug 17 2020 wangyue <wangyue92@huawei.com> - 7.0-1
- upgrade the version to 7.0
* Tue Feb 25 2020 zhouyihang <zhouyihang1@huawei.com> - 6.2.1-3 * Tue Feb 25 2020 zhouyihang <zhouyihang1@huawei.com> - 6.2.1-3
- Package init - Package init

View File

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
<project xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
xmlns='http://maven.apache.org/POM/4.0.0'
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
@ -20,7 +16,6 @@
<module>asm-test</module> <module>asm-test</module>
<module>asm-tree</module> <module>asm-tree</module>
<module>asm-util</module> <module>asm-util</module>
<module>asm-xml</module>
<module>asm-all</module> <module>asm-all</module>
</modules> </modules>
</project> </project>