fix build/ finding

This commit is contained in:
Colin Walters 2008-07-31 20:30:35 +00:00
parent ba71f6a99b
commit 8a8f30799b

View File

@ -74,13 +74,13 @@ ant javadoc
rm -rf %{buildroot}
# jars
install -D -m 644 build-*/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
install -D -m 644 build*/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir}/; for jar in `ls *-%{version}.jar`; do ln -s $jar `echo $jar | sed -e 's/-%{version}//'`; done)
# NOTE: JNA has highly custom code to look for native jars in this
# directory. Since this roughly matches the jpackage guidelines,
# we'll leave it unchanged.
install -d -m 755 %{buildroot}%{_libdir}/%{name}
install -m 755 build-*/native/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
install -m 755 build*/native/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
# javadocs
install -p -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}