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