upgrade the version to 7.0
This commit is contained in:
parent
f2d10bbe56
commit
47250530e8
36
README.en.md
36
README.en.md
@ -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/)
|
||||
39
README.md
39
README.md
@ -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/)
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm</name>
|
||||
<description>ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,19 +77,19 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
14
asm-all.pom
14
asm-all.pom
@ -1,12 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project
|
||||
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">
|
||||
|
||||
<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>
|
||||
@ -41,11 +36,6 @@
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-xml</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-analysis</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm-analysis</name>
|
||||
<description>Static code analysis API of ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,25 +77,25 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm-commons</name>
|
||||
<description>Usefull class adapters based on ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,43 +77,43 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-analysis</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-util</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm-test</name>
|
||||
<description>Utilities for testing ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,19 +77,19 @@
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm-tree</name>
|
||||
<description>Tree API of ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,25 +77,25 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -9,7 +9,7 @@
|
||||
</parent>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-util</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<name>asm-util</name>
|
||||
<description>Utilities for ASM, a very small and fast Java bytecode manipulation framework</description>
|
||||
<url>http://asm.ow2.org/</url>
|
||||
@ -77,19 +77,19 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-analysis</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -101,19 +101,19 @@
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-test</artifactId>
|
||||
<version>6.2.1</version>
|
||||
<version>7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-params</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<version>5.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -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
28
generate-tarball.sh
Normal 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
BIN
objectweb-asm-7.0.tar.gz
Normal file
Binary file not shown.
@ -1,56 +1,62 @@
|
||||
Name: objectweb-asm
|
||||
Version: 6.2.1
|
||||
Release: 3
|
||||
Summary: Java bytecode manipulation and analysis framework
|
||||
License: BSD
|
||||
URL: http://asm.ow2.org/
|
||||
Source0: https://gitlab.ow2.org/asm/asm/repository/ASM_6_2_1/archive.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: asm-parent.pom
|
||||
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
|
||||
Source8: https://repo1.maven.org/maven2/org/ow2/asm/asm-xml/%{version}/asm-xml-%{version}.pom
|
||||
Source9: asm-all.pom
|
||||
|
||||
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||||
BuildRequires: mvn(org.ow2:ow2:pom:) mvn(org.codehaus.janino:janino) mvn(org.junit.jupiter:junit-jupiter-api)
|
||||
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine) mvn(org.junit.jupiter:junit-jupiter-params)
|
||||
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform) objectweb-asm >= 6
|
||||
Requires: javapackages-tools
|
||||
BuildArch: noarch
|
||||
|
||||
%bcond_without junit5
|
||||
%bcond_without osgi
|
||||
Name: objectweb-asm
|
||||
Version: 7.0
|
||||
Release: 1
|
||||
Summary: Java bytecode manipulation and analysis framework
|
||||
License: BSD
|
||||
URL: http://asm.ow2.org/
|
||||
BuildArch: noarch
|
||||
Source0: objectweb-asm-%{version}.tar.gz
|
||||
Source1: parent.pom
|
||||
Source2: http://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom
|
||||
Source3: http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom
|
||||
Source4: http://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom
|
||||
Source5: http://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.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
|
||||
Source8: asm-all.pom
|
||||
Source9: generate-tarball.sh
|
||||
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) mvn(org.ow2:ow2:pom:)
|
||||
%if %{with junit5}
|
||||
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
|
||||
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes
|
||||
or to dynamically generate classes, directly in binary form. ASM provides some common bytecode transformations and
|
||||
analysis algorithms from which custom complex transformations and code analysis tools can be built. ASM offers similar
|
||||
functionality as other Java bytecode frameworks, but is focused on performance. Because it was designed and implemented
|
||||
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
|
||||
static way too, e.g. in compilers).
|
||||
ASM is an all purpose Java bytecode manipulation and analysis
|
||||
framework. It can be used to modify existing classes or dynamically
|
||||
generate classes, directly in binary form. Provided common
|
||||
transformations and analysis algorithms allow to easily assemble
|
||||
custom complex transformations and code analysis tools.
|
||||
|
||||
%package help
|
||||
Summary: API documentation for objectweb-asm
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package provides API help documentation for objectweb-asm.
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
%description javadoc
|
||||
This package provides %{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n asm-ASM_6_2_1-f86d1ce7d413a5d4f9a5b51c49eb592555c82e97 -p1
|
||||
install -p -m 644 %{SOURCE1} pom.xml
|
||||
|
||||
find -name '*.jar' -delete
|
||||
find asm{,-analysis,-commons} -name '*.class' -delete
|
||||
rm -r gradle
|
||||
|
||||
for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util asm-xml; do
|
||||
install -p -m 644 $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml
|
||||
%setup -q
|
||||
cp -p %{SOURCE1} pom.xml
|
||||
%if %{without junit5}
|
||||
%pom_disable_module asm-test
|
||||
%endif
|
||||
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
|
||||
# Fix junit5 configuration
|
||||
%if %{with junit5}
|
||||
%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
|
||||
%endif
|
||||
%if %{with osgi}
|
||||
if [ "$pom" != "asm-test" ] ; then
|
||||
# Make into OSGi bundles
|
||||
bsn="org.objectweb.${pom//-/.}"
|
||||
%pom_xpath_inject pom:project "<packaging>bundle</packaging>" $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>
|
||||
</configuration>"
|
||||
fi
|
||||
%endif
|
||||
done
|
||||
|
||||
sed -i -e '/testReadAndWriteWithComputeMaxsAndLargeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
||||
asm/src/test/java/org/objectweb/asm/ClassWriterTest.java
|
||||
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
|
||||
sed -i -e '/testSortLocalVariablesAndInstantiate()/i@org.junit.jupiter.api.Disabled("missing class file")' \
|
||||
asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java
|
||||
|
||||
install -d asm-all
|
||||
sed 's/@VERSION@/%{version}/g' %{SOURCE9} > asm-all/pom.xml
|
||||
|
||||
mkdir -p asm-all
|
||||
sed 's/@VERSION@/%{version}/g' %{SOURCE8} > asm-all/pom.xml
|
||||
%pom_remove_dep org.ow2.asm:asm-test asm-test
|
||||
%mvn_alias :asm-all org.ow2.asm:asm-debug-all
|
||||
%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)
|
||||
jar cf bnd-module-plugin.jar -C src/main/java org
|
||||
popd
|
||||
|
||||
%if %{with junit5}
|
||||
%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
|
||||
%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
|
||||
%license LICENSE.txt
|
||||
%{_bindir}/%{name}-processor
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE.txt
|
||||
|
||||
%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
|
||||
- Package init
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project
|
||||
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'>
|
||||
|
||||
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
||||
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
@ -20,7 +16,6 @@
|
||||
<module>asm-test</module>
|
||||
<module>asm-tree</module>
|
||||
<module>asm-util</module>
|
||||
<module>asm-xml</module>
|
||||
<module>asm-all</module>
|
||||
</modules>
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user