- sync with latest JPackage version

This commit is contained in:
dwalluck 2008-10-23 19:08:19 +00:00
parent 1991ee88ef
commit 77fd4d31ad
10 changed files with 350 additions and 31 deletions

14
asm-3.1.pom Normal file
View File

@ -0,0 +1,14 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM Core</name>
<artifactId>asm</artifactId>
<packaging>jar</packaging>
</project>

15
asm-all-3.1.pom Normal file
View File

@ -0,0 +1,15 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.objectweb.asm</groupId>
<artifactId>asm-parent</artifactId>
<version>3.1</version>
</parent>
<name>ASM All</name>
<groupId>org.objectweb.asm</groupId>
<artifactId>asm-all</artifactId>
<packaging>jar</packaging>
</project>

21
asm-analysis-3.1.pom Normal file
View File

@ -0,0 +1,21 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM Analysis</name>
<artifactId>asm-analysis</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<artifactId>asm-tree</artifactId>
<groupId>org.objectweb.asm</groupId>
</dependency>
</dependencies>
</project>

21
asm-commons-3.1.pom Normal file
View File

@ -0,0 +1,21 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM Commons</name>
<artifactId>asm-commons</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<artifactId>asm-tree</artifactId>
<groupId>org.objectweb.asm</groupId>
</dependency>
</dependencies>
</project>

129
asm-parent-3.1.pom Normal file
View File

@ -0,0 +1,129 @@
<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>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
<packaging>pom</packaging>
<name>ASM</name>
<description>A very small and fast Java bytecode manipulation framework</description>
<url>http://asm.objectweb.org/</url>
<organization>
<name>ObjectWeb</name>
<url>http://www.objectweb.org/</url>
</organization>
<inceptionYear>2000</inceptionYear>
<developers>
<developer>
<name>Eric Bruneton</name>
<id>ebruneton</id>
<email>Eric.Bruneton@rd.francetelecom.com</email>
<roles>
<role>Creator</role>
<role>Java Developer</role>
</roles>
</developer>
<developer>
<name>Eugene Kuleshov</name>
<id>eu</id>
<email>eu@javatx.org</email>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<scm>
<connection>scm:cvs:pserver:anonymous@cvs.forge.objectweb.org:/cvsroot/asm:asm</connection>
<developerConnection>scm:cvs:ext:${maven.username}@cvs.forge.objectweb.org:/cvsroot/asm:asm</developerConnection>
<url>http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/asm/asm/</url>
</scm>
<issueManagement>
<url>http://forge.objectweb.org/tracker/?group_id=23</url>
</issueManagement>
<dependencyManagement>
<dependencies>
<dependency>
<artifactId>asm</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>asm-tree</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>asm-analysis</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>asm-commons</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>asm-util</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
<dependency>
<artifactId>asm-xml</artifactId>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<mailingLists>
<mailingList>
<name>ASM Users List</name>
<subscribe>sympa@ow2.org?subject=subscribe%20asm</subscribe>
<unsubscribe>sympa@ow2.org?subject=unsubscribe%20asm</unsubscribe>
<post>asm@ow2.org</post>
<archive>http://www.ow2.org/wws/arc/asm</archive>
</mailingList>
<mailingList>
<name>ASM Team List</name>
<subscribe>sympa@ow2.org?subject=subscribe%20asm-team</subscribe>
<unsubscribe>sympa@ow2.org?subject=unsubscribe%20asm-team</unsubscribe>
<post>asm-team@ow2.org</post>
<archive>http://www.ow2.org/wws/arc/asm-team</archive>
</mailingList>
</mailingLists>
<distributionManagement>
<downloadUrl>http://mojo.codehaus.org/my-project</downloadUrl>
<repository>
<id>objectweb</id>
<uniqueVersion>false</uniqueVersion>
<name>ObjectWeb Maven 2.0 Repository</name>
<url>dav:https://maven.forge.objectweb.org:8002/maven2/</url>
<layout>default</layout>
</repository>
<snapshotRepository>
<id>objectweb.snapshots</id>
<uniqueVersion>false</uniqueVersion>
<name>ObjectWeb Maven 2.0 Snapshot Repository</name>
<url>dav:https://maven.forge.objectweb.org:8002/maven2-snapshot/</url>
<layout>default</layout>
</snapshotRepository>
</distributionManagement>
</project>

21
asm-tree-3.1.pom Normal file
View File

@ -0,0 +1,21 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM Tree</name>
<artifactId>asm-tree</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<artifactId>asm</artifactId>
<groupId>org.objectweb.asm</groupId>
</dependency>
</dependencies>
</project>

21
asm-util-3.1.pom Normal file
View File

@ -0,0 +1,21 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM Util</name>
<artifactId>asm-util</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<artifactId>asm-tree</artifactId>
<groupId>org.objectweb.asm</groupId>
</dependency>
</dependencies>
</project>

21
asm-xml-3.1.pom Normal file
View File

@ -0,0 +1,21 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>asm-parent</artifactId>
<groupId>org.objectweb.asm</groupId>
<version>3.1</version>
</parent>
<name>ASM XML</name>
<artifactId>asm-xml</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<artifactId>asm-util</artifactId>
<groupId>org.objectweb.asm</groupId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,10 @@
--- asm-3.1/archive/asm-xml.xml.orig 2008-10-20 15:35:03.716137723 -0400
+++ asm-3.1/archive/asm-xml.xml 2008-10-20 15:35:12.071115378 -0400
@@ -10,7 +10,6 @@
<attribute name="Implementation-Title" value="ASM XML classes"/>
<attribute name="Implementation-Version" value="${product.artifact}"/>
<attribute name="Implementation-Vendor" value="Eugene Kuleshov"/>
- <attribute name="Class-path" value="asm-${product.artifact}.jar asm-util-${product.artifact}.jar asm-attrs-${product.artifact}.jar"/>
<attribute name="Main-class" value="org.objectweb.asm.xml.Processor"/>
</manifest>
</jar>

View File

@ -1,4 +1,4 @@
# Copyright (c) 2000-2007, JPackage Project # Copyright (c) 2000-2008, JPackage Project
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -32,23 +32,35 @@
Name: objectweb-asm Name: objectweb-asm
Version: 3.1 Version: 3.1
Release: 2.3%{dist} Release: 5.1%{?dist}
Epoch: 0 Epoch: 0
Summary: A code manipulation tool to implement adaptable systems Summary: A code manipulation tool to implement adaptable systems
License: BSD License: BSD
URL: http://asm.objectweb.org/ URL: http://asm.objectweb.org/
Group: Development/Libraries/Java Group: Development/Libraries/Java
Source0: http://download.forge.objectweb.org/asm/asm-3.1.tar.gz Source0: http://download.forge.objectweb.org/asm/asm-3.1.tar.gz
Source1: asm-MANIFEST.MF Source1: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.pom
BuildRequires: jpackage-utils >= 0:1.6 Source2: http://repo1.maven.org/maven2/asm/asm-analysis/3.1/asm-analysis-3.1.pom
BuildRequires: ant Source3: http://repo1.maven.org/maven2/asm/asm-commons/3.1/asm-commons-3.1.pom
BuildRequires: objectweb-anttask Source4: http://repo1.maven.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.pom
BuildRequires: xml-commons-jaxp-1.3-apis Source5: http://repo1.maven.org/maven2/asm/asm-util/3.1/asm-util-3.1.pom
Source6: http://repo1.maven.org/maven2/asm/asm-xml/3.1/asm-xml-3.1.pom
Source7: http://repo1.maven.org/maven2/asm/asm-all/3.1/asm-all-3.1.pom
Source8: http://repo1.maven.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom
Source9: asm-MANIFEST.MF
Patch0: objectweb-asm-no-classpath-in-manifest.patch
# Needed by asm-xml.jar # Needed by asm-xml.jar
Requires: xml-commons-jaxp-1.3-apis Requires: xml-commons-jaxp-1.3-apis
Requires(post): jpackage-utils >= 0:1.7.4
Requires(postun): jpackage-utils >= 0:1.7.4
BuildRequires: jpackage-utils >= 0:1.7.4
BuildRequires: java-devel >= 0:1.5.0
BuildRequires: ant >= 0:1.6.5
BuildRequires: objectweb-anttask
BuildRequires: xml-commons-jaxp-1.3-apis
BuildRequires: zip
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description %description
ASM is a code manipulation tool to implement adaptable systems. ASM is a code manipulation tool to implement adaptable systems.
@ -62,16 +74,17 @@ Javadoc for %{name}.
%prep %prep
%setup -q -n asm-%{version} %setup -q -n asm-%{version}
find . -name "*.jar" -exec rm -f {} \; %patch0 -p1
perl -pi -e 's/\r$//g' LICENSE.txt README.txt
mkdir META-INF
cp -p %{SOURCE9} META-INF/MANIFEST.MF
%build %build
export CLASSPATH=
export OPT_JAR_LIST=:
ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc
# inject OSGi manifests
mkdir -p META-INF
cp %{SOURCE1} META-INF/MANIFEST.MF
zip -u output/dist/lib/all/asm-all-%{version}.jar META-INF/MANIFEST.MF
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -83,46 +96,79 @@ install -m 644 ${jar} \
$RPM_BUILD_ROOT%{_javadir}/%{name}/`basename ${jar}` $RPM_BUILD_ROOT%{_javadir}/%{name}/`basename ${jar}`
done done
install -m 644 output/dist/lib/all/asm-all-%{version}.jar \ touch META-INF/MANIFEST.MF
$RPM_BUILD_ROOT%{_javadir}/%{name}/asm-all-%{version}.jar zip -u output/dist/lib/all/asm-all-%{version}.jar META-INF/MANIFEST.MF
install -m 644 output/dist/lib/all/asm-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \ (cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done) ln -sf ${jar} ${jar/-%{version}/}; done)
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm.pom
%add_to_maven_depmap org.objectweb.asm asm %{version} JPP/objectweb-asm asm
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-analysis.pom
%add_to_maven_depmap org.objectweb.asm asm-analysis %{version} JPP/objectweb-asm asm-analysis
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-commons.pom
%add_to_maven_depmap org.objectweb.asm asm-commons %{version} JPP/objectweb-asm asm-commons
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-tree.pom
%add_to_maven_depmap org.objectweb.asm asm-tree %{version} JPP/objectweb-asm asm-tree
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-util.pom
%add_to_maven_depmap org.objectweb.asm asm-util %{version} JPP/objectweb-asm asm-util
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-xml.pom
%add_to_maven_depmap org.objectweb.asm asm-xml %{version} JPP/objectweb-asm asm-xml
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-all.pom
%add_to_maven_depmap org.objectweb.asm asm-all %{version} JPP/objectweb-asm asm-all
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-parent.pom
%add_to_maven_depmap org.objectweb.asm asm-parent %{version} JPP/objectweb-asm asm-parent
# javadoc # javadoc
install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
#Fix EOL
sed -i 's/\r//' README.txt LICENSE.txt
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc README.txt LICENSE.txt %doc LICENSE.txt README.txt
%dir %{_javadir}/%{name} %dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar %{_javadir}/%{name}/*.jar
%{_datadir}/maven2/*
%{_mavendepmapfragdir}/*
%files javadoc %files javadoc
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%dir %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/* %{_javadocdir}/%{name}
%changelog %changelog
* Mon Jul 14 2008 Andrew Overholt <overholt@redhat.com> 0:3.1-2.3 * Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5.1
- Build and ship asm-all.jar with OSGi manifest (Alexander Kurtakov) - build for Fedora
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:3.1-2.2 * Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5
- drop repotag - add OSGi manifest (Alexander Kurtakov)
* Tue Dec 04 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp.1 * Mon Oct 20 2008 David Walluck <dwalluck@redhat.com> 0:3.1-4
- First Fedora build - remove Class-Path from MANIFEST.MF
- Replace uses of dos2unix with sed - add unversioned javadoc symlink
- remove javadoc scriptlets
- fix directory ownership
- remove build requirement on dos2unix
* Fri Feb 08 2008 Ralph Apel <r.apel@r-apel.de> - 0:3.1-3jpp
- Add poms and depmap frags with groupId of org.objectweb.asm !
- Add asm-all.jar
- Add -javadoc Requires post and postun
- Restore Vendor, Distribution
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp * Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp
- Fix EOL of txt files - Fix EOL of txt files