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