]> git.pld-linux.org Git - packages/crosssparc-binutils.git/blob - crosssparc-binutils.spec
- sparc is excluded
[packages/crosssparc-binutils.git] / crosssparc-binutils.spec
1 Summary:        Cross SPARC GNU binary utility development utilities - binutils
2 Summary(es):    Utilitarios para desarrollo de binarios de la GNU - SPARC binutils
3 Summary(fr):    Utilitaires de développement binaire de GNU - SPARC binutils
4 Summary(pl):    Skro¶ne narzêdzia programistyczne GNU dla SPARC - binutils
5 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - SPARC binutils
6 Summary(tr):    GNU geliþtirme araçlarý - SPARC binutils
7 Name:           crosssparc-binutils
8 Version:        2.15.90.0.3
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  1c1af0064ebd3d7bd99905874656a21e
14 URL:            http://sources.redhat.com/binutils/
15 BuildRequires:  bash
16 BuildRequires:  bison
17 BuildRequires:  flex
18 BuildRequires:  perl-devel
19 %ifarch sparc32
20 BuildRequires:  sparc32
21 %endif
22 ExcludeArch:    sparc sparcv9
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         target          sparc-pld-linux
26 %define         arch            %{_prefix}/%{target}
27
28 %description
29 Binutils is a collection of binary utilities, including:
30 - ar - create, modify and extract from archives,
31 - nm - lists symbols from object files,
32 - objcopy - copy and translate object files,
33 - objdump - display information from object files,
34 - ranlib - generate an index for the contents of an archive,
35 - size - list the section sizes of an object or archive file,
36 - strings - list printable strings from files,
37 - strip - discard symbols,
38 - c++filt - a filter for demangling encoded C++ symbols,
39 - addr2line - convert addresses to file and line,
40 - nlmconv - convert object code into an NLM.
41
42 This package contains the cross version for SPARC.
43
44 %description -l pl
45 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
46 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
47 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
48 programów i bibliotek.
49
50 Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla SPARC.
51
52 %prep
53 %setup -q -n binutils-%{version}
54
55 %build
56 # ldscripts won't be generated properly if SHELL is not bash...
57 CFLAGS="%{rpmcflags}" \
58 LDFLAGS="%{rpmldflags}" \
59 CONFIG_SHELL="/bin/bash" \
60 ./configure \
61         --disable-shared \
62         --prefix=%{_prefix} \
63         --infodir=%{_infodir} \
64         --mandir=%{_mandir} \
65         --target=%{target}
66
67 %{__make} all \
68         tooldir=%{_prefix} \
69         EXEEXT=""
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_prefix}
74
75 %{__make} install \
76         prefix=$RPM_BUILD_ROOT%{_prefix} \
77         mandir=$RPM_BUILD_ROOT%{_mandir} \
78         infodir=$RPM_BUILD_ROOT%{_infodir}
79
80 # remove these man pages unless we cross-build for win*/netware platforms.
81 # however, this should be done in Makefiles.
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files
88 %defattr(644,root,root,755)
89 %doc README
90 %attr(755,root,root) %{_bindir}/%{target}-*
91 %dir %{arch}/bin
92 %attr(755,root,root) %{arch}/bin/*
93 %dir %{arch}/lib
94 %dir %{arch}/lib/*
95 %{arch}/lib/ldscripts/*
96 %{_mandir}/man?/%{target}-*
This page took 0.092153 seconds and 4 git commands to generate.