Conditionally remove manpage of DOS tools.

This commit is contained in:
Ralf Corsepius
2006-02-09 07:56:06 +00:00
parent 3274157e24
commit 01b1c7242d

View File

@@ -41,7 +41,8 @@ Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}@binutil
# This is binutils sources with patches for RTEMS.
%prep
%setup -c -T -n %{name}-%{version} -a0
%setup -q -c -T -n %{name}-%{version}
%setup -q -D -T -n %{name}-%{version} -a0
%if "%{_prefix}" != "/usr"
# Extract %%__os_install_post into os_install_post~
@@ -131,9 +132,15 @@ cd ..
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
# manpages without corresponding tools
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/%{binutils_target}-dlltool%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/%{binutils_target}-dlltool*
fi
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/%{binutils_target}-nlmconv%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/%{binutils_target}-nlmconv*
fi
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/%{binutils_target}-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/%{binutils_target}-windres*
fi
cd ..