%define _build_id_links none %define __strip /bin/true Name: mffd3s-binutils-sh-unknown-elf Version: 2.47 Release: 1%{?dist} Summary: Cross-build binary utilities for sh-unknown-elf. License: GPL URL: https://sourceware.org/binutils Source: https://ftp.gnu.org/gnu/binutils/binutils-2.47.tar.bz2 BuildRequires: gcc, gcc-c++ %description Cross-build binary utilities for SuperH (SH-2E + SH-4A). Used at Charles University course NSWI200. %global debug_package %{nil} %prep tar xjf $RPM_SOURCE_DIR/binutils-2.47.tar.bz2 %build cd binutils-2.47 ./configure \ --prefix=/opt/mffd3s/sh/ \ --target=sh-unknown-elf \ --program-prefix=sh-unknown-elf- \ --disable-nls \ --disable-werror \ --disable-gdb \ --enable-gold \ --enable-deterministic-archives \ --with-sysroot %make_build all %install cd binutils-2.47 rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/opt/mffd3s/sh/share/info/ find $RPM_BUILD_ROOT %files /opt/mffd3s/sh/* %changelog