]>
Commit | Line | Data |
---|---|---|
baf235c6 | 1 | # TODO: PR/26302 <https://sourceware.org/bugzilla/show_bug.cgi?id=26302> (breaks kernel-tools build) |
c5304b32 | 2 | # |
501f7670 JB |
3 | # Conditional build: |
4 | %bcond_with allarchs # enable all targets | |
5 | # define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux) | |
a3e16156 | 6 | # http://sourceware.org/ml/binutils/2008-03/msg00162.html |
46bb8853 | 7 | %bcond_with pax # without PaX flags (for upstream bugreports) |
a18955a2 | 8 | %bcond_without gold # don't build gold (no C++ dependencies) |
93de8f98 | 9 | %bcond_without default_bfd # default ld.bfd instead of gold |
525cade6 | 10 | %bcond_without debuginfod # debuginfo lokups with debuginfod |
4a5e8616 JP |
11 | %bcond_with gasp # gasp |
12 | %bcond_without gprofng # gprofng | |
13 | %bcond_without jansson # Package Metadata embedding support | |
14 | %bcond_without msgpack # msgpack support | |
62302ee6 | 15 | %bcond_with tests # check target |
a18955a2 | 16 | |
9d4c03c0 | 17 | %ifnarch %{ix86} %{x8664} x32 aarch64 %{arm} |
a18955a2 ER |
18 | %undefine with_gold |
19 | %endif | |
b27362de JP |
20 | %ifarch %{arm} |
21 | %undefine with_gasp | |
22 | %endif | |
4a5e8616 JP |
23 | %ifnarch %{ix86} %{x8664} aarch64 |
24 | %undefine with_gprofng 1 | |
25 | %endif | |
a18955a2 | 26 | |
58a689fe | 27 | Summary: GNU Binary Utility Development Utilities |
ceb5138c ER |
28 | Summary(de.UTF-8): GNU Binary Utility Development Utilities |
29 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU | |
30 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU | |
31 | Summary(pl.UTF-8): Narzędzia GNU dla programistów | |
32 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU | |
33 | Summary(ru.UTF-8): Набор инструментов GNU для построения исполняемых программ | |
34 | Summary(tr.UTF-8): GNU geliştirme araçları | |
35 | Summary(uk.UTF-8): Набір інструментів GNU для побудови виконуваних програм | |
58a689fe | 36 | Name: binutils |
4a5e8616 | 37 | Version: 2.39 |
6061979e | 38 | Release: 3 |
d4e8849a | 39 | Epoch: 4 |
0f5b7b0a | 40 | License: GPL v3+ |
58a689fe | 41 | Group: Development/Tools |
497cb22d | 42 | Source0: https://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.lz |
4a5e8616 | 43 | # Source0-md5: 061a1460a09cc71e51886c008be55d44 |
ab9f8866 | 44 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
e866ad8f | 45 | # Source1-md5: a717d9707ec77d82acb6ec9078c472d6 |
2859501d | 46 | Patch0: %{name}-gasp.patch |
f0309959 | 47 | Patch1: %{name}-info.patch |
fb2b373b JB |
48 | Patch2: %{name}-libtool-relink.patch |
49 | Patch3: %{name}-pt_pax_flags.patch | |
b6853af5 | 50 | |
3ecba8d9 AM |
51 | Patch6: %{name}-absolute-gnu_debuglink-path.patch |
52 | Patch7: %{name}-libtool-m.patch | |
3ecba8d9 | 53 | Patch9: %{name}-tooldir.patch |
cb066d97 | 54 | Patch10: %{name}-sanity-check.patch |
6061979e | 55 | Patch11: pr29451.patch |
57d29c3f | 56 | URL: http://www.sourceware.org/binutils/ |
6520cf64 | 57 | BuildRequires: autoconf >= 2.69 |
08f839ed | 58 | BuildRequires: automake >= 1:1.11 |
92b879dd | 59 | BuildRequires: bison |
525cade6 | 60 | %{?with_debuginfod:BuildRequires: elfutils-debuginfod-devel >= 0.179} |
4770b19c | 61 | BuildRequires: flex |
0d071cd5 | 62 | BuildRequires: gettext-tools |
4a5e8616 | 63 | %{?with_jansson:BuildRequires: jansson-devel} |
a18955a2 | 64 | %{?with_gold:BuildRequires: libstdc++-devel >= 6:4.0-1} |
31c98541 | 65 | %{?with_tests:BuildRequires: libstdc++-static >= 6:4.0} |
fdba1a35 | 66 | BuildRequires: lzip |
4a5e8616 | 67 | %{?with_msgpack:BuildRequires: msgpack-devel} |
3aee031d | 68 | BuildRequires: perl-tools-pod |
4a5e8616 JP |
69 | BuildRequires: pkgconfig |
70 | BuildRequires: rpmbuild(macros) >= 1.527 | |
c1a8e558 | 71 | %ifarch sparc sparc32 |
72 | BuildRequires: sparc32 | |
73 | %endif | |
3bc4b8d1 | 74 | BuildRequires: tar >= 1:1.22 |
e6b8978d | 75 | BuildRequires: texinfo >= 4.2 |
d9b61f00 | 76 | BuildRequires: zlib-devel |
5905b48e | 77 | %{?with_tests:BuildRequires: zlib-static} |
27abc1a6 | 78 | %{?with_debuginfod:Requires: elfutils-debuginfod-libs >= 0.179} |
74cc5371 | 79 | Conflicts: gcc-c++ < 5:3.3 |
bc650d31 | 80 | Conflicts: modutils < 2.4.17 |
98051ac9 | 81 | Conflicts: rpmbuild(macros) < 1.660 |
08d99624 | 82 | Obsoletes: binutils-gold |
59f56279 | 83 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1928db7d | 84 | |
85 | %description | |
948596dc | 86 | Binutils is a collection of binary utilities, including: |
87 | - ar - create, modify and extract from archives, | |
88 | - nm - lists symbols from object files, | |
89 | - objcopy - copy and translate object files, | |
90 | - objdump - display information from object files, | |
91 | - ranlib - generate an index for the contents of an archive, | |
92 | - size - list the section sizes of an object or archive file, | |
93 | - strings - list printable strings from files, | |
94 | - strip - discard symbols, | |
34f46dd1 | 95 | - addr2line - convert addresses to file and line. |
1928db7d | 96 | |
0c3d68f2 JR |
97 | %description -l es.UTF-8 |
98 | Binutils es una colección de utilitarios necesarios para compilar | |
99 | programas. Incluye assembler y linker, así como varios otros programas | |
eaa0ca5c | 100 | para trabajar con formatos que se puedan ejecutar. |
101 | ||
0c3d68f2 JR |
102 | %description -l pl.UTF-8 |
103 | Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację | |
104 | programów. Znajdują się tutaj między innymi assembler, konsolidator | |
105 | (linker), a także inne narzędzia do manipulowania binarnymi plikami | |
106 | programów i bibliotek. | |
1928db7d | 107 | |
0c3d68f2 JR |
108 | %description -l pt_BR.UTF-8 |
109 | binutils é uma coletânea de utilitários necessários para compilar | |
110 | programas. Inclui assembler e linker, assim como vários outros | |
111 | programas para trabalhar com formatos executáveis. | |
54b53cb0 | 112 | |
0c3d68f2 JR |
113 | %description -l ru.UTF-8 |
114 | binutils - это набор инструментов, необходимых для компилляции | |
115 | программ. Включает ассемблер, компоновщик и набор других программ для | |
116 | работы с исполняемыми файлами разнообразных форматов. | |
c5304b32 | 117 | |
0c3d68f2 JR |
118 | %description -l uk.UTF-8 |
119 | binutils - це набір інструментів, необхідних для компіляції програм. | |
120 | Містить асемблер, компоновщик та інші програми, необхідні для роботи з | |
121 | виконуваними файлами різних форматів. | |
c5304b32 | 122 | |
49b19461 JB |
123 | %package libs |
124 | Summary: GNU binutils shared libraries | |
ceb5138c | 125 | Summary(pl.UTF-8): Biblioteki współdzielone GNU binutils |
49b19461 | 126 | Group: Libraries |
40e06b51 | 127 | Conflicts: binutils < 3:2.17.50.0.8-3 |
49b19461 JB |
128 | |
129 | %description libs | |
130 | GNU binutils shared libraries (libbfd, libopcodes). | |
131 | ||
0c3d68f2 JR |
132 | %description libs -l pl.UTF-8 |
133 | Biblioteki współdzielone GNU binutils (libbfd, libopcodes). | |
49b19461 JB |
134 | |
135 | %package devel | |
136 | Summary: Development files for GNU binutils libraries | |
ceb5138c | 137 | Summary(pl.UTF-8): Pliki programistyczne bibliotek GNU binutils |
49b19461 JB |
138 | Group: Development/Libraries |
139 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
140 | ||
141 | %description devel | |
5516fb05 ER |
142 | Development files for GNU binutils libraries (libbfd, libopcodes) and |
143 | static libiberty library. | |
49b19461 | 144 | |
0c3d68f2 | 145 | %description devel -l pl.UTF-8 |
49b19461 JB |
146 | Pliki programistyczne bibliotek GNU binutils (libbfd, libopcodes) oraz |
147 | statyczna biblioteka libiberty. | |
148 | ||
16317b98 | 149 | %package static |
49b19461 | 150 | Summary: GNU binutils static libraries |
ceb5138c | 151 | Summary(pl.UTF-8): Biblioteki statyczne do GNU binutils |
a26dabf1 | 152 | Group: Development/Libraries |
49b19461 | 153 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
461931c7 | 154 | #Requires: zlib-static |
a806649c | 155 | |
156 | %description static | |
49b19461 | 157 | Static GNU binutils libraries (libbfd, libopcodes). |
a806649c | 158 | |
0c3d68f2 | 159 | %description static -l pl.UTF-8 |
49b19461 | 160 | Biblioteki statyczne GNU binutils (libbfd, libopcodes). |
a806649c | 161 | |
2859501d JB |
162 | %package gasp |
163 | Summary: GASP - old preprocessor for assembly programs | |
ceb5138c | 164 | Summary(pl.UTF-8): GASP - stary preprocesor dla programów w asemblerze |
2859501d | 165 | Group: Development/Tools |
a8538388 | 166 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2859501d JB |
167 | |
168 | %description gasp | |
169 | GASP - old preprocessor for assembly programs. It's officially | |
170 | obsoleted, but it's still needed to build some packages. | |
171 | ||
0c3d68f2 JR |
172 | %description gasp -l pl.UTF-8 |
173 | GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie | |
174 | uznany za przestarzały, ale jest nadal potrzebny do zbudowania | |
175 | niektórych pakietów. | |
2859501d | 176 | |
1928db7d | 177 | %prep |
501f7670 | 178 | %setup -q |
39af79f4 | 179 | %{?with_gasp:%patch0 -p1} |
f81d2489 | 180 | %patch1 -p1 |
f0309959 | 181 | %patch2 -p1 |
ae2b8d9d | 182 | %{?with_pax:%patch3 -p1} |
b6853af5 | 183 | |
8c2c8b6f | 184 | %patch6 -p1 |
3cd495cf | 185 | %patch7 -p1 |
8dd9627c | 186 | %patch9 -p1 |
cb066d97 | 187 | %patch10 -p1 |
6061979e | 188 | %patch11 -p1 |
4a5e8616 JP |
189 | |
190 | %{__sed} -i -e '1s,.*env perl,#!%{__perl},' gprofng/gp-display-html/gp-display-html.in | |
1928db7d | 191 | |
6520cf64 | 192 | # file contains hacks for ac 2.69 only |
5cfae0d2 | 193 | %{__rm} config/override.m4 |
bfa6591a | 194 | |
1928db7d | 195 | %build |
437f76a6 | 196 | %{__aclocal} |
197 | %{__autoconf} | |
198 | ||
a8538388 | 199 | # non-standard regeneration (needed because of gasp patch) |
fe27c565 | 200 | # AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4 |
71ec0766 AM |
201 | for dir in gas bfd; do |
202 | cd $dir || exit 1 | |
4274db7b AM |
203 | %{__aclocal} -I .. -I ../config -I ../bfd |
204 | %{__automake} Makefile | |
8d67b114 | 205 | test -f doc/Makefile.am && %{__automake} doc/Makefile |
4274db7b | 206 | %{__autoconf} |
71ec0766 AM |
207 | cd .. |
208 | done | |
266c72dc | 209 | |
3cc4a1c4 AM |
210 | # More targets |
211 | TARGETS= | |
212 | %ifarch ia64 | |
213 | TARGETS=i686-linux | |
214 | %endif | |
501f7670 | 215 | # uhm? |
3cc4a1c4 AM |
216 | %ifarch %{ix86} |
217 | TARGETS=x86_64-linux | |
218 | %endif | |
219 | %ifarch sparc | |
220 | TARGETS=sparc64-linux | |
221 | %endif | |
1fb376d7 | 222 | %ifarch %{x8664} |
3c26908e JK |
223 | TARGETS="x86_64-pep" |
224 | %endif | |
39a25667 JR |
225 | %ifarch x32 |
226 | TARGETS="x86_64-linux,x86_64-pep" | |
227 | %endif | |
501f7670 | 228 | %{?addtargets:TARGETS="%{addtargets}"} |
3cc4a1c4 | 229 | |
bc650d31 | 230 | cp -f /usr/share/automake/config.* . |
e1177480 | 231 | CFLAGS="%{rpmcflags}"; export CFLAGS |
1530b74b | 232 | CXXFLAGS="%{rpmcxxflags}"; export CXXFLAGS |
bc650d31 | 233 | CC="%{__cc}"; export CC |
1530b74b | 234 | CXX="%{__cxx}"; export CXX |
c5304b32 | 235 | %ifarch sparc |
8a52c890 | 236 | sparc32 \ |
237 | %endif | |
1e19fd88 | 238 | ./configure %{_target_platform} \ |
1e19fd88 | 239 | --prefix=%{_prefix} \ |
a74f9904 | 240 | --libdir=%{_libdir} \ |
1e19fd88 | 241 | --infodir=%{_infodir} \ |
c1bfddd6 | 242 | --mandir=%{_mandir} \ |
4a5e8616 | 243 | --sysconfdir=%{_sysconfdir} \ |
fdba1a35 | 244 | --disable-debug \ |
ef1f18fc | 245 | --disable-silent-rules \ |
fdba1a35 | 246 | --disable-werror \ |
c446d5a3 | 247 | %ifarch sparc |
ab151dc7 | 248 | --enable-64-bit-bfd \ |
501f7670 JB |
249 | %else |
250 | %{?with_allarchs:--enable-64-bit-bfd} \ | |
c446d5a3 | 251 | %endif |
fdba1a35 JB |
252 | --enable-build-warnings=,-Wno-missing-prototypes \ |
253 | --enable-install-libiberty \ | |
254 | --enable-lto \ | |
255 | --enable-plugins \ | |
256 | --enable-shared \ | |
39a25667 | 257 | %{?with_allarchs:--enable-targets=alpha-linux,arm-linux,cris-linux,hppa-linux,i386-linux,ia64-linux,x86_64-linux,x86_64-linux-gnux32,m68k-linux,mips-linux,mips64-linux,mips64el-linux,mipsel-linux,ppc-linux,s390-linux,s390x-linux,sh-linux,sparc-linux,sparc64-linux,i386-linuxaout,x86_64-pep} \ |
fdba1a35 JB |
258 | %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \ |
259 | --with-tooldir=%{_prefix} \ | |
260 | --with-zlib \ | |
a18955a2 | 261 | %if %{with gold} |
93de8f98 | 262 | --enable-gold%{!?with_default_bfd:=default} --enable-ld%{?with_default_bfd:=default} \ |
41248ac5 | 263 | %endif |
4a5e8616 | 264 | %{__enable_disable msgpack} \ |
525cade6 JP |
265 | %{__enable_disable jansson} \ |
266 | %{__with_without debuginfod} | |
58a689fe | 267 | |
8c2886ad | 268 | %{__make} |
1928db7d | 269 | |
1665df93 | 270 | %{?with_tests:%{__make} -j1 check} |
e6026cea | 271 | |
1928db7d | 272 | %install |
273 | rm -rf $RPM_BUILD_ROOT | |
f0caedc5 | 274 | install -d $RPM_BUILD_ROOT%{_libdir}/bfd-plugins |
58a689fe | 275 | |
8c2886ad | 276 | %{__make} -j1 install \ |
437f76a6 | 277 | DESTDIR=$RPM_BUILD_ROOT |
1928db7d | 278 | |
3f010e6c | 279 | # remove these man pages unless we cross-build for win*/netware platforms. |
280 | # however, this should be done in Makefiles. | |
1770ca50 | 281 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,windmc,windres}.1 |
3f010e6c | 282 | |
bc650d31 | 283 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
3f010e6c | 284 | |
fdba1a35 JB |
285 | # overwrite libiberty.a with PIC version |
286 | cp -pf libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir} | |
1928db7d | 287 | |
3aee031d JB |
288 | # remove evil -L pointing inside builder's home |
289 | perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la | |
290 | ||
16885b7f | 291 | [ -x $RPM_BUILD_ROOT%{_bindir}/ld.bfd ] || ln $RPM_BUILD_ROOT%{_bindir}/ld{,.bfd} |
292 | ||
ab025e6a ER |
293 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
294 | ||
5d312d05 JP |
295 | %if %{with gold} |
296 | install -d gold-doc | |
297 | cp -p gold/{README,ChangeLog,TODO} gold-doc | |
298 | %endif | |
299 | ||
49b19461 JB |
300 | %find_lang bfd |
301 | %find_lang binutils | |
302 | %find_lang gas | |
303 | %find_lang gprof | |
a18955a2 | 304 | touch ld.lang gold.lang |
49b19461 | 305 | %find_lang ld |
a18955a2 | 306 | %if %{with gold} |
9dedc7ea | 307 | %find_lang gold |
1addeff3 | 308 | %endif |
49b19461 | 309 | %find_lang opcodes |
632dfa0c | 310 | cat bfd.lang opcodes.lang > %{name}-libs.lang |
08d99624 | 311 | cat gas.lang gprof.lang ld.lang gold.lang >> %{name}.lang |
bc650d31 | 312 | |
1928db7d | 313 | %clean |
314 | rm -rf $RPM_BUILD_ROOT | |
315 | ||
bfa6591a | 316 | %post -p /sbin/postshell |
c3790715 | 317 | -/usr/sbin/fix-info-dir -c %{_infodir} |
1928db7d | 318 | |
bfa6591a | 319 | %postun -p /sbin/postshell |
c3790715 | 320 | -/usr/sbin/fix-info-dir -c %{_infodir} |
49b19461 JB |
321 | |
322 | %post libs -p /sbin/ldconfig | |
323 | %postun libs -p /sbin/ldconfig | |
324 | ||
bfa6591a | 325 | %post devel -p /sbin/postshell |
5ff961d5 | 326 | -/usr/sbin/fix-info-dir -c %{_infodir} |
49b19461 | 327 | |
bfa6591a | 328 | %postun devel -p /sbin/postshell |
5ff961d5 | 329 | -/usr/sbin/fix-info-dir -c %{_infodir} |
1928db7d | 330 | |
9b8eb19f ER |
331 | %post gasp -p /sbin/postshell |
332 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
333 | ||
334 | %postun gasp -p /sbin/postshell | |
335 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
336 | ||
bc650d31 | 337 | %files -f %{name}.lang |
58a689fe | 338 | %defattr(644,root,root,755) |
dc044c3b | 339 | %doc README |
5d312d05 | 340 | %{?with_gold:%doc gold-doc} |
4a5e8616 | 341 | %{?with_gprofng:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gprofng.rc} |
41248ac5 JB |
342 | %attr(755,root,root) %{_bindir}/addr2line |
343 | %attr(755,root,root) %{_bindir}/ar | |
344 | %attr(755,root,root) %{_bindir}/as | |
345 | %attr(755,root,root) %{_bindir}/c++filt | |
346 | %attr(755,root,root) %{_bindir}/elfedit | |
4a5e8616 JP |
347 | %if %{with gprofng} |
348 | %attr(755,root,root) %{_bindir}/gp-archive | |
349 | %attr(755,root,root) %{_bindir}/gp-collect-app | |
350 | %attr(755,root,root) %{_bindir}/gp-display-html | |
351 | %attr(755,root,root) %{_bindir}/gp-display-src | |
352 | %attr(755,root,root) %{_bindir}/gp-display-text | |
353 | %attr(755,root,root) %{_bindir}/gprofng | |
354 | %endif | |
41248ac5 JB |
355 | %attr(755,root,root) %{_bindir}/gprof |
356 | %attr(755,root,root) %{_bindir}/ld | |
357 | %attr(755,root,root) %{_bindir}/ld.bfd | |
a18955a2 | 358 | %if %{with gold} |
08d99624 | 359 | %attr(755,root,root) %{_bindir}/ld.gold |
3bc4b8d1 | 360 | %attr(755,root,root) %{_bindir}/dwp |
1addeff3 | 361 | %endif |
41248ac5 JB |
362 | %attr(755,root,root) %{_bindir}/nm |
363 | %attr(755,root,root) %{_bindir}/objcopy | |
364 | %attr(755,root,root) %{_bindir}/objdump | |
365 | %attr(755,root,root) %{_bindir}/ranlib | |
366 | %attr(755,root,root) %{_bindir}/readelf | |
367 | %attr(755,root,root) %{_bindir}/size | |
368 | %attr(755,root,root) %{_bindir}/strings | |
369 | %attr(755,root,root) %{_bindir}/strip | |
4a5e8616 JP |
370 | %if %{with gprofng} |
371 | %dir %{_libdir}/gprofng | |
372 | %attr(755,root,root) %{_libdir}/gprofng/libgp-collector.so | |
373 | %attr(755,root,root) %{_libdir}/gprofng/libgp-collectorAPI.so | |
374 | %attr(755,root,root) %{_libdir}/gprofng/libgp-heap.so | |
375 | %attr(755,root,root) %{_libdir}/gprofng/libgp-iotrace.so | |
376 | %attr(755,root,root) %{_libdir}/gprofng/libgp-sync.so | |
377 | %attr(755,root,root) %{_libdir}/gprofng/libgprofng.so.*.*.* | |
378 | %attr(755,root,root) %{_libdir}/gprofng/libgprofng.so.0 | |
379 | %endif | |
f0caedc5 | 380 | %{_prefix}/lib/ldscripts |
49b19461 JB |
381 | %{_infodir}/as.info* |
382 | %{_infodir}/binutils.info* | |
8d67b114 | 383 | %{_infodir}/ctf-spec.info* |
49b19461 | 384 | %{_infodir}/gprof.info* |
4a5e8616 | 385 | %{?with_gprofng:%{_infodir}/gprofng.info*} |
49b19461 | 386 | %{_infodir}/ld.info* |
f0caedc5 JB |
387 | %{_mandir}/man1/addr2line.1* |
388 | %{_mandir}/man1/ar.1* | |
389 | %{_mandir}/man1/as.1* | |
390 | %{_mandir}/man1/c++filt.1* | |
391 | %{_mandir}/man1/elfedit.1* | |
4a5e8616 JP |
392 | %if %{with gprofng} |
393 | %{_mandir}/man1/gp-archive.* | |
394 | %{_mandir}/man1/gp-collect-app.* | |
395 | %{_mandir}/man1/gp-display-html.* | |
396 | %{_mandir}/man1/gp-display-src.* | |
397 | %{_mandir}/man1/gp-display-text.* | |
398 | %{_mandir}/man1/gprofng.1* | |
399 | %endif | |
f0caedc5 JB |
400 | %{_mandir}/man1/gprof.1* |
401 | %{_mandir}/man1/ld.1* | |
402 | %{_mandir}/man1/nm.1* | |
403 | %{_mandir}/man1/objcopy.1* | |
404 | %{_mandir}/man1/objdump.1* | |
405 | %{_mandir}/man1/ranlib.1* | |
406 | %{_mandir}/man1/readelf.1* | |
407 | %{_mandir}/man1/size.1* | |
408 | %{_mandir}/man1/strings.1* | |
409 | %{_mandir}/man1/strip.1* | |
3f010e6c | 410 | %lang(cs) %{_mandir}/cs/man1/* |
411 | %lang(de) %{_mandir}/de/man1/* | |
412 | %lang(es) %{_mandir}/es/man1/* | |
413 | %lang(fi) %{_mandir}/fi/man1/* | |
414 | %lang(fr) %{_mandir}/fr/man1/* | |
415 | %lang(hu) %{_mandir}/hu/man1/* | |
416 | %lang(ja) %{_mandir}/ja/man1/* | |
417 | %lang(pl) %{_mandir}/pl/man1/* | |
1928db7d | 418 | |
49b19461 JB |
419 | %files libs -f %{name}-libs.lang |
420 | %defattr(644,root,root,755) | |
5239e4f9 | 421 | %attr(755,root,root) %{_libdir}/libbfd-%{version}.so |
ab38b0a4 AM |
422 | %attr(755,root,root) %{_libdir}/libctf.so.*.* |
423 | %attr(755,root,root) %ghost %{_libdir}/libctf.so.0 | |
424 | %attr(755,root,root) %{_libdir}/libctf-nobfd.so.*.* | |
425 | %attr(755,root,root) %ghost %{_libdir}/libctf-nobfd.so.0 | |
5239e4f9 | 426 | %attr(755,root,root) %{_libdir}/libopcodes-%{version}.so |
f0caedc5 | 427 | %dir %{_libdir}/bfd-plugins |
8c2886ad | 428 | %attr(755,root,root) %{_libdir}/bfd-plugins/libdep.so |
49b19461 JB |
429 | |
430 | %files devel | |
431 | %defattr(644,root,root,755) | |
432 | %attr(755,root,root) %{_libdir}/libbfd.so | |
ab38b0a4 AM |
433 | %attr(755,root,root) %{_libdir}/libctf.so |
434 | %attr(755,root,root) %{_libdir}/libctf-nobfd.so | |
49b19461 | 435 | %attr(755,root,root) %{_libdir}/libopcodes.so |
4a5e8616 | 436 | %{?with_gprofng:%attr(755,root,root) %{_libdir}/gprofng/libgprofng.so} |
49b19461 | 437 | %{_libdir}/libbfd.la |
ab38b0a4 AM |
438 | %{_libdir}/libctf.la |
439 | %{_libdir}/libctf-nobfd.la | |
49b19461 JB |
440 | %{_libdir}/libopcodes.la |
441 | %{_libdir}/libiberty.a | |
41248ac5 JB |
442 | %{_includedir}/ansidecl.h |
443 | %{_includedir}/bfd.h | |
444 | %{_includedir}/bfdlink.h | |
ab38b0a4 AM |
445 | %{_includedir}/ctf-api.h |
446 | %{_includedir}/ctf.h | |
1770ca50 | 447 | %{_includedir}/diagnostics.h |
41248ac5 | 448 | %{_includedir}/dis-asm.h |
fb9adfdf | 449 | %{_includedir}/plugin-api.h |
41248ac5 | 450 | %{_includedir}/symcat.h |
fdba1a35 | 451 | %{_includedir}/libiberty |
4a5e8616 JP |
452 | %if %{with gprofng} |
453 | %{_includedir}/collectorAPI.h | |
454 | %{_includedir}/libcollector.h | |
455 | %{_includedir}/libfcollector.h | |
456 | %endif | |
49b19461 JB |
457 | %{_infodir}/bfd.info* |
458 | ||
a806649c | 459 | %files static |
8d8a6b9c | 460 | %defattr(644,root,root,755) |
49b19461 | 461 | %{_libdir}/libbfd.a |
ab38b0a4 AM |
462 | %{_libdir}/libctf.a |
463 | %{_libdir}/libctf-nobfd.a | |
49b19461 | 464 | %{_libdir}/libopcodes.a |
2859501d | 465 | |
39af79f4 | 466 | %if %{with gasp} |
2859501d JB |
467 | %files gasp |
468 | %defattr(644,root,root,755) | |
469 | %attr(755,root,root) %{_bindir}/gasp | |
470 | %{_infodir}/gasp.info* | |
39af79f4 | 471 | %endif |