2019-02-24 17:50:13 +01:00
|
|
|
#
|
|
|
|
# spec file for package plexus-containers
|
|
|
|
#
|
2024-02-20 15:45:27 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-02-24 17:50:13 +01: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
Name: plexus-containers
|
2022-01-17 12:57:54 +01:00
|
|
|
Version: 2.1.1
|
2019-02-24 17:50:13 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Containers for Plexus
|
|
|
|
# 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/%{name}/archive/%{name}-%{version}.tar.gz
|
|
|
|
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
|
Source2: LICENSE.MIT
|
|
|
|
Source100: %{name}-build.tar.xz
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
2019-11-22 03:37:14 +01:00
|
|
|
BuildRequires: guava
|
2019-02-24 17:50:13 +01:00
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: junit
|
|
|
|
BuildRequires: plexus-classworlds
|
|
|
|
BuildRequires: plexus-utils
|
|
|
|
BuildRequires: xbean
|
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2019-03-03 20:50:26 +01:00
|
|
|
Plexus contains end-to-end developer tools for writing applications.
|
|
|
|
At the core is the container, which can be embedded or for an
|
|
|
|
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.
|
2019-02-24 17:50:13 +01:00
|
|
|
|
|
|
|
%package component-annotations
|
|
|
|
Summary: Component API from %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description component-annotations
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package container-default
|
|
|
|
Summary: Default Container from %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description container-default
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for all plexus-containers packages
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version} -a100
|
|
|
|
|
|
|
|
mkdir -p lib
|
2019-11-22 03:37:14 +01:00
|
|
|
build-jar-repository -s lib plexus/classworlds plexus/utils guava/guava junit xbean/xbean-reflect
|
2019-02-24 17:50:13 +01:00
|
|
|
%if %{with tests}
|
|
|
|
build-jar-repository -s lib objectweb-asm/asm objectweb-asm/asm-commons hamcrest/core
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
|
|
|
rm -rf plexus-container-default/src/test/java/org/codehaus/plexus/hierarchy
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
|
|
|
|
|
|
# For Maven 3 compat
|
|
|
|
%pom_add_dep org.apache.maven:maven-core plexus-component-metadata
|
|
|
|
|
|
|
|
# ASM dependency was changed to "provided" in XBean 4.x, so we need to provide ASM
|
|
|
|
%pom_add_dep org.ow2.asm:asm:5.0.3:runtime plexus-container-default
|
|
|
|
%pom_add_dep org.ow2.asm:asm-commons:5.0.3:runtime plexus-container-default
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# to prevent ant from failing
|
|
|
|
mkdir -p plexus-component-annotations/src/test/java
|
|
|
|
|
|
|
|
%build
|
2019-11-22 03:37:14 +01:00
|
|
|
for i in plexus-component-annotations plexus-container-default; do
|
2019-02-24 17:50:13 +01:00
|
|
|
pushd ${i}
|
2023-09-29 15:30:04 +02:00
|
|
|
%{ant} \
|
2019-02-24 17:50:13 +01:00
|
|
|
%if %{without tests}
|
|
|
|
-Dtest.skip=true \
|
|
|
|
%endif
|
|
|
|
jar javadoc
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
2019-11-22 03:37:14 +01:00
|
|
|
for i in plexus-component-annotations plexus-container-default; do
|
2019-02-24 17:50:13 +01:00
|
|
|
install -pm 0644 ${i}/target/${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/${i}.jar
|
|
|
|
done
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/plexus
|
|
|
|
# keep compat symlink for maven's sake
|
|
|
|
ln -sf ../%{name}/plexus-component-annotations.jar %{buildroot}%{_javadir}/plexus/containers-component-annotations.jar
|
|
|
|
|
|
|
|
# poms
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
2019-11-22 03:37:14 +01:00
|
|
|
for i in plexus-component-annotations plexus-container-default; do
|
2023-09-29 15:30:04 +02:00
|
|
|
%{mvn_install_pom} ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
2019-02-24 17:50:13 +01:00
|
|
|
done
|
|
|
|
%add_maven_depmap %{name}/plexus-component-annotations.pom %{name}/plexus-component-annotations.jar -f component-annotations
|
|
|
|
%add_maven_depmap %{name}/plexus-container-default.pom %{name}/plexus-container-default.jar -f container-default -a org.codehaus.plexus:containers-component-api
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
2019-11-22 03:37:14 +01:00
|
|
|
for i in plexus-component-annotations plexus-container-default; do
|
2019-02-24 17:50:13 +01:00
|
|
|
cp -pr ${i}/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/${i}
|
|
|
|
done
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files component-annotations -f .mfiles-component-annotations
|
|
|
|
%license LICENSE-2.0.txt LICENSE.MIT
|
|
|
|
%{_javadir}/plexus
|
|
|
|
|
|
|
|
%files container-default -f .mfiles-container-default
|
|
|
|
%license LICENSE-2.0.txt LICENSE.MIT
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%license LICENSE-2.0.txt LICENSE.MIT
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|