11Vendor: Microsoft Corporation
22Distribution: 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
2122Name: osgi-annotation
22- Version: 7.0 .0
23- Release: 2 %{?dist }
23+ Version: 8.1 .0
24+ Release: 1 %{?dist }
2425Summary: Annotations for use in compiling OSGi bundles
2526License: Apache-2.0
2627Group: 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
3031Source0: 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
3334Source3: %{name }-build.xml
3435BuildRequires: ant
3536BuildRequires: fdupes
36- BuildRequires: javapackages-local -bootstrap
37+ BuildRequires: javapackages-local -bootstrap >= 6
3738BuildRequires: unzip
3839BuildArch: 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
9091install -dm 0744 %{buildroot }%{_javadocdir }/%{name }
92+ install -dm 0755 %{buildroot }%{_docdir }/%{name }
9193cp -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
0 commit comments