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