# # spec file for package felix-framework # # 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/ # %global bundle org.apache.felix.framework Name: felix-framework Version: 4.6.0 Release: 0 Summary: Apache Felix Framework License: Apache-2.0 Group: Development/Libraries/Java URL: https://felix.apache.org Source0: http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz Patch0: test-ambiguity.patch BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:felix-parent:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.osgi:osgi.annotation) BuildArch: noarch %description Apache Felix Framework Interfaces and Classes. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{bundle}-%{version} %patch -P 0 %pom_xpath_remove pom:project/pom:parent/pom:relativePath %pom_remove_plugin :maven-source-plugin %pom_change_dep -r org.osgi:org.osgi.annotation org.osgi:osgi.annotation %pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8" %pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8" # This test needs porting to easymock3 rm src/test/java/org/apache/felix/framework/ServiceRegistryTest.java %{mvn_file} :%{bundle} "felix/%{bundle}" %build %{mvn_build} -f -- \ -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -Dmaven.compiler.release=8 \ %endif -Dsource=8 %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license LICENSE %doc NOTICE DEPENDENCIES %files javadoc -f .mfiles-javadoc %license LICENSE %doc NOTICE %changelog