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