Skip to content

Commit 347d2e7

Browse files
Upgrade: osgi-annotation to the version 8.1.0 (microsoft#13896)
Co-authored-by: Sandeep Karambelkar <[email protected]>
1 parent 4c12ded commit 347d2e7

File tree

5 files changed

+48
-36
lines changed

5 files changed

+48
-36
lines changed

SPECS-EXTENDED/osgi-annotation/osgi-annotation-build.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
<property file="build.properties"/>
1010

11-
<property name="compiler.source" value="1.6"/>
11+
<property name="compiler.source" value="1.8"/>
1212
<property name="compiler.target" value="${compiler.source}"/>
1313

1414
<property name="project.artifactId" value="osgi.annotation"/>
1515
<property name="project.groupId" value="org.osgi"/>
16-
<property name="project.version" value="7.0.0"/>
17-
<property name="project.description" value="OSGi Annotation Release 7, Annotations for use in compiling bundles."/>
16+
<property name="project.version" value="8.1.0"/>
17+
<property name="project.description" value="OSGi Annotation Release 8, Annotations for use in compiling bundles."/>
1818
<property name="project.organization.name" value="OSGi Alliance"/>
1919

2020
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
@@ -96,7 +96,7 @@
9696
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
9797
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
9898
<attribute name="Bundle-Version" value="${project.version}"/>
99-
<attribute name="Export-Package" value="org.osgi.annotation.versioning;version=&quot;1.1&quot;,org.osgi.annotation.bundle;version=&quot;1.0&quot;"/>
99+
<attribute name="Export-Package" value="org.osgi.annotation.bundle;version=&quot;2.0&quot;,org.osgi.annotation.versioning;version=&quot;1.1.2&quot;"/>
100100
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
101101
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
102102
<attribute name="JavaPackages-Version" value="${project.version}"/>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"Signatures": {
33
"LICENSE-2.0": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
4-
"osgi-annotation-build.xml": "455668ebead4b9060352ac683fcd4b4508963e4598d4c346d8b0902ec86f66c3",
5-
"osgi.annotation-7.0.0-sources.jar": "57e6da6079004fb2e5d249be66ada95a9b8c1bf8be2155c6714b66d307eb0a95",
6-
"osgi.annotation-7.0.0.pom": "f47e44669cc613b5c13d38768171d0d2344af83fe3cc7f33ea5fae146afdfcb5"
4+
"osgi-annotation-build.xml": "440bd47d2d47ddbc85d26ce59eaa4def9cb4d707d6c4a78d6dbb1daf1b2ca163",
5+
"osgi.annotation-8.1.0-sources.jar": "b1f418597a5029764973731d9e68835f13eb3bf4e7a69898e690ec50445a7a76",
6+
"osgi.annotation-8.1.0.pom": "229a7e0c6023e693e50b93bcd30e49d1cd10e519d9615e18696dd0ecfa1b9dd7"
77
}
88
}

SPECS-EXTENDED/osgi-annotation/osgi-annotation.spec

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
3+
34
#
45
# spec file for package osgi-annotation
56
#
6-
# Copyright (c) 2020 SUSE LLC
7+
# Copyright (c) 2024 SUSE LLC
78
#
89
# All modifications and additions to the file contributed by third parties
910
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,12 +20,12 @@ Distribution: Azure Linux
1920

2021

2122
Name: osgi-annotation
22-
Version: 7.0.0
23-
Release: 2%{?dist}
23+
Version: 8.1.0
24+
Release: 1%{?dist}
2425
Summary: Annotations for use in compiling OSGi bundles
2526
License: Apache-2.0
2627
Group: Development/Libraries/Java
27-
URL: http://www.osgi.org/
28+
URL: https://www.osgi.org/
2829
# Upstream project is behind an account registration system with no anonymous
2930
# read access, so we download the source from maven central instead
3031
Source0: https://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}-sources.jar
@@ -33,7 +34,7 @@ Source2: http://www.apache.org/licenses/LICENSE-2.0
3334
Source3: %{name}-build.xml
3435
BuildRequires: ant
3536
BuildRequires: fdupes
36-
BuildRequires: javapackages-local-bootstrap
37+
BuildRequires: javapackages-local-bootstrap >= 6
3738
BuildRequires: unzip
3839
BuildArch: noarch
3940

@@ -88,25 +89,37 @@ install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.annotation.pom
8889
%add_maven_depmap %{name}/osgi.annotation.pom %{name}/osgi.annotation.jar -a org.osgi:org.osgi.annotation
8990
# javadoc
9091
install -dm 0744 %{buildroot}%{_javadocdir}/%{name}
92+
install -dm 0755 %{buildroot}%{_docdir}/%{name}
9193
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
94+
mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO .
9295
%fdupes -s %{buildroot}%{_javadocdir}
9396

97+
# Remove LICENSE from javadoc directory to avoid duplicate license warning
98+
rm -f %{buildroot}%{_javadocdir}/%{name}/legal/LICENSE
99+
94100
%files -f .mfiles
95101
%license LICENSE
102+
%license ADDITIONAL_LICENSE_INFO
96103

97104
%files javadoc
98-
%license LICENSE
99105
%{_javadocdir}/%{name}
100106

101107
%changelog
102-
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 7.0.0-2
103-
- Converting the 'Release' tag to the '[number].[distribution]' format.
104-
105-
* Mon Nov 16 2020 Ruying Chen <[email protected]> - 7.0.0-1.4
106-
- Initial CBL-Mariner import from openSUSE Tumbleweed (license: same as "License" tag).
107-
- Use javapackages-local-bootstrap to avoid build cycle.
108-
108+
* Tue May 27 2025 Durga Jagadeesh Palli <[email protected]> - 8.1.0-1
109+
- Initial Azure Linux import from openSUSE Tumbleweed (license: same as "License" tag).
110+
- Fixed duplicate LICENSE warning
111+
- Marked extra legal files as documentation.
112+
- License verified
113+
114+
* Wed Oct 2 2024 Fridrich Strba <[email protected]>
115+
- Spec file cleanup
116+
* Sat Sep 2 2023 Fridrich Strba <[email protected]>
117+
- Upgrade to the upstream version 8.1.0
118+
* no upstream changes
119+
* Sun Mar 20 2022 Fridrich Strba <[email protected]>
120+
- Build with source and target levels 8
109121
* Wed Apr 1 2020 Fridrich Strba <[email protected]>
110122
- Upgrade to the upstream version 7.0.0
123+
* no upstream changes
111124
* Mon Feb 11 2019 Fridrich Strba <[email protected]>
112125
- Initial packaging of osgi-annotations 6.0.0

SPECS-EXTENDED/osgi-annotation/osgi.annotation-7.0.0.pom renamed to SPECS-EXTENDED/osgi-annotation/osgi.annotation-8.1.0.pom

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,33 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.osgi</groupId>
55
<artifactId>osgi.annotation</artifactId>
6-
<version>7.0.0</version>
7-
<description>OSGi Annotation Release 7, Annotations for use in compiling bundles</description>
6+
<version>8.1.0</version>
7+
<description>OSGi Annotation Release 8, Annotations for use in compiling bundles</description>
88
<name>org.osgi:osgi.annotation</name>
9-
<url>https://www.osgi.org/</url>
9+
<url>https://docs.osgi.org/</url>
1010
<organization>
11-
<name>OSGi Alliance</name>
12-
<url>https://www.osgi.org/</url>
11+
<name>Eclipse Foundation</name>
1312
</organization>
1413
<licenses>
1514
<license>
1615
<name>Apache-2.0</name>
17-
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
16+
<url>https://opensource.org/licenses/Apache-2.0</url>
1817
<distribution>repo</distribution>
19-
<comments>Apache License, Version 2.0</comments>
18+
<comments>This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0.</comments>
2019
</license>
2120
</licenses>
2221
<scm>
23-
<url>https://osgi.org/gitweb/build.git</url>
24-
<connection>scm:git:https://osgi.org/git/build.git</connection>
25-
<developerConnection>scm:git:https://osgi.org/git/build.git</developerConnection>
26-
<tag>hudson-build.core-1432</tag>
22+
<url>https://github.com/osgi/osgi</url>
23+
<connection>scm:git:https://github.com/osgi/osgi.git</connection>
24+
<developerConnection>scm:git:[email protected]:osgi/osgi.git</developerConnection>
25+
<tag>8.0.0.1</tag>
2726
</scm>
2827
<developers>
2928
<developer>
3029
<id>osgi</id>
31-
<email>info@osgi.org</email>
32-
<name>OSGi Alliance</name>
33-
<organization>OSGi Alliance</organization>
30+
<email>osgi-wg@eclipse.org</email>
31+
<name>OSGi Working Group</name>
32+
<organization>Eclipse Foundation</organization>
3433
<organizationUrl>https://www.osgi.org/</organizationUrl>
3534
</developer>
3635
</developers>

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15713,8 +15713,8 @@
1571315713
"type": "other",
1571415714
"other": {
1571515715
"name": "osgi-annotation",
15716-
"version": "7.0.0",
15717-
"downloadUrl": "https://repo1.maven.org/maven2/org/osgi/osgi.annotation/7.0.0/osgi.annotation-7.0.0-sources.jar"
15716+
"version": "8.1.0",
15717+
"downloadUrl": "https://repo1.maven.org/maven2/org/osgi/osgi.annotation/8.1.0/osgi.annotation-8.1.0-sources.jar"
1571815718
}
1571915719
}
1572015720
},

0 commit comments

Comments
 (0)