Update spec file to honour new java packaging guidelines.
This commit is contained in:
parent
a687c60712
commit
b01c67e8cb
55
tycho.spec
55
tycho.spec
@ -69,9 +69,6 @@ Requires: maven-shared-verifier
|
|||||||
Requires: maven-surefire-provider-junit4
|
Requires: maven-surefire-provider-junit4
|
||||||
Requires: eclipse-jdt
|
Requires: eclipse-jdt
|
||||||
|
|
||||||
Requires(post): jpackage-utils
|
|
||||||
Requires(postun): jpackage-utils
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tycho is a set of Maven plugins and extensions for building Eclipse
|
Tycho is a set of Maven plugins and extensions for building Eclipse
|
||||||
@ -135,6 +132,8 @@ mvn-rpmbuild -Dmaven.local.depmap.file=%{SOURCE2} -Dmaven.test.skip=true install
|
|||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
|
|
||||||
|
# pom and jar installation
|
||||||
for mod in target-platform-configuration tycho-compiler-{jdt,plugin} \
|
for mod in target-platform-configuration tycho-compiler-{jdt,plugin} \
|
||||||
tycho-{artifactcomparator,core,embedder-api,metadata-model,testing-harness} \
|
tycho-{artifactcomparator,core,embedder-api,metadata-model,testing-harness} \
|
||||||
sisu-equinox/sisu-equinox{-api,-launching,-embedder} \
|
sisu-equinox/sisu-equinox{-api,-launching,-embedder} \
|
||||||
@ -146,54 +145,41 @@ for mod in target-platform-configuration tycho-compiler-{jdt,plugin} \
|
|||||||
aid=`basename $mod`
|
aid=`basename $mod`
|
||||||
install -pm 644 $mod/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-$aid.pom
|
install -pm 644 $mod/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-$aid.pom
|
||||||
install -m 644 $mod/target/$aid-%{version}%{snap}.jar %{buildroot}%{_javadir}/%{name}/$aid.jar
|
install -m 644 $mod/target/$aid-%{version}%{snap}.jar %{buildroot}%{_javadir}/%{name}/$aid.jar
|
||||||
%add_to_maven_depmap org.eclipse.tycho $aid %{version} JPP/%{name} $aid
|
%add_maven_depmap JPP.%{name}-$aid.pom %{name}/$aid.jar -a "org.eclipse.tycho:$aid,org.sonatype.tycho:$aid"
|
||||||
%add_to_maven_depmap org.sonatype.tycho $aid %{version} JPP/%{name} $aid
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for pommod in tycho-p2 tycho-bundles{,/org.eclipse.tycho.p2.resolver.impl} \
|
# pom installation
|
||||||
tycho-surefire tycho-release \
|
for pommod in tycho-p2 tycho-bundles tycho-surefire \
|
||||||
sisu-equinox \
|
tycho-release sisu-equinox; do
|
||||||
;do
|
|
||||||
aid=`basename $pommod`
|
aid=`basename $pommod`
|
||||||
install -pm 644 $pommod/pom.xml \
|
install -pm 644 $pommod/pom.xml \
|
||||||
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-$aid.pom
|
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-$aid.pom
|
||||||
%add_to_maven_depmap org.eclipse.tycho $aid %{version} JPP/%{name} $aid
|
%add_maven_depmap JPP.%{name}-$aid.pom -a "org.eclipse.tycho:$aid,org.sonatype.tycho:$aid"
|
||||||
%add_to_maven_depmap org.sonatype.tycho $aid %{version} JPP/%{name} $aid
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# runtime
|
# p2 runtime
|
||||||
pushd tycho-bundles/tycho-bundles-external
|
pushd tycho-bundles/tycho-bundles-external
|
||||||
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-tycho-bundles-external.pom
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-tycho-bundles-external.pom
|
||||||
install -m 644 target/tycho-bundles-external-%{version}*.zip %{buildroot}%{_javadir}/%{name}/tycho-bundles-external.zip
|
install -m 644 target/tycho-bundles-external-%{version}*.zip $RPM_BUILD_ROOT%{_javadir}/%{name}/tycho-bundles-external.zip
|
||||||
%add_to_maven_depmap org.eclipse.tycho tycho-bundles-external %{version} JPP/%{name} tycho-bundles-external
|
%add_maven_depmap JPP.%{name}-tycho-bundles-external.pom %{name}/tycho-bundles-external.zip -a "org.eclipse.tycho:tycho-bundles-external,org.sonatype.tycho:tycho-bundles-external"
|
||||||
%add_to_maven_depmap org.sonatype.tycho tycho-bundles-external %{version} JPP/%{name} tycho-bundles-external
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# main
|
||||||
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-main.pom
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-main.pom
|
||||||
%add_to_maven_depmap org.eclipse.tycho %{name} %{version} JPP/%{name} main
|
%add_maven_depmap JPP.%{name}-main.pom -a "org.eclipse.tycho:$aid,org.sonatype.tycho:$aid"
|
||||||
%add_to_maven_depmap org.sonatype.tycho %{name} %{version} JPP/%{name} main
|
|
||||||
|
|
||||||
# standalone p2
|
# standalone p2 director
|
||||||
pushd .m2/org/eclipse/tycho/tycho-standalone-p2-director/%{version}*/
|
pushd .m2/org/eclipse/tycho/tycho-standalone-p2-director/%{version}*/
|
||||||
install -m 644 tycho-standalone-p2-director-%{version}*.zip %{buildroot}%{_javadir}/%{name}/tycho-standalone-p2-director.zip
|
install -m 644 tycho-standalone-p2-director-%{version}*.zip $RPM_BUILD_ROOT%{_javadir}/%{name}/tycho-standalone-p2-director.zip
|
||||||
|
install -pm 644 tycho-standalone-p2-director-%{version}*.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-tycho-standalone-p2-director.pom
|
||||||
sed -i -e "s/eclipse-repository/pom/" tycho-standalone-p2-director-%{version}*.pom
|
|
||||||
install -pm 644 tycho-standalone-p2-director-%{version}*.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tycho-%{name}-standalone-p2-director.pom
|
|
||||||
popd
|
popd
|
||||||
|
%add_maven_depmap JPP.%{name}-tycho-standalone-p2-director.pom tycho/tycho-standalone-p2-director.zip -a "org.eclipse.tycho:tycho-standalone-p2-director,org.sonatype.tycho:tycho-standalone-p2-director"
|
||||||
%add_maven_depmap JPP.tycho-%{name}-standalone-p2-director.pom tycho/tycho-standalone-p2-director.zip -a "org.eclipse.tycho:tycho-standalone-p2-director,org.sonatype.tycho:tycho-standalone-p2-director"
|
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
install -pm 755 %{SOURCE3} %{buildroot}%{_javadir}/%{name}/copy-platform-all
|
install -pm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_javadir}/%{name}/copy-platform-all
|
||||||
|
|
||||||
%post
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
@ -207,6 +193,7 @@ install -pm 755 %{SOURCE3} %{buildroot}%{_javadir}/%{name}/copy-platform-all
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 13 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-4.1.df2c35
|
* Mon Aug 13 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-4.1.df2c35
|
||||||
- Correctly reference objectweb-asm4 and fix local mode resolution bug.
|
- Correctly reference objectweb-asm4 and fix local mode resolution bug.
|
||||||
|
- Update spec file to honour new java packaging guidelines.
|
||||||
|
|
||||||
* Thu Aug 9 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-4.df2c35
|
* Thu Aug 9 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-4.df2c35
|
||||||
- Non-bootstrap build.
|
- Non-bootstrap build.
|
||||||
|
Loading…
Reference in New Issue
Block a user