forked from Imagelibrary/rtems
Use %build_infos
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# ==============================================================
|
||||
# rtems-base-binutils
|
||||
# ==============================================================
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
%define binutils_version @BINUTILS_VERS@
|
||||
%define binutils_rpmvers %{expand:%(echo @BINUTILS_VERS@ | tr - _)}
|
||||
|
||||
%define build_infos @build_infos@
|
||||
|
||||
Name: @rpmprefix@@tool_target@-binutils
|
||||
Summary: Binutils for target @tool_target@
|
||||
Group: Development/Tools
|
||||
@@ -10,7 +12,7 @@ License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make all
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
make info
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
install
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
@@ -20,11 +20,7 @@
|
||||
install-info
|
||||
%endif
|
||||
|
||||
%if "%{_prefix}" == "/usr"
|
||||
# Conflict with a native binutils' infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%else
|
||||
|
||||
%if %{build_infos}
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
@@ -33,6 +29,9 @@
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
%else
|
||||
# Conflict with a native binutils' infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%endif
|
||||
|
||||
# We don't ship host files
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
%if %build_g77
|
||||
# ==============================================================
|
||||
# rtems-base-g77
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# ==============================================================
|
||||
# @rpmprefix@rtems@osversion@-base-gcc
|
||||
# ==============================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
%if %build_gcj
|
||||
# ==============================================================
|
||||
# rtems-base-gcj
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
%if %build_f95
|
||||
# ==============================================================
|
||||
# @rpmprefix@rtems@osversion@-base-gfortran
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
%if %build_gnat
|
||||
# ==============================================================
|
||||
# rtems-base-gnat
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
%if %build_newlib
|
||||
# ==============================================================
|
||||
# @rpmprefix@rtems@osversion@-base-newlib
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
%endif
|
||||
|
||||
make all
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
make info
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
%define gcc_rpmvers %{expand:%(echo "@GCC_VERS@" | tr - _ )}
|
||||
|
||||
%define build_newlib 1
|
||||
%define build_infos @build_infos@
|
||||
|
||||
%if %build_newlib
|
||||
%define newlib_version @NEWLIB_VERS@
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
# cd back to build/
|
||||
cd ..
|
||||
|
||||
%if %build_newlib
|
||||
@@ -35,7 +34,7 @@
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/vxaddr2line%{_exeext}
|
||||
%endif
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# We don't ship info/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# ==============================================================
|
||||
# rtems-base-gdb
|
||||
# ==============================================================
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make all
|
||||
#%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
make info
|
||||
#%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
%define gdb_version @GDB_VERS@
|
||||
%define gdb_rpmvers %{expand:%(echo @GDB_VERS@ | tr - _)}
|
||||
|
||||
%define build_infos @build_infos@
|
||||
|
||||
Name: @rpmprefix@@tool_target@-gdb
|
||||
Summary: Gdb for target @tool_target@
|
||||
Group: Development/Tools
|
||||
@@ -10,13 +12,12 @@ License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
BuildRequires: ncurses-devel
|
||||
|
||||
@SOURCES@
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
install
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%if %{build_infos}
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
@@ -20,10 +20,7 @@
|
||||
install-info
|
||||
%endif
|
||||
|
||||
%if "%{_prefix}" == "/usr"
|
||||
# Conflict with a native gdb's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%else
|
||||
%if %{build_infos}
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
@@ -31,6 +28,9 @@
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
%else
|
||||
# Conflict with a native gdb's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%endif
|
||||
|
||||
# We don't ship host files
|
||||
|
||||
Reference in New Issue
Block a user