diff --git a/xmlgraphics-commons.spec b/xmlgraphics-commons.spec index 877fdca..4ae61a2 100644 --- a/xmlgraphics-commons.spec +++ b/xmlgraphics-commons.spec @@ -47,8 +47,8 @@ ant package javadocs %install rm -rf $RPM_BUILD_ROOT -install -d -m 644 build/%{name}-%{version}.jar \ - $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +cp -p build/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +chmod 0644 $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}