SPECS: template-java.spec - install jars for jakarta builds
glen
glen at pld-linux.org
Mon Apr 9 23:03:46 CEST 2007
Author: glen Date: Mon Apr 9 21:03:46 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- install jars for jakarta builds
---- Files affected:
SPECS:
template-java.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/template-java.spec
diff -u SPECS/template-java.spec:1.6 SPECS/template-java.spec:1.7
--- SPECS/template-java.spec:1.6 Mon Apr 9 22:50:05 2007
+++ SPECS/template-java.spec Mon Apr 9 23:03:41 2007
@@ -63,9 +63,17 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_javadir}
+# install jar
cp -a dist/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+# for jakarta packages:
+for a in dist/*.jar; do
+ jar=${a##*/}
+ cp -a dist/$jar $RPM_BUILD_ROOT%{_javadir}/${jar%%.jar}-%{version}.jar
+ ln -s ${jar%%.jar}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/$jar
+done
+
# javadoc
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -99,6 +107,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2007/04/09 21:03:41 glen
+- install jars for jakarta builds
+
Revision 1.6 2007/04/09 20:50:05 glen
- sample for jar install
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/template-java.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list