Name: mffd3s-binutils-mipsel-linux-gnu Version: 2.35.1 Release: 1%{?dist} Summary: Cross-build binary utilities for mipsel-linux-gnu License: GPL URL: https://sourceware.org/binutils Source: https://ftp.gnu.org/gnu/binutils/binutils-2.35.1.tar.bz2 %if %{defined suse_version} Requires: libgmp10 Requires: libisl15 Requires: libmpc3 BuildRequires: mpc-devel %else Requires: gmp Requires: isl Requires: libmpc BuildRequires: libmpc-devel %endif BuildRequires: gmp-devel BuildRequires: isl-devel BuildRequires: gcc-c++ %description Cross-build binary utilities for MIPS 32 Used at Charles University course NSWI200. %global debug_package %{nil} %define __strip /bin/true %prep tar xjf $RPM_SOURCE_DIR/binutils-2.35.1.tar.bz2 %build cd binutils-2.35.1 ./configure \ --prefix=/opt/mffd3s/ \ --target=mipsel-linux-gnu \ --program-prefix=mipsel-linux-gnu- \ --disable-nls \ --disable-werror \ --disable-gdb \ --enable-gold \ --enable-deterministic-archives \ --enable-static \ --with-sysroot \ --disable-shared %make_build all %install cd binutils-2.35.1 rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/opt/mffd3s/share/info/ find $RPM_BUILD_ROOT %files /opt/mffd3s/* %changelog