2020-09-09 08:06:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package felix-framework
|
|
|
|
#
|
2023-10-26 03:37:59 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-09-09 08:06:50 +00:00
|
|
|
#
|
|
|
|
# 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
|
2023-10-26 03:37:59 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2020-09-09 08:06:50 +00:00
|
|
|
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}
|
2024-02-21 10:43:00 +00:00
|
|
|
%patch -P 0
|
2020-09-09 08:06:50 +00:00
|
|
|
|
2025-03-27 17:52:16 +00:00
|
|
|
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
|
|
|
|
|
2023-10-26 03:37:59 +00:00
|
|
|
%pom_remove_plugin :maven-source-plugin
|
2020-09-09 08:06:50 +00:00
|
|
|
|
|
|
|
%pom_change_dep -r org.osgi:org.osgi.annotation org.osgi:osgi.annotation
|
|
|
|
|
2023-10-26 03:37:59 +00:00
|
|
|
%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"
|
|
|
|
|
2020-09-09 08:06:50 +00:00
|
|
|
# This test needs porting to easymock3
|
|
|
|
rm src/test/java/org/apache/felix/framework/ServiceRegistryTest.java
|
|
|
|
|
|
|
|
%{mvn_file} :%{bundle} "felix/%{bundle}"
|
|
|
|
|
|
|
|
%build
|
2023-10-26 03:37:59 +00:00
|
|
|
%{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
|
2020-09-09 08:06:50 +00:00
|
|
|
|
|
|
|
%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
|