Fridrich Strba 2023-05-16 20:35:14 +00:00 committed by Git OBS Bridge
parent 3ef584b2c6
commit 71d103f89f
5 changed files with 37 additions and 40 deletions

View File

@ -1,15 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
<name>AOP alliance</name>
<version>1.0</version>
<description>AOP Alliance</description>
<url>http://aopalliance.sourceforge.net</url>
<licenses>
<license>
<name>Public Domain</name>
</license>
</licenses>
</project>

View File

@ -1,14 +0,0 @@
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

@ -0,0 +1,18 @@
--- aopalliance/build.xml 2023-05-16 22:26:45.498861470 +0200
+++ aopalliance/build.xml 2023-05-16 22:29:50.811283305 +0200
@@ -27,6 +27,15 @@
<jar jarfile="build/aopalliance.jar">
<fileset dir="build/classes">
</fileset>
+ <manifest>
+ <attribute name="Bundle-ManifestVersion" value="2"/>
+ <attribute name="Bundle-Name" value="AOP Alliance"/>
+ <attribute name="Bundle-SymbolicName" value="aopalliance"/>
+ <attribute name="Bundle-Vendor" value="AOP Alliance"/>
+ <attribute name="Bundle-Version" value="1.0"/>
+ <attribute name="Eclipse-BuddyPolicy" value="registered"/>
+ <attribute name="Export-Package" value="org.aopalliance.aop,org.aopalliance.instrument,org.aopalliance.intercept,org.aopalliance.reflect"/>
+ </manifest>
</jar>
</target>

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue May 16 20:33:41 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Register artifact by coordinates, since an artifact without
dependencies does not need a pom
- Added patch:
* aopalliance-manifest.patch
+ add OSGi manifest during the jar packaging
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 15 12:26:14 UTC 2023 - Frederic Crozat <fcrozat@suse.com> Mon May 15 12:26:14 UTC 2023 - Frederic Crozat <fcrozat@suse.com>

View File

@ -27,8 +27,7 @@ URL: https://aopalliance.sourceforge.net/
# password empty # password empty
# cvs -z3 -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance # cvs -z3 -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance
Source0: aopalliance-src.tar.gz Source0: aopalliance-src.tar.gz
Source1: https://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom Patch0: aopalliance-manifest.patch
Source2: %{name}-MANIFEST.MF
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: javapackages-local BuildRequires: javapackages-local
@ -52,25 +51,25 @@ This package contains the API documentation for %{name}.
%prep %prep
%setup -q -n %{name} %setup -q -n %{name}
# Inject OSGi manifest required by Eclipse.
%patch0 -p1
%build %build
export CLASSPATH= export CLASSPATH=
export OPT_JAR_LIST=: export OPT_JAR_LIST=:
%{ant} \ %{ant} \
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \ -Dant.build.javac.source=1.8 \
-Dbuild.sysclasspath=only jar javadoc -Dant.build.javac.target=1.8 \
jar javadoc
# Inject OSGi manifest required by Eclipse.
jar umf %{SOURCE2} build/%{name}.jar
%install %install
# jar # jar
install -dm 0755 %{buildroot}%{_javadir} install -dm 0755 %{buildroot}%{_javadir}
install -pm 0644 build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar install -pm 0644 build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir} # maven metadata
install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap aopalliance:aopalliance:%{version} %{name}.jar
%add_maven_depmap %{name}.pom %{name}.jar
# javadoc # javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name} install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}/ cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}/