diff --git a/xerces-j2.spec b/xerces-j2.spec index 5f542b9..8991483 100644 --- a/xerces-j2.spec +++ b/xerces-j2.spec @@ -134,7 +134,7 @@ ant \ gcj-dbtool -n build/%{name}-%{version}.db 2048 aot-compile \ build/xercesImpl.jar \ - build/lib%{name}.jar.so \ + build/lib%{name}-%{version}.jar.so \ "$RPM_OPT_FLAGS -fPIC" gcj-dbtool -f \ build/%{name}-%{version}.db \ @@ -152,8 +152,8 @@ cp -p build/xercesImpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar # solibs mkdir -p $RPM_BUILD_ROOT%{_libdir} -cp -p build/lib%{name}.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}-%{version}.jar.so -(cd $RPM_BUILD_ROOT%{_libdir} && for so in lib*-%{version}.jar.so; do ln -sf ${so} `echo $so| sed "s|-%{version}||g"`; done) +cp -p build/lib%{name}-%{version}.jar.so $RPM_BUILD_ROOT%{_libdir} +ln -sf lib%{name}-%{version}.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}.jar.so # gcjdb gcjdbdir=`gcj-dbtool -p %{_libdir}`.d