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