]> git.pld-linux.org Git - packages/binutils.git/blame_incremental - binutils.spec
updated to 2.23.51.0.3 (bugfix for latest mysql/qt build failures).
[packages/binutils.git] / binutils.spec
... / ...
CommitLineData
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 # http://sourceware.org/ml/binutils/2008-03/msg00162.html
6%bcond_without pax # without PaX flags (for upstream bugreports)
7%bcond_without gold # don't build gold (no C++ dependencies)
8%bcond_without default_ld # default ld instead of gold
9%bcond_without tests
10
11%ifnarch %{ix86} %{x8664}
12%undefine with_gold
13%endif
14
15Summary: GNU Binary Utility Development Utilities
16Summary(de.UTF-8): GNU Binary Utility Development Utilities
17Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU
18Summary(fr.UTF-8): Utilitaires de développement binaire de GNU
19Summary(pl.UTF-8): Narzędzia GNU dla programistów
20Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU
21Summary(ru.UTF-8): Набор инструментов GNU для построения исполняемых программ
22Summary(tr.UTF-8): GNU geliştirme araçları
23Summary(uk.UTF-8): Набір інструментів GNU для побудови виконуваних програм
24Name: binutils
25Version: 2.23.51.0.3
26Release: 1
27Epoch: 3
28License: GPL v3+
29Group: Development/Tools
30# http://git.kernel.org/?p=linux/kernel/git/hjl/binutils.git;a=summary
31# git archive --prefix=binutils-2.22.51.0.1/ -o binutils-2.22.51.0.1.tar remotes/origin/linux/release/2.22.51.0.1
32Source0: http://www.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
33# Source0-md5: 0f81033f89158111aeaf60e528a8dfd6
34Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
35# Source1-md5: a717d9707ec77d82acb6ec9078c472d6
36Patch0: %{name}-gasp.patch
37Patch1: %{name}-info.patch
38Patch2: %{name}-libtool-relink.patch
39Patch3: %{name}-pt_pax_flags.patch
40Patch5: %{name}-discarded.patch
41Patch6: %{name}-absolute-gnu_debuglink-path.patch
42Patch7: %{name}-libtool-m.patch
43Patch8: %{name}-build-id.patch
44Patch9: %{name}-tooldir.patch
45Patch10: %{name}-sanity-check.patch
46URL: http://sources.redhat.com/binutils/
47BuildRequires: autoconf >= 2.64
48BuildRequires: automake >= 1:1.11
49BuildRequires: bison
50BuildRequires: flex
51BuildRequires: gettext-devel
52%{?with_gold:BuildRequires: libstdc++-devel >= 6:4.0-1}
53%{?with_tests:BuildRequires: libstdc++-static >= 6:4.0}
54BuildRequires: perl-tools-pod
55%ifarch sparc sparc32
56BuildRequires: sparc32
57%endif
58BuildRequires: texinfo >= 4.2
59BuildRequires: zlib-devel
60%{?with_tests:BuildRequires: zlib-static}
61Conflicts: gcc-c++ < 5:3.3
62Conflicts: modutils < 2.4.17
63Obsoletes: binutils-gold
64BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65
66%description
67Binutils is a collection of binary utilities, including:
68- ar - create, modify and extract from archives,
69- nm - lists symbols from object files,
70- objcopy - copy and translate object files,
71- objdump - display information from object files,
72- ranlib - generate an index for the contents of an archive,
73- size - list the section sizes of an object or archive file,
74- strings - list printable strings from files,
75- strip - discard symbols,
76- addr2line - convert addresses to file and line,
77- nlmconv - convert object code into an NLM.
78
79%description -l es.UTF-8
80Binutils es una colección de utilitarios necesarios para compilar
81programas. Incluye assembler y linker, así como varios otros programas
82para trabajar con formatos que se puedan ejecutar.
83
84%description -l pl.UTF-8
85Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
86programów. Znajdują się tutaj między innymi assembler, konsolidator
87(linker), a także inne narzędzia do manipulowania binarnymi plikami
88programów i bibliotek.
89
90%description -l pt_BR.UTF-8
91binutils é uma coletânea de utilitários necessários para compilar
92programas. Inclui assembler e linker, assim como vários outros
93programas para trabalhar com formatos executáveis.
94
95%description -l ru.UTF-8
96binutils - это набор инструментов, необходимых для компилляции
97программ. Включает ассемблер, компоновщик и набор других программ для
98работы с исполняемыми файлами разнообразных форматов.
99
100%description -l uk.UTF-8
101binutils - це набір інструментів, необхідних для компіляції програм.
102Містить асемблер, компоновщик та інші програми, необхідні для роботи з
103виконуваними файлами різних форматів.
104
105%package libs
106Summary: GNU binutils shared libraries
107Summary(pl.UTF-8): Biblioteki współdzielone GNU binutils
108Group: Libraries
109Conflicts: binutils < 3:2.17.50.0.8-3
110
111%description libs
112GNU binutils shared libraries (libbfd, libopcodes).
113
114%description libs -l pl.UTF-8
115Biblioteki współdzielone GNU binutils (libbfd, libopcodes).
116
117%package devel
118Summary: Development files for GNU binutils libraries
119Summary(pl.UTF-8): Pliki programistyczne bibliotek GNU binutils
120Group: Development/Libraries
121Requires: %{name}-libs = %{epoch}:%{version}-%{release}
122
123%description devel
124Development files for GNU binutils libraries (libbfd, libopcodes) and
125static libiberty library.
126
127%description devel -l pl.UTF-8
128Pliki programistyczne bibliotek GNU binutils (libbfd, libopcodes) oraz
129statyczna biblioteka libiberty.
130
131%package static
132Summary: GNU binutils static libraries
133Summary(pl.UTF-8): Biblioteki statyczne do GNU binutils
134Group: Development/Libraries
135Requires: %{name}-devel = %{epoch}:%{version}-%{release}
136#Requires: zlib-static
137
138%description static
139Static GNU binutils libraries (libbfd, libopcodes).
140
141%description static -l pl.UTF-8
142Biblioteki statyczne GNU binutils (libbfd, libopcodes).
143
144%package gasp
145Summary: GASP - old preprocessor for assembly programs
146Summary(pl.UTF-8): GASP - stary preprocesor dla programów w asemblerze
147Group: Development/Tools
148Requires: %{name} = %{epoch}:%{version}-%{release}
149
150%description gasp
151GASP - old preprocessor for assembly programs. It's officially
152obsoleted, but it's still needed to build some packages.
153
154%description gasp -l pl.UTF-8
155GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
156uznany za przestarzały, ale jest nadal potrzebny do zbudowania
157niektórych pakietów.
158
159%prep
160%setup -q
161%patch0 -p1
162%patch1 -p1
163%patch2 -p1
164%{?with_pax:%patch3 -p1}
165%patch5 -p1
166%patch6 -p1
167%patch7 -p1
168%patch8 -p0
169%patch9 -p1
170%patch10 -p1
171
172# file contains hacks for ac 2.59 only
173%{__rm} config/override.m4
174
175%build
176%{__aclocal}
177%{__autoconf}
178
179# non-standard regeneration (needed because of gasp patch)
180# AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4
181for dir in gas bfd; do
182 cd $dir || exit 1
183 %{__aclocal} -I .. -I ../config -I ../bfd
184 %{__automake} Makefile
185 %{__automake} doc/Makefile
186 %{__autoconf}
187 cd ..
188done
189
190# More targets
191TARGETS=
192%ifarch ia64
193TARGETS=i686-linux
194%endif
195# uhm?
196%ifarch %{ix86}
197TARGETS=x86_64-linux
198%endif
199%ifarch sparc
200TARGETS=sparc64-linux
201%endif
202%{?addtargets:TARGETS="%{addtargets}"}
203
204cp -f /usr/share/automake/config.* .
205CFLAGS="%{rpmcflags}"; export CFLAGS
206CXXFLAGS="%{rpmcxxflags}"; export CXXFLAGS
207CC="%{__cc}"; export CC
208CXX="%{__cxx}"; export CXX
209%ifarch sparc
210sparc32 \
211%endif
212./configure %{_target_platform} \
213 --disable-debug \
214 --disable-werror \
215 --enable-build-warnings=,-Wno-missing-prototypes \
216 --enable-shared \
217 --enable-lto \
218 --enable-plugins \
219 --with-zlib=yes \
220 --prefix=%{_prefix} \
221 --libdir=%{_libdir} \
222 --infodir=%{_infodir} \
223 --mandir=%{_mandir} \
224 --with-tooldir=%{_prefix} \
225 %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
226%ifarch sparc
227 --enable-64-bit-bfd \
228%else
229 %{?with_allarchs:--enable-64-bit-bfd} \
230%endif
231 %{?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} \
232%if %{with gold}
233 --enable-gold%{!?with_default_ld:=default} --enable-ld%{?with_default_ld:=default} \
234%endif
235
236%{__make} -j1
237
238%{?with_tests:%{__make} -j1 check}
239
240%install
241rm -rf $RPM_BUILD_ROOT
242
243%{__make} install \
244 DESTDIR=$RPM_BUILD_ROOT
245
246%{__rm} $RPM_BUILD_ROOT%{_infodir}/standards.info*
247
248# remove these man pages unless we cross-build for win*/netware platforms.
249# however, this should be done in Makefiles.
250%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
251
252bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
253
254cp -p include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
255cp -p libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir}
256
257# remove evil -L pointing inside builder's home
258perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
259
260[ -x $RPM_BUILD_ROOT%{_bindir}/ld.bfd ] || ln $RPM_BUILD_ROOT%{_bindir}/ld{,.bfd}
261
262rm -f $RPM_BUILD_ROOT%{_infodir}/dir
263
264%find_lang bfd
265%find_lang binutils
266%find_lang gas
267%find_lang gprof
268touch ld.lang gold.lang
269%find_lang ld
270%if %{with gold}
271%find_lang gold
272%endif
273%find_lang opcodes
274cat bfd.lang opcodes.lang > %{name}-libs.lang
275cat gas.lang gprof.lang ld.lang gold.lang >> %{name}.lang
276
277%clean
278rm -rf $RPM_BUILD_ROOT
279
280%post -p /sbin/postshell
281-/usr/sbin/fix-info-dir -c %{_infodir}
282
283%postun -p /sbin/postshell
284-/usr/sbin/fix-info-dir -c %{_infodir}
285
286%post libs -p /sbin/ldconfig
287%postun libs -p /sbin/ldconfig
288
289%post devel -p /sbin/postshell
290-/usr/sbin/fix-info-dir -c %{_infodir}
291
292%postun devel -p /sbin/postshell
293-/usr/sbin/fix-info-dir -c %{_infodir}
294
295%files -f %{name}.lang
296%defattr(644,root,root,755)
297%doc README
298%{?with_gold:%doc gold/{ChangeLog,README,TODO}}
299%attr(755,root,root) %{_bindir}/addr2line
300%attr(755,root,root) %{_bindir}/ar
301%attr(755,root,root) %{_bindir}/as
302%attr(755,root,root) %{_bindir}/c++filt
303%attr(755,root,root) %{_bindir}/elfedit
304%attr(755,root,root) %{_bindir}/gprof
305%attr(755,root,root) %{_bindir}/ld
306%attr(755,root,root) %{_bindir}/ld.bfd
307%if %{with gold}
308%attr(755,root,root) %{_bindir}/ld.gold
309%endif
310%attr(755,root,root) %{_bindir}/nm
311%attr(755,root,root) %{_bindir}/objcopy
312%attr(755,root,root) %{_bindir}/objdump
313%attr(755,root,root) %{_bindir}/ranlib
314%attr(755,root,root) %{_bindir}/readelf
315%attr(755,root,root) %{_bindir}/size
316%attr(755,root,root) %{_bindir}/strings
317%attr(755,root,root) %{_bindir}/strip
318%{_infodir}/as.info*
319%{_infodir}/binutils.info*
320%{_infodir}/configure.info*
321%{_infodir}/gprof.info*
322%{_infodir}/ld.info*
323%{_prefix}/lib/ldscripts
324%{_mandir}/man1/*
325%lang(cs) %{_mandir}/cs/man1/*
326%lang(de) %{_mandir}/de/man1/*
327%lang(es) %{_mandir}/es/man1/*
328%lang(fi) %{_mandir}/fi/man1/*
329%lang(fr) %{_mandir}/fr/man1/*
330%lang(hu) %{_mandir}/hu/man1/*
331%lang(ja) %{_mandir}/ja/man1/*
332%lang(pl) %{_mandir}/pl/man1/*
333
334%files libs -f %{name}-libs.lang
335%defattr(644,root,root,755)
336%attr(755,root,root) %{_libdir}/libbfd-*.so
337%attr(755,root,root) %{_libdir}/libopcodes-*.so
338
339%files devel
340%defattr(644,root,root,755)
341%attr(755,root,root) %{_libdir}/libbfd.so
342%attr(755,root,root) %{_libdir}/libopcodes.so
343%{_libdir}/libbfd.la
344%{_libdir}/libopcodes.la
345%{_libdir}/libiberty.a
346%{_includedir}/ansidecl.h
347%{_includedir}/bfd.h
348%{_includedir}/bfdlink.h
349%{_includedir}/dis-asm.h
350%{_includedir}/libiberty.h
351%{_includedir}/plugin-api.h
352%{_includedir}/symcat.h
353%{_infodir}/bfd.info*
354
355%files static
356%defattr(644,root,root,755)
357%{_libdir}/libbfd.a
358%{_libdir}/libopcodes.a
359
360%files gasp
361%defattr(644,root,root,755)
362%attr(755,root,root) %{_bindir}/gasp
363%{_infodir}/gasp.info*
This page took 0.050056 seconds and 4 git commands to generate.