Do not build manual and faq for ppc64 or s390x as the style task is

disabled
This commit is contained in:
Permaine Cheung 2009-09-21 18:03:46 +00:00
parent 9782ec0558
commit bd0eeaf59a

View File

@ -32,7 +32,7 @@
Name: bsh Name: bsh
Version: 1.3.0 Version: 1.3.0
Release: 15%{?dist} Release: 15.1%{?dist}
Epoch: 0 Epoch: 0
Summary: Lightweight Scripting for Java Summary: Lightweight Scripting for Java
License: SPL or LGPLv2+ License: SPL or LGPLv2+
@ -136,9 +136,11 @@ pushd lib
ln -sf $(build-classpath bsf) ln -sf $(build-classpath bsf)
ln -sf $(build-classpath servlet) ln -sf $(build-classpath servlet)
popd popd
ant dist ant -Dant.build.javac.source=1.4 dist
(cd docs/faq && ant) %ifnarch ppc64 s390x
(cd docs/manual && ant) (cd docs/faq && ant -Dant.build.javac.source=1.4)
(cd docs/manual && ant -Dant.build.javac.source=1.4)
%endif
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -175,9 +177,11 @@ find docs -name ".cvswrappers" -exec rm -f {} \;
find docs -name "*.xml" -exec rm -f {} \; find docs -name "*.xml" -exec rm -f {} \;
find docs -name "*.xsl" -exec rm -f {} \; find docs -name "*.xsl" -exec rm -f {} \;
find docs -name "*.log" -exec rm -f {} \; find docs -name "*.log" -exec rm -f {} \;
%ifnarch ppc64 s390x
(cd docs/manual && mv html/* .) (cd docs/manual && mv html/* .)
(cd docs/manual && rm -rf html) (cd docs/manual && rm -rf html)
(cd docs/manual && rm -rf xsl) (cd docs/manual && rm -rf xsl)
%endif
# javadoc # javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@ -329,9 +333,11 @@ exit 0
%attr(-,root,root) %{_libdir}/gcj/%{name} %attr(-,root,root) %{_libdir}/gcj/%{name}
%endif %endif
%ifnarch ppc64 s390x
%files manual %files manual
%defattr(-,root,root) %defattr(-,root,root)
%doc docs/* %doc docs/*
%endif
%files javadoc %files javadoc
%defattr(-,root,root) %defattr(-,root,root)
@ -349,6 +355,9 @@ exit 0
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png %{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%changelog %changelog
* Mon Sep 21 2009 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-15.1
- Do not build manual and faq for ppc64 or s390x as the style task is disabled
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-15 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild