This commit is contained in:
parent
c26281a2c5
commit
b9da862efb
26
sisu.spec
26
sisu.spec
@ -61,6 +61,7 @@ style dependency injection.
|
||||
%package inject
|
||||
Summary: Sisu inject
|
||||
Group: Development/Libraries/Java
|
||||
Requires: mvn(javax.enterprise:cdi-api)
|
||||
|
||||
%description inject
|
||||
This package contains %{summary}.
|
||||
@ -68,6 +69,10 @@ This package contains %{summary}.
|
||||
%package plexus
|
||||
Summary: Sisu Plexus
|
||||
Group: Development/Libraries/Java
|
||||
Requires: mvn(org.codehaus.plexus:plexus-classworlds)
|
||||
Requires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
||||
Requires: mvn(org.codehaus.plexus:plexus-utils)
|
||||
Requires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject) = %{version}
|
||||
|
||||
%description plexus
|
||||
This package contains %{summary}.
|
||||
@ -99,10 +104,6 @@ for i in inject plexus; do
|
||||
%pom_xpath_set -r /pom:project/pom:version %{version} %{name}-${i}
|
||||
done
|
||||
|
||||
%{mvn_file} ":{*}" @1
|
||||
%{mvn_package} ":*{inject,plexus}" @1
|
||||
%{mvn_alias} :org.eclipse.sisu.plexus org.sonatype.sisu:sisu-inject-plexus
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib \
|
||||
@ -120,13 +121,20 @@ build-jar-repository -s lib \
|
||||
testng
|
||||
%{ant} package javadoc
|
||||
|
||||
for i in inject plexus; do
|
||||
%{mvn_artifact} %{name}-${i}/pom.xml %{name}-${i}/target/org.eclipse.sisu.${i}-%{version}.jar
|
||||
done
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
# jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 %{name}-inject/target/org.eclipse.sisu.inject-%{version}.jar %{buildroot}%{_javadir}/org.eclipse.sisu.inject.jar
|
||||
install -pm 0644 %{name}-plexus/target/org.eclipse.sisu.plexus-%{version}.jar %{buildroot}%{_javadir}/org.eclipse.sisu.plexus.jar
|
||||
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 0644 %{name}-inject/pom.xml %{buildroot}%{_mavenpomdir}/org.eclipse.sisu.inject.pom
|
||||
%add_maven_depmap org.eclipse.sisu.inject.pom org.eclipse.sisu.inject.jar -f inject
|
||||
install -pm 0644 %{name}-plexus/pom.xml %{buildroot}%{_mavenpomdir}/org.eclipse.sisu.plexus.pom
|
||||
%add_maven_depmap org.eclipse.sisu.plexus.pom org.eclipse.sisu.plexus.jar -f plexus -a org.sonatype.sisu:sisu-inject-plexus
|
||||
|
||||
# javadoc
|
||||
for i in inject plexus; do
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}
|
||||
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}/
|
||||
|
Loading…
Reference in New Issue
Block a user