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