]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
- c++filt is back (with es manual in non-english*)
[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:        2
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 Source1:        %{name}-non-english-man-pages.tar.bz2
23 Patch0:         %{name}-gasp.patch
24 Patch1:         %{name}-info.patch
25 Patch2:         %{name}-array-sects-compat.patch
26 Patch3:         %{name}-eh-frame-ro.patch
27 Patch4:         %{name}-ia64-bootstrap.patch
28 URL:            http://sources.redhat.com/binutils/
29 BuildRequires:  automake
30 BuildRequires:  bison
31 BuildRequires:  flex
32 BuildRequires:  gettext-devel
33 BuildRequires:  perl-tools-pod
34 %ifarch sparc sparc32
35 BuildRequires:  sparc32
36 %endif
37 BuildRequires:  texinfo >= 4.2
38 Requires(post,postun):  /sbin/ldconfig
39 Conflicts:      gcc-c++ < 3.3
40 Conflicts:      modutils < 2.4.17
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Binutils is a collection of binary utilities, including:
45 - ar - create, modify and extract from archives,
46 - nm - lists symbols from object files,
47 - objcopy - copy and translate object files,
48 - objdump - display information from object files,
49 - ranlib - generate an index for the contents of an archive,
50 - size - list the section sizes of an object or archive file,
51 - strings - list printable strings from files,
52 - strip - discard symbols,
53 - addr2line - convert addresses to file and line,
54 - nlmconv - convert object code into an NLM.
55
56 %description -l pl
57 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
58 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
59 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
60 programów i bibliotek.
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 pt_BR
68 binutils é uma coletânea de utilitários necessários para compilar
69 programas. Inclui assembler e linker, assim como vários outros
70 programas para trabalhar com formatos executáveis.
71
72 %description -l ru
73 binutils - ÜÔÏ ÎÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ËÏÍÐÉÌÌÑÃÉÉ
74 ÐÒÏÇÒÁÍÍ. ÷ËÌÀÞÁÅÔ ÁÓÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË É ÎÁÂÏÒ ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ ÄÌÑ
75 ÒÁÂÏÔÙ Ó ÉÓÐÏÌÎÑÅÍÙÍÉ ÆÁÊÌÁÍÉ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×.
76
77 %description -l uk
78 binutils - ÃÅ ÎÁ¦Ҡ¦ÎÓÔÒÕÍÅÎÔ¦×, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÍЦÌÑ槠ÐÒÏÇÒÁÍ.
79 í¦ÓÔÉÔØ ÁÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ Ú
80 ×ÉËÏÎÕ×ÁÎÉÍÉ ÆÁÊÌÁÍÉ Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×.
81
82 %package static
83 Summary:        GNU Binutils static libraries
84 Summary(pl):    Biblioteki statyczne do GNU Binutils
85 Group:          Development/Libraries
86 Requires:       %{name} = %{version}
87
88 %description static
89 Static libraries for GNU Binutils.
90
91 %description static -l pl
92 Biblioteki statyczne GNU Binutils.
93
94 %package gasp
95 Summary:        GASP - old preprocessor for assembly programs
96 Summary(pl):    GASP - stary preprocesor dla programów w asemblerze
97 Group:          Development/Tools
98 Requires:       %{name} = %{version}
99
100 %description gasp
101 GASP - old preprocessor for assembly programs. It's officially
102 obsoleted, but it's still needed to build some packages.
103
104 %description gasp -l pl
105 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
106 uznany za przestarza³y, ale jest nadal potrzebny do zbudowania
107 niektórych pakietów.
108
109 %prep
110 %setup  -q
111 %patch0 -p1
112 %patch1 -p1
113 %ifarch %{ix86}
114 %patch2 -p1
115 %endif
116 # need update:
117 #%patch3 -p1
118 #%patch4 -p1
119
120 %build
121 cp -f /usr/share/automake/config.* .
122 CFLAGS="%{rpmcflags}"; export CFLAGS
123 CC="%{__cc}"; export CC
124 %ifarch sparc
125 sparc32 \
126 %endif
127 ./configure %{_target_platform} \
128         --enable-shared \
129         --disable-debug \
130         --prefix=%{_prefix} \
131         --infodir=%{_infodir} \
132         --mandir=%{_mandir} \
133 %ifarch sparc
134         --enable-targets=sparc64-linux \
135 %endif
136         %{?_with_allarchs:--enable-64-bit-bfd} \
137         %{?_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}
138
139 %{__make} tooldir=%{_prefix} all info
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143
144 %{__make} install install-info \
145         prefix=$RPM_BUILD_ROOT%{_prefix} \
146         tooldir=$RPM_BUILD_ROOT%{_prefix} \
147         mandir=$RPM_BUILD_ROOT%{_mandir} \
148         infodir=$RPM_BUILD_ROOT%{_infodir} \
149         includedir=$RPM_BUILD_ROOT%{_includedir} \
150         libdir=$RPM_BUILD_ROOT%{_libdir}
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.971963 seconds and 4 git commands to generate.