2019-04-02 12:06:40 +02:00
|
|
|
#
|
2024-02-20 15:45:27 +01:00
|
|
|
# spec file for package plexus-component-metadata
|
2019-04-02 12:06:40 +02:00
|
|
|
#
|
2024-02-20 15:45:27 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-04-02 12:06:40 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global base_name plexus-containers
|
|
|
|
%global comp_name plexus-component-metadata
|
|
|
|
%bcond_with tests
|
|
|
|
Name: %{comp_name}
|
2024-05-15 19:03:55 +02:00
|
|
|
Version: 2.2.0
|
2019-04-02 12:06:40 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Component metadata from %{base_name}
|
|
|
|
# Most of the files are either under ASL 2.0 or MIT
|
|
|
|
# The following files are under xpp:
|
|
|
|
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java
|
|
|
|
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/MXParser.java
|
|
|
|
License: Apache-2.0 AND MIT AND xpp
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://github.com/codehaus-plexus/plexus-containers
|
|
|
|
Source0: https://github.com/codehaus-plexus/%{base_name}/archive/%{base_name}-%{version}.tar.gz
|
|
|
|
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
|
Source2: LICENSE.MIT
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(com.thoughtworks.qdox:qdox)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
2024-04-02 19:38:12 +02:00
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-xml)
|
2019-04-11 22:00:22 +02:00
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
|
2019-04-02 12:06:40 +02:00
|
|
|
BuildRequires: mvn(org.jdom:jdom2)
|
2019-11-29 14:07:26 +01:00
|
|
|
BuildRequires: mvn(org.ow2.asm:asm) >= 7
|
2019-04-02 18:46:38 +02:00
|
|
|
#!BuildRequires: maven-compiler-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-jar-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-javadoc-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-plugin-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-resources-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-surefire-plugin-bootstrap
|
2019-04-02 12:06:40 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Plexus project seeks to create end-to-end developer tools for
|
|
|
|
writing applications. At the core is the container, which can be
|
|
|
|
embedded or for a full scale application server. There are many
|
|
|
|
reusable components for hibernate, form processing, jndi, i18n,
|
|
|
|
velocity, etc. Plexus also includes an application server which
|
|
|
|
is like a J2EE application server, without all the baggage.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{base_name}-%{base_name}-%{version}
|
|
|
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
|
|
|
2024-05-15 19:20:00 +02:00
|
|
|
%pom_add_dep org.codehaus.plexus:plexus-xml:3.0.0 plexus-component-metadata
|
|
|
|
|
2019-04-02 12:06:40 +02:00
|
|
|
# Generate OSGI info
|
|
|
|
%pom_xpath_inject "pom:project" "
|
|
|
|
<packaging>bundle</packaging>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.felix</groupId>
|
|
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<instructions>
|
|
|
|
<_nouses>true</_nouses>
|
|
|
|
<Export-Package>org.codehaus.plexus.component.annotations.*</Export-Package>
|
|
|
|
</instructions>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>" plexus-component-annotations
|
|
|
|
|
2024-05-15 15:39:37 +02:00
|
|
|
# Fix build with maven-plugin-plugin >= 3.11.0
|
2024-05-15 19:03:55 +02:00
|
|
|
%pom_xpath_inject "pom:project" "
|
|
|
|
<build>
|
2024-05-15 15:39:37 +02:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-plugin-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<goalPrefix>plexus-component-metadata</goalPrefix>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2024-05-15 19:03:55 +02:00
|
|
|
</plugins>
|
|
|
|
</build>" plexus-component-metadata
|
2024-05-15 15:39:37 +02:00
|
|
|
|
2019-04-02 12:06:40 +02:00
|
|
|
# to prevent ant from failing
|
|
|
|
mkdir -p plexus-component-annotations/src/test/java
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd %{comp_name}
|
2019-04-02 18:46:38 +02:00
|
|
|
%{mvn_file} :%{comp_name} %{base_name}/%{comp_name}
|
2019-11-22 17:25:16 +01:00
|
|
|
%{mvn_build} \
|
|
|
|
%if %{without tests}
|
2022-05-20 14:18:19 +02:00
|
|
|
-f \
|
2019-04-02 12:06:40 +02:00
|
|
|
%endif
|
2022-05-20 14:18:19 +02:00
|
|
|
-- \
|
2019-11-22 17:25:16 +01:00
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2022-05-20 14:18:19 +02:00
|
|
|
-Dmaven.compiler.release=8 \
|
2019-11-22 17:25:16 +01:00
|
|
|
%endif
|
2022-05-20 14:18:19 +02:00
|
|
|
-Dsource=8
|
2019-11-22 17:25:16 +01:00
|
|
|
|
2019-04-02 12:06:40 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd %{comp_name}
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files -f %{comp_name}/.mfiles
|
|
|
|
%license LICENSE-2.0.txt LICENSE.MIT
|
|
|
|
|
2019-04-02 18:46:38 +02:00
|
|
|
%files javadoc -f %{comp_name}/.mfiles-javadoc
|
2019-04-02 12:06:40 +02:00
|
|
|
%license LICENSE-2.0.txt LICENSE.MIT
|
|
|
|
|
|
|
|
%changelog
|