]> git.pld-linux.org Git - packages/crosssparc64-binutils.git/blob - crosssparc64-binutils.spec
- switch to gnu binutils and update to 2.26.1
[packages/crosssparc64-binutils.git] / crosssparc64-binutils.spec
1 Summary:        Cross SPARC64 GNU binary utility development utilities - binutils
2 Summary(es.UTF-8):      Utilitarios para desarrollo de binarios de la GNU - SPARC64 binutils
3 Summary(fr.UTF-8):      Utilitaires de développement binaire de GNU - SPARC64 binutils
4 Summary(pl.UTF-8):      Skrośne narzędzia programistyczne GNU dla SPARC64 - binutils
5 Summary(pt_BR.UTF-8):   Utilitários para desenvolvimento de binários da GNU - SPARC64 binutils
6 Summary(tr.UTF-8):      GNU geliştirme araçları - SPARC64 binutils
7 Name:           crosssparc64-binutils
8 Version:        2.26.1
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  d2b24e5b5301b7ff0207414c34c3e0fb
14 URL:            http://sources.redhat.com/binutils/
15 BuildRequires:  automake
16 BuildRequires:  bash
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gettext-tools
20 %ifarch sparc
21 BuildRequires:  sparc32
22 %endif
23 ExcludeArch:    sparc64
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         target          sparc64-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 SPARC64.
44
45 %description -l pl.UTF-8
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 SPARC64.
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} -fno-strict-aliasing" \
61 LDFLAGS="%{rpmldflags}" \
62 CONFIG_SHELL="/bin/bash" \
63 %ifarch sparc
64 sparc32 \
65 %endif
66 ./configure \
67         --disable-shared \
68         --disable-nls \
69         --prefix=%{_prefix} \
70         --libdir=%{_libdir} \
71         --mandir=%{_mandir} \
72         --infodir=%{_infodir} \
73         --enable-64-bit-bfd \
74         --target=%{target}
75
76 %{__make} all \
77         tooldir=%{_prefix} \
78         EXEEXT=""
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_prefix}
83
84 %{__make} install \
85         INSTALL='$$s/install-sh -c' \
86         prefix=$RPM_BUILD_ROOT%{_prefix} \
87         mandir=$RPM_BUILD_ROOT%{_mandir} \
88         infodir=$RPM_BUILD_ROOT%{_infodir} \
89         libdir=$RPM_BUILD_ROOT%{_libdir}
90
91 # remove these man pages unless we cross-build for win*/netware platforms.
92 # however, this should be done in Makefiles.
93 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %doc README
101 %attr(755,root,root) %{_bindir}/%{target}-*
102 %dir %{arch}
103 %dir %{arch}/bin
104 %attr(755,root,root) %{arch}/bin/*
105 %dir %{arch}/lib
106 %dir %{arch}/lib/*
107 %{arch}/lib/ldscripts/*
108 %{_mandir}/man?/%{target}-*
This page took 0.092509 seconds and 4 git commands to generate.