diff --git a/aopalliance-MANIFEST.MF b/aopalliance-MANIFEST.MF new file mode 100644 index 0000000..33889f9 --- /dev/null +++ b/aopalliance-MANIFEST.MF @@ -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 diff --git a/aopalliance.spec b/aopalliance.spec index b44520a..e5d756e 100644 --- a/aopalliance.spec +++ b/aopalliance.spec @@ -1,6 +1,6 @@ Name: aopalliance Version: 1.0 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 0 Summary: Java/J2EE AOP standards 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 Source0: aopalliance-src.tar.gz Source1: http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom +Source2: %{name}-MANIFEST.MF + Requires: java >= 0:1.5.0 BuildRequires: jpackage-utils >= 0:1.7.5 BuildRequires: java-devel >= 0:1.5.0 BuildRequires: ant >= 0:1.6.5 +BuildRequires: zip BuildArch: noarch %description @@ -36,6 +39,13 @@ export OPT_JAR_LIST=: %{ant} -Dbuild.sysclasspath=only jar javadoc %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 -pm 644 build/aopalliance.jar \ @@ -57,8 +67,11 @@ cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name} %{_javadocdir}/%{name} %changelog +* Mon Aug 6 2012 Gerard Ryan 0:1.0-3 +- Add OSGI manifest + * Wed Jul 18 2012 Fedora Release Engineering - 0:1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild -* Mon Feb 6 2012 Andy Grimm 0:1.0-1 +* Mon Feb 6 2012 Andy Grimm 0:1.0-1 - build for Fedora