blob: bc1955e5466679d7017bbc9fb2cab6e6eaae9d31 (
plain) (
tree)
|
|
%define cross_arch arm
%define cross_triplet arm-linux-gnueabi
%define cross_sysroot %{_prefix}/%{cross_triplet}/sys-root
Name: %{cross_triplet}-binutils
Version: 2.27
Release: 1%{?dist}
Summary: A GNU collection of binary utilities (%{cross_triplet})
Group: Development/Tools
License: GPLv3+
URL: https://www.gnu.org/software/binutils
Source0: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
BuildRequires: texinfo, gettext, flex, bison, zlib-devel
BuildRequires: %{cross_triplet}-filesystem
Requires: %{cross_triplet}-filesystem
%description
%prep
%setup -qn binutils-%{version}
%build
%configure \
--host=%{_target_platform} \
--build=%{_target_platform} \
--target=%{cross_triplet} \
--program-prefix=%{cross_triplet}- \
--enable-64-bit-bfd \
--enable-ld=default \
--enable-gold=yes \
--enable-multilib \
--enable-threads \
--enable-plugins \
--disable-nls \
--disable-shared \
--disable-werror \
--with-sysroot=%{cross_sysroot} \
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_mandir}
rm -rf %{buildroot}%{_infodir}
%files
%license COPYING COPYING.LIB COPYING3 COPYING3.LIB
%doc ChangeLog MAINTAINERS README
%{_bindir}/%{cross_triplet}-addr2line
%{_bindir}/%{cross_triplet}-ar
%{_bindir}/%{cross_triplet}-as
%{_bindir}/%{cross_triplet}-c++filt
%{_bindir}/%{cross_triplet}-dwp
%{_bindir}/%{cross_triplet}-elfedit
%{_bindir}/%{cross_triplet}-gprof
%{_bindir}/%{cross_triplet}-ld
%{_bindir}/%{cross_triplet}-ld.bfd
%{_bindir}/%{cross_triplet}-ld.gold
%{_bindir}/%{cross_triplet}-nm
%{_bindir}/%{cross_triplet}-objcopy
%{_bindir}/%{cross_triplet}-objdump
%{_bindir}/%{cross_triplet}-ranlib
%{_bindir}/%{cross_triplet}-readelf
%{_bindir}/%{cross_triplet}-size
%{_bindir}/%{cross_triplet}-strings
%{_bindir}/%{cross_triplet}-strip
%{_prefix}/%{cross_triplet}/bin/ar
%{_prefix}/%{cross_triplet}/bin/as
%{_prefix}/%{cross_triplet}/bin/ld
%{_prefix}/%{cross_triplet}/bin/ld.bfd
%{_prefix}/%{cross_triplet}/bin/ld.gold
%{_prefix}/%{cross_triplet}/bin/nm
%{_prefix}/%{cross_triplet}/bin/objcopy
%{_prefix}/%{cross_triplet}/bin/objdump
%{_prefix}/%{cross_triplet}/bin/ranlib
%{_prefix}/%{cross_triplet}/bin/readelf
%{_prefix}/%{cross_triplet}/bin/strip
%{_prefix}/%{cross_triplet}/lib/ldscripts
%changelog
* Tue Aug 16 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.27-1
- Update to 2.27
* Wed Jun 29 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.26.1-1
- Update to 2.26.1
* Thu Mar 03 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.26-2
- Rebuilt for Fedora 24 and 25
* Mon Jan 25 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.26-1
- Update to 2.26
* Mon Dec 28 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25.1-5
- Sync configure options with Fedora
- Support arm-linux-gnueabihf and aarch64-linux-gnu
* Tue Nov 24 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25.1-4
- Require the filesystem sub-package
* Sun Nov 22 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25.1-3
- Install license files and documentation
* Tue Jul 28 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25.1-2
- Rebuilt for Fedora 23 and 24
* Thu Jul 23 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25.1-1
- Update to 2.25.1
* Fri Mar 20 2015 Ting-Wei Lan <lantw44@gmail.com> - 2.25-2
- Rebuilt for Fedora 22 and 23
* Fri Dec 26 2014 Ting-Wei Lan <lantw44@gmail.com> - 2.25-1
- Update to 2.25
* Sat Dec 20 2014 Ting-Wei Lan <lantw44@gmail.com> - 2.24-1
- Initial packaging
|