]> git.pld-linux.org Git - packages/crossmipsel-binutils.git/blame - crossmipsel-binutils.spec
- up to 2.19.50.0.1, builds here
[packages/crossmipsel-binutils.git] / crossmipsel-binutils.spec
CommitLineData
037e7e3e 1Summary: Cross MIPSel GNU binary utility development utilities - binutils
f0a9346b
ER
2Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - MIPSel binutils
3Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - MIPSel binutils
4Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR MIPSel - binutils
5Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - MIPSel binutils
6Summary(tr.UTF-8): GNU geliştirme araçları - MIPSel binutils
ac115d01 7Name: crossmipsel-binutils
f826660f 8Version: 2.19.50.0.1
bcd52758 9Release: 1
ac115d01
AM
10License: GPL
11Group: Development/Tools
96b275b6 12Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
f826660f 13# Source0-md5: c71bf140587a5662bd1fa9d5a19556ed
76bed0d8 14Patch0: binutils-mips-relocs.patch
6f5dc402 15URL: http://sources.redhat.com/binutils/
b8657567 16BuildRequires: automake
6f5dc402 17BuildRequires: bash
ac115d01 18BuildRequires: bison
6f5dc402 19BuildRequires: flex
53eade66 20BuildRequires: gettext-devel
ac115d01
AM
21%ifarch sparc sparc32
22BuildRequires: sparc32
23%endif
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define target mipsel-pld-linux
27%define arch %{_prefix}/%{target}
28
29%description
30Binutils is a collection of binary utilities, including:
31- ar - create, modify and extract from archives,
32- nm - lists symbols from object files,
33- objcopy - copy and translate object files,
34- objdump - display information from object files,
35- ranlib - generate an index for the contents of an archive,
36- size - list the section sizes of an object or archive file,
37- strings - list printable strings from files,
38- strip - discard symbols,
39- c++filt - a filter for demangling encoded C++ symbols,
40- addr2line - convert addresses to file and line,
41- nlmconv - convert object code into an NLM.
42
037e7e3e 43This package contains the cross version for MIPS Little Endian.
ac115d01 44
18e62fc0
JR
45%description -l pl.UTF-8
46Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
47programów. Znajdują się tutaj między innymi assembler, konsolidator
48(linker), a także inne narzędzia do manipulowania binarnymi plikami
49programów i bibliotek.
ac115d01 50
18e62fc0 51Ten pakiet zawiera wersję skrośną generującą kod dla ostrokońcej (ang.
037e7e3e 52Little Endian) architektury MIPS.
ac115d01
AM
53
54%prep
55%setup -q -n binutils-%{version}
76bed0d8 56%patch0 -p0
ac115d01
AM
57
58%build
76bed0d8 59cp -f /usr/share/automake/config.sub .
b8657567 60
ac115d01 61# ldscripts won't be generated properly if SHELL is not bash...
6f5dc402
JB
62CFLAGS="%{rpmcflags}" \
63LDFLAGS="%{rpmldflags}" \
ac115d01
AM
64CONFIG_SHELL="/bin/bash" \
65%ifarch sparc
66sparc32 \
67%endif
c3680e64
AM
68./configure \
69 --disable-shared \
ac115d01 70 --prefix=%{_prefix} \
b8657567 71 --libdir=%{_libdir} \
ac115d01 72 --mandir=%{_mandir} \
b8657567 73 --infodir=%{_infodir} \
ac115d01
AM
74 --target=%{target}
75
6f5dc402
JB
76%{__make} all \
77 tooldir=%{_prefix} \
78 EXEEXT=""
ac115d01
AM
79
80%install
81rm -rf $RPM_BUILD_ROOT
82install -d $RPM_BUILD_ROOT%{_prefix}
83
cf42aca1 84%{__make} install \
ac115d01 85 prefix=$RPM_BUILD_ROOT%{_prefix} \
b8657567 86 mandir=$RPM_BUILD_ROOT%{_mandir} \
8085b382 87 infodir=$RPM_BUILD_ROOT%{_infodir} \
88 libdir=$RPM_BUILD_ROOT%{_libdir}
ac115d01 89
510f169e 90# remove these man pages unless we cross-build for win*/netware platforms.
91# however, this should be done in Makefiles.
92rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
93
ac115d01
AM
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%files
98%defattr(644,root,root,755)
0134175b 99%doc README
ac115d01 100%attr(755,root,root) %{_bindir}/%{target}-*
c19df1e3 101%dir %{arch}
ea02a881
MM
102%dir %{arch}/bin
103%attr(755,root,root) %{arch}/bin/*
104%dir %{arch}/lib
76bed0d8 105%{arch}/lib/ldscripts
ac115d01 106%{_mandir}/man?/%{target}-*
This page took 0.080652 seconds and 4 git commands to generate.