]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
- removed c++filt from description
[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.27
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 Source1:        %{name}-non-english-man-pages.tar.gz
17 Patch0:         %{name}-info.patch
18 Patch1:         %{name}-bdfbug.patch
19 URL:            http://sourceware.cygnus.com/binutils/
20 Prereq:         /sbin/ldconfig
21 BuildRequires:  flex
22 BuildRequires:  bison
23 BuildRequires:  perl-devel
24 %ifarch sparc sparc32
25 BuildRequires:  sparc32
26 %endif
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Binutils is a collection of binary utilities, including:
31 - ar - create, modify and extract from archives,
32 - nm - lists symbols from object files,
33 - objcopy - copy and translate object files,
34 - objdump - display information from object files,
35 - ranlib - generate an index for the contents of an archive,
36 - size - list the section sizes of an object or archive file,
37 - strings - list printable strings from files,
38 - strip - discard 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 -p0
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 # these are already in gcc-g++
99 rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt $RPM_BUILD_ROOT%{_mandir}/man1/c++filt*
100
101 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
102
103 # remove these man pages unless we cross-build for win*/netware platforms.
104 # however, this should be done in Makefiles.
105 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
106
107 tar xzvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}/
108
109 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
110
111 gzip -9nf README
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post
117 /sbin/ldconfig
118 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
119
120 %postun
121 /sbin/ldconfig
122 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
123
124 %files
125 %defattr(644,root,root,755)
126 %doc *.gz
127 %attr(755,root,root) %{_bindir}/*
128 %attr(755,root,root) %{_libdir}/*.so
129
130 %{_libdir}/ldscripts
131 %{_includedir}/*.h
132
133 %{_infodir}/*info*
134 %{_mandir}/man1/*
135 %lang(cs) %{_mandir}/cs/man1/*
136 %lang(de) %{_mandir}/de/man1/*
137 %lang(es) %{_mandir}/es/man1/*
138 %lang(fi) %{_mandir}/fi/man1/*
139 %lang(fr) %{_mandir}/fr/man1/*
140 %lang(hu) %{_mandir}/hu/man1/*
141 %lang(ja) %{_mandir}/ja/man1/*
142 %lang(pl) %{_mandir}/pl/man1/*
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/lib*.a
This page took 0.120091 seconds and 4 git commands to generate.