%bcond_with bootstrap Name: osgi-core Version: 8.0.0 Release: 9%{?dist} Summary: OSGi Core API License: Apache-2.0 URL: https://www.osgi.org Source0: https://docs.osgi.org/download/r8/osgi.core-%{version}.jar BuildArch: noarch ExclusiveArch: %{java_arches} noarch %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.osgi:osgi.annotation) %endif %description OSGi Core, Interfaces and Classes for use in compiling bundles. %package javadoc Summary: API documentation for %{name} %description javadoc This package provides %{summary}. %prep %setup -q -c # Delete pre-built binaries rm -r org find -name '*.class' -delete mkdir -p src/main/{java,resources} mv OSGI-OPT/src/org src/main/java/ mv META-INF/maven/org.osgi/osgi.core/pom.xml . %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 %mvn_alias : org.osgi:org.osgi.core %build %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install %files -f .mfiles %license LICENSE %doc about.html %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Fri Sep 01 2023 Mikolaj Izdebski - 8.0.0-9 - Convert License tag to SPDX format * Thu Jul 20 2023 Fedora Release Engineering - 8.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 8.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 8.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Feb 05 2022 Jiri Vanek - 8.0.0-5 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 8.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 8.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 17 2021 Mikolaj Izdebski - 8.0.0-2 - Bootstrap build - Non-bootstrap build * Tue Jan 26 2021 Fedora Release Engineering - 7.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 15 2021 Marian Koncek - 8.0.0-1 - Update to upstream version 8.0.0 * Tue Jul 28 2020 Fedora Release Engineering - 7.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jul 11 2020 Jiri Vanek - 7.0.0-4 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Wed Jan 29 2020 Fedora Release Engineering - 7.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 05 2019 Mikolaj Izdebski - 7.0.0-4 - Mass rebuild for javapackages-tools 201902 * Thu Jul 25 2019 Fedora Release Engineering - 7.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 24 2019 Mikolaj Izdebski - 7.0.0-3 - Mass rebuild for javapackages-tools 201901 * Wed Apr 17 2019 Mikolaj Izdebski - 7.0.0-2 - Add alias for org.osgi:org.osgi.core * Wed Mar 06 2019 Mat Booth - 7.0.0-1 - Update to OSGi R7 * Fri Feb 01 2019 Fedora Release Engineering - 6.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 6.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 6.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 6.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 6.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Oct 10 2016 Mikolaj Izdebski - 6.0.0-3 - Fix scopes of injected Maven dependencies * Wed Oct 05 2016 Michael Simacek - 6.0.0-2 - Remove alias * Tue Oct 04 2016 Michael Simacek - 6.0.0-1 - Initial packaging