# # spec file for package osgi-core # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: osgi-core Version: 8.0.0 Release: 0 Summary: OSGi Core API License: Apache-2.0 Group: Development/Libraries/Java URL: https://www.osgi.org Source0: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}-sources.jar Source1: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}.pom Source2: http://www.apache.org/licenses/LICENSE-2.0 Source3: %{name}-build.xml BuildRequires: ant BuildRequires: fdupes BuildRequires: javapackages-local BuildRequires: osgi-annotation BuildRequires: unzip BuildArch: noarch %description OSGi Core Release 8, Interfaces and Classes for use in compiling bundles. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc This package provides %{summary}. %prep %setup -q -c mkdir -p lib build-jar-repository -s lib osgi-annotation cp -p %{SOURCE1} pom.xml cp -p %{SOURCE2} LICENSE cp -p %{SOURCE3} build.xml mkdir -p src/main/java mv org src/main/java/ %pom_xpath_inject pom:project ' bundle UTF-8 org.apache.felix maven-bundle-plugin true ${project.artifactId} ${project.artifactId} ' %pom_add_dep org.osgi:osgi.annotation::provided %build %{ant} jar javadoc %install # jar install -dm 0755 %{buildroot}%{_javadir}/%{name} install -pm 0644 target/osgi.core-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.core.jar # pom install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.core.pom %add_maven_depmap %{name}/osgi.core.pom %{name}/osgi.core.jar # javadoc install -dm 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license LICENSE %files javadoc %license LICENSE %{_javadocdir}/%{name} %changelog