Add OSGI manifest

This commit is contained in:
Gerard Ryan 2012-08-06 15:46:40 +01:00 committed by Andy Grimm
parent dfafc24e2e
commit 34c1428b92
2 changed files with 29 additions and 2 deletions

14
aopalliance-MANIFEST.MF Normal file
View File

@ -0,0 +1,14 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_05-icedtea-mockbuild_2012_07_09_18_45-b00 (Oracle Co
rporation)
Bundle-ManifestVersion: 2
Bundle-Name: AOP Alliance
Bundle-SymbolicName: aopalliance
Bundle-Version: 1.0
Bundle-Vendor: AOP Alliance
Export-Package: org.aopalliance.aop,
org.aopalliance.intercept,
org.aopalliance.reflect,
org.aopalliance.instrument
Eclipse-BuddyPolicy: registered

View File

@ -1,6 +1,6 @@
Name: aopalliance Name: aopalliance
Version: 1.0 Version: 1.0
Release: 2%{?dist} Release: 3%{?dist}
Epoch: 0 Epoch: 0
Summary: Java/J2EE AOP standards Summary: Java/J2EE AOP standards
Group: Development/Libraries Group: Development/Libraries
@ -10,10 +10,13 @@ URL: http://aopalliance.sourceforge.net/
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance # cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance
Source0: aopalliance-src.tar.gz Source0: aopalliance-src.tar.gz
Source1: http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom Source1: http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom
Source2: %{name}-MANIFEST.MF
Requires: java >= 0:1.5.0 Requires: java >= 0:1.5.0
BuildRequires: jpackage-utils >= 0:1.7.5 BuildRequires: jpackage-utils >= 0:1.7.5
BuildRequires: java-devel >= 0:1.5.0 BuildRequires: java-devel >= 0:1.5.0
BuildRequires: ant >= 0:1.6.5 BuildRequires: ant >= 0:1.6.5
BuildRequires: zip
BuildArch: noarch BuildArch: noarch
%description %description
@ -36,6 +39,13 @@ export OPT_JAR_LIST=:
%{ant} -Dbuild.sysclasspath=only jar javadoc %{ant} -Dbuild.sysclasspath=only jar javadoc
%install %install
# inject OSGi manifest
mkdir -p META-INF
cp -p %{SOURCE2} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/%{name}.jar META-INF/MANIFEST.MF
install -dm 755 %{buildroot}%{_javadir} install -dm 755 %{buildroot}%{_javadir}
install -pm 644 build/aopalliance.jar \ install -pm 644 build/aopalliance.jar \
@ -57,8 +67,11 @@ cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog
* Mon Aug 6 2012 Gerard Ryan <galileo.fedoraproject.org> 0:1.0-3
- Add OSGI manifest
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-2 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Feb 6 2012 Andy Grimm <agrimm@gmail.com> 0:1.0-1 * Mon Feb 6 2012 Andy Grimm <agrimm@gmail.com> 0:1.0-1
- build for Fedora - build for Fedora