From 114ddba11236423d0625961b136e5d7d848c1ec5947cc398805de6ae28c998e9 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 16 Mar 2022 13:14:02 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/felix-gogo-runtime?expand=0&rev=7 --- felix-gogo-runtime.changes | 7 ++ felix-gogo-runtime.spec | 41 +++++--- org.apache.felix.gogo.runtime-build.xml | 132 ++++++++++++++++++++++++ 3 files changed, 166 insertions(+), 14 deletions(-) create mode 100644 org.apache.felix.gogo.runtime-build.xml diff --git a/felix-gogo-runtime.changes b/felix-gogo-runtime.changes index 176474d..f0a5dc3 100644 --- a/felix-gogo-runtime.changes +++ b/felix-gogo-runtime.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 16 13:12:52 UTC 2022 - Fridrich Strba + +- Rewrite the build system to ant so that we can eventually avoid + build cycles with maven-plugin-bundle built against + felix-bundlerepository + ------------------------------------------------------------------- Thu Nov 28 08:52:53 UTC 2019 - Fridrich Strba diff --git a/felix-gogo-runtime.spec b/felix-gogo-runtime.spec index f4ef3e2..3fd3da9 100644 --- a/felix-gogo-runtime.spec +++ b/felix-gogo-runtime.spec @@ -1,7 +1,7 @@ # # spec file for package felix-gogo-runtime # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,14 +23,14 @@ Release: 0 Summary: Apache Felix Gogo command line shell for OSGi License: Apache-2.0 Group: Development/Libraries/Java -URL: http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html +URL: https://felix.apache.org/documentation/subprojects/apache-felix-gogo.html Source0: http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz +Source1: %{bundle}-build.xml +BuildRequires: ant BuildRequires: fdupes -BuildRequires: maven-local -BuildRequires: mvn(org.apache.felix:gogo-parent:pom:) >= 4 -BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) -BuildRequires: mvn(org.osgi:osgi.cmpn) -BuildRequires: mvn(org.osgi:osgi.core) +BuildRequires: javapackages-local +BuildRequires: osgi-compendium +BuildRequires: osgi-core BuildArch: noarch %description @@ -46,23 +46,36 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{bundle}-%{version} +cp %{SOURCE1} build.xml -%{mvn_file} : felix/%{bundle} +%pom_remove_parent +%pom_xpath_inject pom:project "org.apache.felix" %build -%{mvn_build} -f \ -%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} - -- -Dmaven.compiler.release=8 -%endif +mkdir -p lib +build-jar-repository -s lib osgi-core osgi-compendium +%{ant} jar javadoc %install -%mvn_install +# jar +install -d -m 755 %{buildroot}%{_javadir}/felix +install -m 644 target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/felix/%{bundle}.jar + +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir}/felix +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/felix/%{bundle}.pom +%add_maven_depmap felix/%{bundle}.pom felix/%{bundle}.jar + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -r target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name} %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license LICENSE NOTICE -%files javadoc -f .mfiles-javadoc +%files javadoc +%{_javadocdir}/%{name} %license LICENSE NOTICE %changelog diff --git a/org.apache.felix.gogo.runtime-build.xml b/org.apache.felix.gogo.runtime-build.xml new file mode 100644 index 0000000..d1988bd --- /dev/null +++ b/org.apache.felix.gogo.runtime-build.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a1cd26d6879fd62afb060728dfd648623516266e9bf682065e325023d53ced88 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 16 Mar 2022 13:19:12 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/felix-gogo-runtime?expand=0&rev=8 --- org.apache.felix.gogo.runtime-build.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.apache.felix.gogo.runtime-build.xml b/org.apache.felix.gogo.runtime-build.xml index d1988bd..de60067 100644 --- a/org.apache.felix.gogo.runtime-build.xml +++ b/org.apache.felix.gogo.runtime-build.xml @@ -111,7 +111,7 @@ - +