2019-04-03 10:39:23 +02:00
|
|
|
#
|
|
|
|
# spec file for package bnd-maven-plugin
|
|
|
|
#
|
2024-02-20 12:57:42 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-04-03 10:39:23 +02: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: bnd-maven-plugin
|
2023-09-18 08:12:46 +02:00
|
|
|
Version: 6.3.1
|
2019-04-03 10:39:23 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: BND Maven plugin
|
|
|
|
# Part of jpm is under BSD, but jpm is not included in binary RPM
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2020-04-01 12:28:04 +02:00
|
|
|
URL: https://bnd.bndtools.org/
|
2023-04-26 19:49:11 +02:00
|
|
|
Source0: bnd-%{version}.tar.xz
|
2023-09-18 08:12:46 +02:00
|
|
|
Patch1: 0001-Disable-removed-commands.patch
|
|
|
|
Patch2: 0002-Port-to-OSGI-7.0.0.patch
|
|
|
|
Patch3: 0003-Remove-unmet-dependencies.patch
|
|
|
|
Patch4: reproducible-timestamps.patch
|
|
|
|
Patch5: reproducible-packages-list.patch
|
2019-04-03 10:39:23 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
2023-09-18 08:12:46 +02:00
|
|
|
BuildRequires: mvn(biz.aQute.bnd:biz.aQute.bndlib) >= %{version}
|
2019-04-03 10:39:23 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
2021-10-18 07:22:51 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-mapping)
|
2023-09-18 08:12:46 +02:00
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
2019-04-03 10:39:23 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Collection of various Maven plugins provided by the Bnd project.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2024-02-20 14:30:28 +01:00
|
|
|
%setup -q -n bnd-%{version}
|
|
|
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3 -p1
|
|
|
|
%patch -P 4 -p1
|
|
|
|
%patch -P 5 -p1
|
2021-10-18 07:22:51 +02:00
|
|
|
|
2023-09-18 08:12:46 +02:00
|
|
|
cp -r biz.aQute.bnd.maven/src/aQute/bnd/maven/lib/configuration maven/bnd-maven-plugin/src/main/java/aQute/bnd/maven/lib
|
|
|
|
cp -r biz.aQute.bnd.maven/src/aQute/bnd/maven/lib/executions maven/bnd-maven-plugin/src/main/java/aQute/bnd/maven/lib
|
2019-04-03 10:39:23 +02:00
|
|
|
pushd maven
|
2021-10-18 07:22:51 +02:00
|
|
|
%pom_remove_dep -r :biz.aQute.bnd.maven
|
2019-04-03 10:39:23 +02:00
|
|
|
# Unavailable reactor dependency - org.osgi.impl.bundle.repoindex.cli
|
|
|
|
%pom_disable_module bnd-indexer-maven-plugin
|
|
|
|
# Requires unbuilt parts of bnd
|
|
|
|
%pom_disable_module bnd-export-maven-plugin
|
2021-10-18 07:22:51 +02:00
|
|
|
%pom_disable_module bnd-reporter-maven-plugin
|
2019-04-03 10:39:23 +02:00
|
|
|
%pom_disable_module bnd-resolver-maven-plugin
|
2021-10-18 07:22:51 +02:00
|
|
|
%pom_disable_module bnd-run-maven-plugin
|
2019-04-03 10:39:23 +02:00
|
|
|
%pom_disable_module bnd-testing-maven-plugin
|
|
|
|
# Integration tests require Internet access
|
|
|
|
%pom_remove_plugin -r :maven-invoker-plugin
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
2023-09-18 08:12:46 +02:00
|
|
|
|
2019-04-03 10:39:23 +02:00
|
|
|
%pom_remove_plugin -r :flatten-maven-plugin
|
|
|
|
|
2023-09-18 08:12:46 +02:00
|
|
|
%pom_remove_dep -r org.junit:junit-bom
|
|
|
|
|
2023-09-18 08:57:15 +02:00
|
|
|
%{mvn_package} biz.aQute.bnd:bnd-plugin-parent __noinstall
|
2023-09-18 08:12:46 +02:00
|
|
|
popd
|
2019-04-03 10:39:23 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd maven
|
2021-10-18 16:18:02 +02:00
|
|
|
%{mvn_build} -f -- -Dproject.build.sourceEncoding=UTF-8 -Dsource=8
|
2019-04-03 10:39:23 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd maven
|
|
|
|
%mvn_install
|
|
|
|
popd
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f maven/.mfiles
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files javadoc -f maven/.mfiles-javadoc
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|