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