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