diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-02-18 11:06:56 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-02-18 11:06:56 +0000 |
commit | 14653c8688876253101e3ba3f2f2889f08228853 (patch) | |
tree | 1244450139eeae3ce34fdad42ab189a2b9d10553 /contrib/crossrpms/binutils | |
parent | Add @rpmprefix@ in comments. (diff) | |
download | rtems-14653c8688876253101e3ba3f2f2889f08228853.tar.bz2 |
New.
Diffstat (limited to 'contrib/crossrpms/binutils')
-rw-r--r-- | contrib/crossrpms/binutils/build.add | 21 | ||||
-rw-r--r-- | contrib/crossrpms/binutils/install.add | 53 | ||||
-rw-r--r-- | contrib/crossrpms/binutils/prep.add | 8 |
3 files changed, 82 insertions, 0 deletions
diff --git a/contrib/crossrpms/binutils/build.add b/contrib/crossrpms/binutils/build.add new file mode 100644 index 0000000000..d9aed25ac7 --- /dev/null +++ b/contrib/crossrpms/binutils/build.add @@ -0,0 +1,21 @@ +%build + mkdir -p build + cd build + CFLAGS="$RPM_OPT_FLAGS" \ + ../binutils-%{binutils_version}/configure \ + --build=%_build --host=%_host \ + --target=@tool_target@ \ + --verbose --disable-nls \ + --without-included-gettext \ + --disable-win32-registry \ + --disable-werror \ + --prefix=%{_prefix} --bindir=%{_bindir} \ + --includedir=%{_includedir} --libdir=%{_libdir} \ + --mandir=%{_mandir} --infodir=%{_infodir} + + make all +%if "%{_prefix}" != "/usr" + make info +%endif + cd .. + diff --git a/contrib/crossrpms/binutils/install.add b/contrib/crossrpms/binutils/install.add new file mode 100644 index 0000000000..9b02d19c3d --- /dev/null +++ b/contrib/crossrpms/binutils/install.add @@ -0,0 +1,53 @@ +%install + rm -rf $RPM_BUILD_ROOT + + cd build + make prefix=$RPM_BUILD_ROOT%{_prefix} \ + bindir=$RPM_BUILD_ROOT%{_bindir} \ + includedir=$RPM_BUILD_ROOT%{_includedir} \ + libdir=$RPM_BUILD_ROOT%{_libdir} \ + infodir=$RPM_BUILD_ROOT%{_infodir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} \ + install + +%if "%{_prefix}" != "/usr" + make prefix=$RPM_BUILD_ROOT%{_prefix} \ + bindir=$RPM_BUILD_ROOT%{_bindir} \ + includedir=$RPM_BUILD_ROOT%{_includedir} \ + libdir=$RPM_BUILD_ROOT%{_libdir} \ + infodir=$RPM_BUILD_ROOT%{_infodir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} \ + install-info +%endif + +%if "%{_prefix}" == "/usr" +# Conflict with a native binutils' infos + rm -rf $RPM_BUILD_ROOT%{_infodir} +%else +%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 + +# binutils does not install share/locale, however it uses it + mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale +%endif + +# We don't ship host files + rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* + +# manpages without corresponding tools + if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-dlltool%{_exeext}; then + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-dlltool* + fi + if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-nlmconv%{_exeext}; then + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-nlmconv* + fi + if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-windres%{_exeext}; then + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-windres* + fi + + cd .. + diff --git a/contrib/crossrpms/binutils/prep.add b/contrib/crossrpms/binutils/prep.add new file mode 100644 index 0000000000..23a76a8b57 --- /dev/null +++ b/contrib/crossrpms/binutils/prep.add @@ -0,0 +1,8 @@ +%prep +%setup -q -c -T -n %{name}-%{version} + +%setup -q -D -T -n %{name}-%{version} -a0 +cd binutils-%{binutils_version} +%{?PATCH0:%patch0 -p1} +cd .. + |