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