]> git.pld-linux.org Git - packages/crosssparc-binutils.git/blob - crosssparc-binutils.spec
- 2.15.91.0.1
[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.91.0.1
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:  automake
16 BuildRequires:  bash
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gettext-devel
20 %ifarch sparc32
21 BuildRequires:  sparc32
22 %endif
23 ExcludeArch:    sparc sparcv9
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         target          sparc-pld-linux
27 %define         arch            %{_prefix}/%{target}
28
29 %description
30 Binutils 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
43 This package contains the cross version for SPARC.
44
45 %description -l pl
46 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
47 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
48 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
49 programów i bibliotek.
50
51 Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla SPARC.
52
53 %prep
54 %setup -q -n binutils-%{version}
55
56 %build
57 cp /usr/share/automake/config.sub .
58
59 # ldscripts won't be generated properly if SHELL is not bash...
60 CFLAGS="%{rpmcflags}" \
61 LDFLAGS="%{rpmldflags}" \
62 CONFIG_SHELL="/bin/bash" \
63 %ifarch sparc
64 sparc32 \
65 %endif
66 ./configure \
67         --disable-shared \
68         --prefix=%{_prefix} \
69         --libdir=%{_libdir} \
70         --mandir=%{_mandir} \
71         --infodir=%{_infodir} \
72         --target=%{target}
73
74 %{__make} all \
75         tooldir=%{_prefix} \
76         EXEEXT=""
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_prefix}
81
82 %{__make} install \
83         prefix=$RPM_BUILD_ROOT%{_prefix} \
84         mandir=$RPM_BUILD_ROOT%{_mandir} \
85         infodir=$RPM_BUILD_ROOT%{_infodir}
86
87 # remove these man pages unless we cross-build for win*/netware platforms.
88 # however, this should be done in Makefiles.
89 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc README
97 %attr(755,root,root) %{_bindir}/%{target}-*
98 %dir %{arch}/bin
99 %attr(755,root,root) %{arch}/bin/*
100 %dir %{arch}/lib
101 %dir %{arch}/lib/*
102 %{arch}/lib/ldscripts/*
103 %{_mandir}/man?/%{target}-*
This page took 0.353004 seconds and 3 git commands to generate.