]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
- added pr338 patch.
[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.15.91.0.2
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:  41983069bef07af4f1350c6d30666b2d
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}-array-sects-compat.patch
28 Patch3:         %{name}-libtool-relink.patch
29 Patch4:         %{name}-pt_pax_flags.patch
30 Patch5:         %{name}-mips-relocs.patch
31 Patch6:         %{name}-pr290.patch
32 Patch7:         %{name}-pr338.patch
33 URL:            http://sources.redhat.com/binutils/
34 BuildRequires:  autoconf >= 2.59
35 BuildRequires:  automake >= 1.8.2
36 BuildRequires:  bison
37 BuildRequires:  flex
38 BuildRequires:  gettext-devel
39 BuildRequires:  perl-tools-pod
40 %ifarch sparc sparc32
41 BuildRequires:  sparc32
42 %endif
43 BuildRequires:  texinfo >= 4.2
44 Requires(post,postun):  /sbin/ldconfig
45 Conflicts:      gcc-c++ < 5:3.3
46 Conflicts:      modutils < 2.4.17
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %ifarch sparc64
50 %define         _libdir         /usr/lib
51 %endif
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 colectánea 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 static
93 Summary:        GNU Binutils static libraries
94 Summary(pl):    Biblioteki statyczne do GNU Binutils
95 Group:          Development/Libraries
96 Requires:       %{name} = %{epoch}:%{version}-%{release}
97
98 %description static
99 Static libraries for GNU Binutils.
100
101 %description static -l pl
102 Biblioteki statyczne GNU Binutils.
103
104 %package gasp
105 Summary:        GASP - old preprocessor for assembly programs
106 Summary(pl):    GASP - stary preprocesor dla programów w asemblerze
107 Group:          Development/Tools
108 Requires:       %{name} = %{epoch}:%{version}-%{release}
109
110 %description gasp
111 GASP - old preprocessor for assembly programs. It's officially
112 obsoleted, but it's still needed to build some packages.
113
114 %description gasp -l pl
115 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
116 uznany za przestarza³y, ale jest nadal potrzebny do zbudowania
117 niektórych pakietów.
118
119 %prep
120 %setup -q
121 %patch0 -p1
122 %patch1 -p1
123 %ifarch %{ix86}
124 %patch2 -p1
125 %endif
126 %patch3 -p1
127 %patch4 -p1
128 %patch5 -p0
129 %patch6 -p0
130
131 %build
132 # non-standard regeneration (needed because of gasp patch)
133 cd gas
134 aclocal
135 automake --cygnus Makefile
136 automake --cygnus doc/Makefile
137 autoconf
138 cd ..
139
140 # More targets
141 TARGETS=
142 %ifarch ia64
143 TARGETS=i686-linux
144 %endif
145 # uhm?
146 %ifarch %{ix86}
147 TARGETS=x86_64-linux
148 %endif
149 %ifarch sparc
150 TARGETS=sparc64-linux
151 %endif
152 %{?addtargets:TARGETS="%{addtargets}"}
153
154 cp -f /usr/share/automake/config.* .
155 CFLAGS="%{rpmcflags}"; export CFLAGS
156 CC="%{__cc}"; export CC
157 %ifarch sparc
158 sparc32 \
159 %endif
160 ./configure %{_target_platform} \
161         --enable-shared \
162         --disable-debug \
163         --prefix=%{_prefix} \
164         --libdir=%{_libdir} \
165         --infodir=%{_infodir} \
166         --mandir=%{_mandir} \
167         %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
168 %ifarch sparc
169         --enable-64-bit-bfd \
170 %else
171         %{?with_allarchs:--enable-64-bit-bfd} \
172 %endif
173         %{?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}
174
175 %{__make} all info \
176          tooldir=%{_prefix}
177
178 %install
179 rm -rf $RPM_BUILD_ROOT
180
181 %{__make} install install-info \
182         prefix=$RPM_BUILD_ROOT%{_prefix} \
183         tooldir=$RPM_BUILD_ROOT%{_prefix} \
184         mandir=$RPM_BUILD_ROOT%{_mandir} \
185         infodir=$RPM_BUILD_ROOT%{_infodir} \
186         includedir=$RPM_BUILD_ROOT%{_includedir} \
187         libdir=$RPM_BUILD_ROOT%{_libdir}
188
189 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
190
191 # remove these man pages unless we cross-build for win*/netware platforms.
192 # however, this should be done in Makefiles.
193 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
194
195 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
196
197 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
198 install libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir}
199
200 # remove evil -L pointing inside builder's home
201 perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
202
203 %find_lang %{name} --all-name
204
205 %clean
206 rm -rf $RPM_BUILD_ROOT
207
208 %post
209 /sbin/ldconfig
210 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
211
212 %postun
213 /sbin/ldconfig
214 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
215
216 %files -f %{name}.lang
217 %defattr(644,root,root,755)
218 %doc README
219 %attr(755,root,root) %{_bindir}/[!g]*
220 %attr(755,root,root) %{_bindir}/g[!a]*
221 %attr(755,root,root) %{_libdir}*/*.so
222 %{_libdir}*/libiberty.a
223 %{_libdir}*/lib*.la
224
225 %{_prefix}/lib/ldscripts
226 %{_includedir}/*.h
227
228 %{_infodir}/[!g]*.info*
229 %{_infodir}/g[!a]*.info*
230 %{_mandir}/man1/*
231 %lang(cs) %{_mandir}/cs/man1/*
232 %lang(de) %{_mandir}/de/man1/*
233 %lang(es) %{_mandir}/es/man1/*
234 %lang(fi) %{_mandir}/fi/man1/*
235 %lang(fr) %{_mandir}/fr/man1/*
236 %lang(hu) %{_mandir}/hu/man1/*
237 %lang(ja) %{_mandir}/ja/man1/*
238 %lang(pl) %{_mandir}/pl/man1/*
239
240 %files static
241 %defattr(644,root,root,755)
242 %{_libdir}*/lib[!i]*.a
243
244 %files gasp
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/gasp
247 %{_infodir}/gasp.info*
This page took 0.595311 seconds and 4 git commands to generate.