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