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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +