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