]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
- rel 2
[packages/binutils.git] / binutils.spec
1 #
2 # Conditional build:
3 %bcond_with     allarchs        # enable all targets
4 # define addtargets x,y,z       # build with additional targets x,y,z (e.g. x86_64-linux)
5 #
6 Summary:        GNU Binary Utility Development Utilities
7 Summary(de):    GNU Binary Utility Development Utilities
8 Summary(es):    Utilitarios para desarrollo de binarios de la GNU
9 Summary(fr):    Utilitaires de développement binaire de GNU
10 Summary(pl):    Narzêdzia GNU dla programistów
11 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU
12 Summary(ru):    îÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ× GNU ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÉÓÐÏÌÎÑÅÍÙÈ ÐÒÏÇÒÁÍÍ
13 Summary(tr):    GNU geliþtirme araçlarý
14 Summary(uk):    îÁ¦Ҡ¦ÎÓÔÒÕÍÅÎԦנGNU ÄÌÑ ÐÏÂÕÄÏ×É ×ÉËÏÎÕ×ÁÎÉÈ ÐÒÏÇÒÁÍ
15 Name:           binutils
16 Version:        2.16.91.0.2
17 Release:        2
18 Epoch:          2
19 License:        GPL
20 Group:          Development/Tools
21 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
22 # Source0-md5:  bf01e3151b4cd74f2d52871fbc297215
23 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
24 # Source1-md5:  a717d9707ec77d82acb6ec9078c472d6
25 Patch0:         %{name}-gasp.patch
26 Patch1:         %{name}-info.patch
27 Patch2:         %{name}-libtool-relink.patch
28 Patch3:         %{name}-pt_pax_flags.patch
29 Patch4:         %{name}-mips-relocs.patch
30 Patch5:         %{name}-flex.patch
31 URL:            http://sources.redhat.com/binutils/
32 BuildRequires:  autoconf >= 2.59
33 BuildRequires:  automake >= 1:1.8.2
34 BuildRequires:  bison
35 BuildRequires:  flex
36 BuildRequires:  gettext-devel
37 BuildRequires:  perl-tools-pod
38 %ifarch sparc sparc32
39 BuildRequires:  sparc32
40 %endif
41 BuildRequires:  texinfo >= 4.2
42 Requires(post,postun):  /sbin/ldconfig
43 Conflicts:      gcc-c++ < 5:3.3
44 Conflicts:      modutils < 2.4.17
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Binutils is a collection of binary utilities, including:
49 - ar - create, modify and extract from archives,
50 - nm - lists symbols from object files,
51 - objcopy - copy and translate object files,
52 - objdump - display information from object files,
53 - ranlib - generate an index for the contents of an archive,
54 - size - list the section sizes of an object or archive file,
55 - strings - list printable strings from files,
56 - strip - discard symbols,
57 - addr2line - convert addresses to file and line,
58 - nlmconv - convert object code into an NLM.
59
60 %description -l es
61 Binutils es una colección de utilitarios necesarios para compilar
62 programas. Incluye assembler y linker, así como varios otros programas
63 para trabajar con formatos que se puedan ejecutar.
64
65 %description -l pl
66 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
67 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
68 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
69 programów i bibliotek.
70
71 %description -l pt_BR
72 binutils é uma coletânea de utilitários necessários para compilar
73 programas. Inclui assembler e linker, assim como vários outros
74 programas para trabalhar com formatos executáveis.
75
76 %description -l ru
77 binutils - ÜÔÏ ÎÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ËÏÍÐÉÌÌÑÃÉÉ
78 ÐÒÏÇÒÁÍÍ. ÷ËÌÀÞÁÅÔ ÁÓÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË É ÎÁÂÏÒ ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ ÄÌÑ
79 ÒÁÂÏÔÙ Ó ÉÓÐÏÌÎÑÅÍÙÍÉ ÆÁÊÌÁÍÉ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×.
80
81 %description -l uk
82 binutils - ÃÅ ÎÁ¦Ҡ¦ÎÓÔÒÕÍÅÎÔ¦×, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÍЦÌÑ槠ÐÒÏÇÒÁÍ.
83 í¦ÓÔÉÔØ ÁÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ Ú
84 ×ÉËÏÎÕ×ÁÎÉÍÉ ÆÁÊÌÁÍÉ Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×.
85
86 %package static
87 Summary:        GNU Binutils static libraries
88 Summary(pl):    Biblioteki statyczne do GNU Binutils
89 Group:          Development/Libraries
90 Requires:       %{name} = %{epoch}:%{version}-%{release}
91
92 %description static
93 Static libraries for GNU Binutils.
94
95 %description static -l pl
96 Biblioteki statyczne GNU Binutils.
97
98 %package gasp
99 Summary:        GASP - old preprocessor for assembly programs
100 Summary(pl):    GASP - stary preprocesor dla programów w asemblerze
101 Group:          Development/Tools
102 Requires:       %{name} = %{epoch}:%{version}-%{release}
103
104 %description gasp
105 GASP - old preprocessor for assembly programs. It's officially
106 obsoleted, but it's still needed to build some packages.
107
108 %description gasp -l pl
109 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
110 uznany za przestarza³y, ale jest nadal potrzebny do zbudowania
111 niektórych pakietów.
112
113 %prep
114 %setup -q
115 %patch0 -p1
116 %patch1 -p1
117 %patch2 -p1
118 %patch3 -p1
119 %patch4 -p0
120 %patch5 -p1
121
122 %build
123 # non-standard regeneration (needed because of gasp patch)
124 cd gas
125 aclocal
126 automake --cygnus Makefile
127 automake --cygnus doc/Makefile
128 autoconf
129 cd ..
130
131 # More targets
132 TARGETS=
133 %ifarch ia64
134 TARGETS=i686-linux
135 %endif
136 # uhm?
137 %ifarch %{ix86}
138 TARGETS=x86_64-linux
139 %endif
140 %ifarch sparc
141 TARGETS=sparc64-linux
142 %endif
143 %{?addtargets:TARGETS="%{addtargets}"}
144
145 cp -f /usr/share/automake/config.* .
146 CFLAGS="%{rpmcflags}"; export CFLAGS
147 CC="%{__cc}"; export CC
148 %ifarch sparc
149 sparc32 \
150 %endif
151 ./configure %{_target_platform} \
152         --disable-debug \
153         --enable-build-warnings=,-Wno-missing-prototypes \
154         --enable-shared \
155         --prefix=%{_prefix} \
156         --libdir=%{_libdir} \
157         --infodir=%{_infodir} \
158         --mandir=%{_mandir} \
159         --disable-werror \
160         %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
161 %ifarch sparc
162         --enable-64-bit-bfd \
163 %else
164         %{?with_allarchs:--enable-64-bit-bfd} \
165 %endif
166         %{?with_allarchs:--enable-targets=alpha-linux,arm-linux,cris-linux,hppa-linux,i386-linux,ia64-linux,x86_64-linux,m68k-linux,mips-linux,mips64-linux,mips64el-linux,mipsel-linux,ppc-linux,s390-linux,s390x-linux,sh-linux,sparc-linux,sparc64-linux,i386-linuxaout}
167
168 %{__make} configure-bfd
169 %{__make} headers -C bfd
170 %{__make} all info \
171         tooldir=%{_prefix}
172
173 %install
174 rm -rf $RPM_BUILD_ROOT
175
176 %{__make} install install-info \
177         prefix=$RPM_BUILD_ROOT%{_prefix} \
178         tooldir=$RPM_BUILD_ROOT%{_prefix} \
179         mandir=$RPM_BUILD_ROOT%{_mandir} \
180         infodir=$RPM_BUILD_ROOT%{_infodir} \
181         includedir=$RPM_BUILD_ROOT%{_includedir} \
182         libdir=$RPM_BUILD_ROOT%{_libdir}
183
184 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
185
186 # remove these man pages unless we cross-build for win*/netware platforms.
187 # however, this should be done in Makefiles.
188 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
189
190 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
191
192 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
193 install libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir}
194
195 # remove evil -L pointing inside builder's home
196 perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
197
198 %find_lang %{name} --all-name
199
200 %clean
201 rm -rf $RPM_BUILD_ROOT
202
203 %post
204 /sbin/ldconfig
205 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
206
207 %postun
208 /sbin/ldconfig
209 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
210
211 %files -f %{name}.lang
212 %defattr(644,root,root,755)
213 %doc README
214 %attr(755,root,root) %{_bindir}/[!g]*
215 %attr(755,root,root) %{_bindir}/g[!a]*
216 %attr(755,root,root) %{_libdir}/*.so
217 %{_libdir}/libiberty.a
218 %{_libdir}/lib*.la
219
220 %{_prefix}/lib/ldscripts
221 %{_includedir}/*.h
222
223 %{_infodir}/[!g]*.info*
224 %{_infodir}/g[!a]*.info*
225 %{_mandir}/man1/*
226 %lang(cs) %{_mandir}/cs/man1/*
227 %lang(de) %{_mandir}/de/man1/*
228 %lang(es) %{_mandir}/es/man1/*
229 %lang(fi) %{_mandir}/fi/man1/*
230 %lang(fr) %{_mandir}/fr/man1/*
231 %lang(hu) %{_mandir}/hu/man1/*
232 %lang(ja) %{_mandir}/ja/man1/*
233 %lang(pl) %{_mandir}/pl/man1/*
234
235 %files static
236 %defattr(644,root,root,755)
237 %{_libdir}/lib[!i]*.a
238
239 %files gasp
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/gasp
242 %{_infodir}/gasp.info*
This page took 0.039837 seconds and 4 git commands to generate.