1
0
Tomáš Chvátal 2016-09-29 10:46:09 +00:00 committed by Git OBS Bridge
parent 695ec206a3
commit f60bd1758c

View File

@ -59,9 +59,6 @@ Group: Development/Libraries/Java
Requires(post): /bin/ln
Requires(post): /bin/rm
Requires(postun): /bin/rm
%if ! %defined suse_version
Requires: java-javadoc
%endif
%description javadoc
The goal of Pool package it to create and maintain an object (instance)
@ -101,11 +98,7 @@ ant -Djava.io.tmpdir=. clean dist
%install
# jars
install -d -m 755 %{buildroot}%{_javadir}
%if %{with_maven}
install -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%else
install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%endif
#tomcat5 jar
install -m 644 pool-tomcat5/%{short_name}-tomcat5.jar %{buildroot}%{_javadir}/%{name}-tomcat5-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)