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