- Build and ship asm-all.jar with OSGi manifest (Alexander Kurtakov)
This commit is contained in:
parent
e4a39100ad
commit
1991ee88ef
14
asm-MANIFEST.MF
Normal file
14
asm-MANIFEST.MF
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-RequiredExecutionEnvironment: J2SE-1.3
|
||||||
|
Bundle-SymbolicName: org.objectweb.asm
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: %pluginName
|
||||||
|
Bundle-Localization: plugin
|
||||||
|
Bundle-Version: 3.1.0.v200803061910
|
||||||
|
Bundle-Vendor: %providerName
|
||||||
|
Export-Package: org.objectweb.asm;version="3.1.0",org.objectweb.asm.co
|
||||||
|
mmons;version="3.1.0",org.objectweb.asm.signature;version="3.1.0",org
|
||||||
|
.objectweb.asm.tree;version="3.1.0",org.objectweb.asm.tree.analysis;v
|
||||||
|
ersion="3.1.0",org.objectweb.asm.util;version="3.1.0",org.objectweb.a
|
||||||
|
sm.xml;version="3.1.0"
|
||||||
|
|
@ -32,14 +32,14 @@
|
|||||||
|
|
||||||
Name: objectweb-asm
|
Name: objectweb-asm
|
||||||
Version: 3.1
|
Version: 3.1
|
||||||
Release: 2.2%{dist}
|
Release: 2.3%{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
|
||||||
BuildRequires: jpackage-utils >= 0:1.6
|
BuildRequires: jpackage-utils >= 0:1.6
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: objectweb-anttask
|
BuildRequires: objectweb-anttask
|
||||||
@ -67,6 +67,11 @@ find . -name "*.jar" -exec rm -f {} \;
|
|||||||
%build
|
%build
|
||||||
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
|
||||||
|
|
||||||
@ -78,9 +83,15 @@ 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 \
|
||||||
|
$RPM_BUILD_ROOT%{_javadir}/%{name}/asm-all-%{version}.jar
|
||||||
|
|
||||||
|
|
||||||
(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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 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}
|
||||||
@ -103,6 +114,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_javadocdir}/%{name}-%{version}/*
|
%{_javadocdir}/%{name}-%{version}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 14 2008 Andrew Overholt <overholt@redhat.com> 0:3.1-2.3
|
||||||
|
- Build and ship asm-all.jar with OSGi manifest (Alexander Kurtakov)
|
||||||
|
|
||||||
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:3.1-2.2
|
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:3.1-2.2
|
||||||
- drop repotag
|
- drop repotag
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user