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