2024-05-04 00:39:47 +02:00
|
|
|
#
|
|
|
|
# spec file for package sisu
|
|
|
|
#
|
2024-05-31 15:00:18 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-05-04 00:39:47 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-05-31 15:00:18 +02:00
|
|
|
%global reltype milestones
|
2024-05-04 00:39:47 +02:00
|
|
|
Name: sisu
|
2024-06-12 22:22:32 +02:00
|
|
|
Version: 0.9.0.M3
|
2024-05-04 00:39:47 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Eclipse dependency injection framework
|
2024-06-12 22:22:32 +02:00
|
|
|
License: BSD-3-Clause AND EPL-1.0 AND EPL-2.0
|
2024-05-04 00:39:47 +02:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://www.eclipse.org/sisu/
|
2024-06-12 22:22:32 +02:00
|
|
|
Source0: https://github.com/eclipse-sisu/sisu-project/archive/refs/tags/%{reltype}/%{version}.tar.gz#/sisu-project-%{version}.tar.gz
|
|
|
|
Source1: %{name}-build.tar.xz
|
|
|
|
Patch1: sisu-no-dependency-on-glassfish-servlet-api.patch
|
|
|
|
Patch3: sisu-osgi-api.patch
|
|
|
|
Patch4: sisu-reproducible-index.patch
|
2024-05-04 00:39:47 +02:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: atinject
|
|
|
|
BuildRequires: cdi-api
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: glassfish-annotation-api
|
|
|
|
BuildRequires: google-guice
|
|
|
|
BuildRequires: guice-servlet
|
2024-05-31 15:00:18 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2024-05-04 00:39:47 +02:00
|
|
|
BuildRequires: junit
|
2024-05-31 15:00:18 +02:00
|
|
|
BuildRequires: junit5-minimal
|
2024-05-04 00:39:47 +02:00
|
|
|
BuildRequires: osgi-core
|
|
|
|
BuildRequires: plexus-classworlds
|
|
|
|
BuildRequires: plexus-containers-component-annotations
|
|
|
|
BuildRequires: plexus-utils
|
2024-05-31 15:00:18 +02:00
|
|
|
BuildRequires: plexus-xml
|
2024-05-04 00:39:47 +02:00
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: testng
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xz
|
|
|
|
Provides: bundled(objectweb-asm)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Java dependency injection framework with backward support for plexus and bean
|
|
|
|
style dependency injection.
|
|
|
|
|
|
|
|
%package inject
|
|
|
|
Summary: Sisu inject
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description inject
|
|
|
|
This package contains %{summary}.
|
|
|
|
|
|
|
|
%package plexus
|
|
|
|
Summary: Sisu Plexus
|
|
|
|
Group: Development/Libraries/Java
|
2024-05-31 15:00:18 +02:00
|
|
|
Requires: %{name}-inject = %{version}
|
|
|
|
Obsoletes: plexus-containers-container-default < 2.2.0
|
|
|
|
Provides: plexus-containers-container-default = 2.2.0
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
%description plexus
|
|
|
|
This package contains %{summary}.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for Sisu
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains %{summary}.
|
|
|
|
|
|
|
|
%prep
|
2024-06-12 22:22:32 +02:00
|
|
|
%setup -q -n sisu-project-%{reltype}-%{version} -a1
|
2024-05-04 00:39:47 +02:00
|
|
|
|
2024-06-12 22:22:32 +02:00
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 3 -p1
|
|
|
|
%patch -P 4 -p2
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib \
|
|
|
|
glassfish-annotation-api \
|
|
|
|
google-guice-no_aop \
|
|
|
|
javax.enterprise.inject/cdi-api \
|
|
|
|
javax.inject/atinject \
|
|
|
|
junit \
|
2024-05-31 15:00:18 +02:00
|
|
|
junit5 \
|
2024-05-04 00:39:47 +02:00
|
|
|
osgi-core/osgi.core \
|
|
|
|
plexus/utils \
|
2024-05-31 15:00:18 +02:00
|
|
|
plexus/xml \
|
2024-05-04 00:39:47 +02:00
|
|
|
plexus/classworlds \
|
|
|
|
plexus-containers/plexus-component-annotations \
|
|
|
|
slf4j/api \
|
|
|
|
testng
|
|
|
|
%{ant} package javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
2024-06-12 22:22:32 +02:00
|
|
|
install -pm 0644 org.eclipse.sisu.inject/target/org.eclipse.sisu.inject-%{version}.jar \
|
2024-05-31 15:00:18 +02:00
|
|
|
%{buildroot}%{_javadir}/org.eclipse.sisu.inject.jar
|
2024-06-12 22:22:32 +02:00
|
|
|
install -pm 0644 org.eclipse.sisu.plexus/target/org.eclipse.sisu.plexus-%{version}.jar \
|
2024-05-31 15:00:18 +02:00
|
|
|
%{buildroot}%{_javadir}/org.eclipse.sisu.plexus.jar
|
|
|
|
# Compatibility symlink
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/plexus-containers
|
|
|
|
ln -sf %{_javadir}/org.eclipse.sisu.plexus.jar %{buildroot}%{_javadir}/plexus-containers/plexus-container-default.jar
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
2024-06-12 22:22:32 +02:00
|
|
|
%{mvn_install_pom} org.eclipse.sisu.inject/pom.xml %{buildroot}%{_mavenpomdir}/org.eclipse.sisu.inject.pom
|
2024-05-04 00:39:47 +02:00
|
|
|
%add_maven_depmap org.eclipse.sisu.inject.pom org.eclipse.sisu.inject.jar -f inject
|
2024-06-12 22:22:32 +02:00
|
|
|
%{mvn_install_pom} org.eclipse.sisu.plexus/pom.xml %{buildroot}%{_mavenpomdir}/org.eclipse.sisu.plexus.pom
|
2024-05-31 15:00:18 +02:00
|
|
|
%add_maven_depmap org.eclipse.sisu.plexus.pom org.eclipse.sisu.plexus.jar -f plexus -a org.sonatype.sisu:sisu-inject-plexus,org.codehaus.plexus:plexus-container-default
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
# javadoc
|
|
|
|
for i in inject plexus; do
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}
|
2024-06-12 22:22:32 +02:00
|
|
|
cp -pr org.eclipse.sisu.${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}/
|
2024-05-04 00:39:47 +02:00
|
|
|
done
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files inject -f .mfiles-inject
|
2024-06-12 22:22:32 +02:00
|
|
|
%license LICENSE.txt
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
%files plexus -f .mfiles-plexus
|
2024-05-31 15:00:18 +02:00
|
|
|
%{_javadir}/plexus-containers
|
2024-05-04 00:39:47 +02:00
|
|
|
|
|
|
|
%files javadoc
|
2024-06-12 22:22:32 +02:00
|
|
|
%license LICENSE.txt
|
2024-05-04 00:39:47 +02:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|