Special-case _prefix == /usr

This commit is contained in:
Ralf Corsepius
2005-08-17 02:51:30 +00:00
parent 4cf0f1c4a8
commit 2c680594e8
7 changed files with 18 additions and 2 deletions

View File

@@ -96,14 +96,12 @@ cd ..
# however it uses it
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
%if "%{_prefix}" != "/usr"
%if "%{binutils_version}" < "2.9.5"
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
%endif
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
touch $RPM_BUILD_ROOT%{_infodir}/dir
%endif
%if "%{_prefix}" == "/usr"
# Conflict with a native binutils' infos

View File

@@ -1,3 +1,4 @@
%if "%{_prefix}" != "/usr"
%if %build_g77
# ==============================================================
# rtems-base-g77
@@ -33,3 +34,4 @@ if [ $1 -eq 0 ]; then
fi
%endif
%endif

View File

@@ -1,3 +1,4 @@
%if "%{_prefix}" != "/usr"
# ==============================================================
# %{rpmprefix}rtems@osversion@-base-gcc
# ==============================================================
@@ -65,3 +66,4 @@ if [ $1 -eq 0 ]; then
%endif
fi
%endif

View File

@@ -1,3 +1,4 @@
%if "%{_prefix}" != "/usr"
%if %build_gcj
# ==============================================================
# rtems-base-gcj
@@ -62,3 +63,4 @@ if [ $1 -eq 0 ]; then
fi
%endif
%endif

View File

@@ -1,3 +1,4 @@
%if "%{_prefix}" != "/usr"
%if %build_f95
# ==============================================================
# rtems-base-gfortran
@@ -33,3 +34,4 @@ if [ $1 -eq 0 ]; then
fi
%endif
%endif

View File

@@ -1,3 +1,4 @@
%if "%{_prefix}" != "/usr"
%if %build_gnat
# ==============================================================
# rtems-base-gnat
@@ -35,3 +36,4 @@ if [ $1 -eq 0 ]; then
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz
fi
%endif
%endif

View File

@@ -269,6 +269,14 @@ chmod +x brp-rtems-compress
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
touch $RPM_BUILD_ROOT%{_infodir}/dir
%if "%{_prefix}" == "/usr"
# Conflict with a native GCC's infos
rm -rf $RPM_BUILD_ROOT%{_infodir}
# Conflict with a native GCC's man pages
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
%endif
%if %build_f95
# # Bug in gcc-4.0.0pre
# mv $RPM_BUILD_ROOT%{_bindir}/gfortran $RPM_BUILD_ROOT%{_bindir}/%{gcc_target}-gfortran