]> git.pld-linux.org Git - packages/binutils.git/blob - binutils.spec
- added non-english (cs, de, fi, fr, hu, ja, pl) man pages
[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 - c++filt - a filter for demangling encoded C++ symbols,
40 - addr2line - convert addresses to file and line,
41 - nlmconv - convert object code into an NLM.
42
43 %description -l pl
44 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
45 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
46 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
47 programów i bibliotek.
48
49 %package static
50 Summary:        GNU Binutils static libraries
51 Summary(pl):    Biblioteki statyczne do GNU Binutils
52 Group:          Development/Libraries
53 Group(de):      Entwicklung/Libraries
54 Group(fr):      Development/Librairies
55 Group(pl):      Programowanie/Biblioteki
56 Requires:       %{name} = %{version}
57
58 %description static
59 Static libraries for GNU Binutils.
60
61 %description -l pl static
62 Biblioteki statyczne GNU Binutils.
63
64 %prep
65 %setup -q 
66 %patch0 -p1
67 #%patch1 -p0
68
69 %build
70 CFLAGS="%{rpmcflags}"
71 export CFLAGS
72 %ifarch sparc 
73 sparc32 \
74 %endif
75 ./configure %{_target_platform} \
76         --enable-shared \
77         --disable-debug \
78         --prefix=%{_prefix} \
79         --infodir=%{_infodir} \
80         --mandir=%{_mandir} \
81 %ifarch sparc
82         --enable-targets=sparc64-linux
83 %endif
84
85 %{__make} tooldir=%{_prefix} all info
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_prefix}
90
91 %{__make} install install-info \
92         prefix=$RPM_BUILD_ROOT%{_prefix} \
93         tooldir=$RPM_BUILD_ROOT%{_prefix} \
94         mandir=$RPM_BUILD_ROOT%{_mandir} \
95         infodir=$RPM_BUILD_ROOT%{_infodir} \
96         includedir=$RPM_BUILD_ROOT%{_includedir} \
97         libdir=$RPM_BUILD_ROOT%{_libdir}
98
99 # these are already in gcc-g++
100 rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt $RPM_BUILD_ROOT%{_mandir}/man1/c++filt*
101
102 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
103
104 # remove these man pages unless we cross-build for win*/netware platforms.
105 # however, this should be done in Makefiles.
106 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
107
108 tar xzvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}/
109
110 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
111
112 gzip -9nf README
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post
118 /sbin/ldconfig
119 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120
121 %postun
122 /sbin/ldconfig
123 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
124
125 %files
126 %defattr(644,root,root,755)
127 %doc *.gz
128 %attr(755,root,root) %{_bindir}/*
129 %attr(755,root,root) %{_libdir}/*.so
130
131 %{_libdir}/ldscripts
132 %{_includedir}/*.h
133
134 %{_infodir}/*info*
135 %{_mandir}/man1/*
136 %lang(cs) %{_mandir}/cs/man1/*
137 %lang(de) %{_mandir}/de/man1/*
138 %lang(es) %{_mandir}/es/man1/*
139 %lang(fi) %{_mandir}/fi/man1/*
140 %lang(fr) %{_mandir}/fr/man1/*
141 %lang(hu) %{_mandir}/hu/man1/*
142 %lang(ja) %{_mandir}/ja/man1/*
143 %lang(pl) %{_mandir}/pl/man1/*
144
145 %files static
146 %defattr(644,root,root,755)
147 %{_libdir}/lib*.a
This page took 0.045251 seconds and 4 git commands to generate.