]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
2.11.90.0.24
[packages/binutils.git] / binutils.spec
1 Summary:        GNU Binary Utility Development Utilities
2 Summary(de):    GNU Binary Utility Development Utilities
3 Summary(fr):    Utilitaires de développement binaire de GNU
4 Summary(pl):    Narzêdzia GNU dla programistów
5 Summary(tr):    GNU geliþtirme araçlarý
6 Name:           binutils
7 Version:        2.11.90.0.24
8 Release:        1
9 Epoch:          1
10 License:        GPL
11 Group:          Development/Tools
12 Group(de):      Entwicklung/Werkzeuge
13 Group(fr):      Development/Outils
14 Group(pl):      Programowanie/Narzêdzia
15 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2        
16 Patch0:         %{name}-info.patch
17 PAtch1:         %{name}-sparc_unaligned_reloc.patch
18 URL:            http://sourceware.cygnus.com/binutils/
19 Prereq:         /sbin/ldconfig
20 BuildRequires:  flex
21 BuildRequires:  bison
22 BuildRequires:  perl
23 %ifarch sparc sparc32
24 BuildRequires:  sparc32
25 %endif
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Binutils is a collection of binary utilities, including:
30 - ar - create, modify and extract from archives,
31 - nm - lists symbols from object files,
32 - objcopy - copy and translate object files,
33 - objdump - display information from object files,
34 - ranlib - generate an index for the contents of an archive,
35 - size - list the section sizes of an object or archive file,
36 - strings - list printable strings from files,
37 - strip - discard symbols,
38 - c++filt - a filter for demangling encoded C++ symbols,
39 - addr2line - convert addresses to file and line,
40 - nlmconv - convert object code into an NLM.
41
42 %description -l pl
43 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
44 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
45 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
46 programów i bibliotek.
47
48 %package static
49 Summary:        GNU Binutils static libraries
50 Summary(pl):    Biblioteki statyczne do GNU Binutils
51 Group:          Development/Libraries
52 Group(de):      Entwicklung/Libraries
53 Group(fr):      Development/Librairies
54 Group(pl):      Programowanie/Biblioteki
55 Requires:       %{name} = %{version}
56
57 %description static
58 Static libraries for GNU Binutils.
59
60 %description -l pl static
61 Biblioteki statyczne GNU Binutils.
62
63 %prep
64 %setup -q 
65 %patch0 -p1
66 %patch1 -p1
67
68 %build
69 CFLAGS="%{rpmcflags}"
70 export CFLAGS
71 %ifarch sparc 
72 sparc32 \
73 %endif
74 ./configure %{_target_platform} \
75         --enable-shared \
76         --disable-debug \
77         --prefix=%{_prefix} \
78         --infodir=%{_infodir} \
79         --mandir=%{_mandir} \
80 %ifarch sparc
81         --enable-targets=sparc64-linux
82 %endif
83
84 %{__make} tooldir=%{_prefix} all info
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_prefix}
89
90 %{__make} install install-info \
91         prefix=$RPM_BUILD_ROOT%{_prefix} \
92         tooldir=$RPM_BUILD_ROOT%{_prefix} \
93         mandir=$RPM_BUILD_ROOT%{_mandir} \
94         infodir=$RPM_BUILD_ROOT%{_infodir} \
95         includedir=$RPM_BUILD_ROOT%{_includedir} \
96         libdir=$RPM_BUILD_ROOT%{_libdir}
97
98 rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt 
99
100 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
101
102 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
103
104 gzip -9nf README
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post
110 /sbin/ldconfig
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
112
113 %postun
114 /sbin/ldconfig
115 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
116
117 %files
118 %defattr(644,root,root,755)
119 %doc *.gz
120 %attr(755,root,root) %{_bindir}/*
121 %attr(755,root,root) %{_libdir}/*.so
122
123 %{_libdir}/ldscripts
124 %{_includedir}/*.h
125
126 %{_infodir}/*info*
127 %{_mandir}/man1/*
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/lib*.a
This page took 0.04109 seconds and 4 git commands to generate.