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