]> git.pld-linux.org Git - packages/crossdjgpp-binutils.git/blob - crossdjgpp-binutils.spec
- updated gettext BR
[packages/crossdjgpp-binutils.git] / crossdjgpp-binutils.spec
1 Summary:        Cross DJGPP GNU binary utility development utilities - binutils
2 Summary(es.UTF-8):      Utilitarios para desarrollo de binarios de la GNU - DJGPP binutils
3 Summary(fr.UTF-8):      Utilitaires de développement binaire de GNU - DJGPP binutils
4 Summary(pl.UTF-8):      Skrośne narzędzia programistyczne GNU dla DJGPP - binutils
5 Summary(pt_BR.UTF-8):   Utilitários para desenvolvimento de binários da GNU - DJGPP binutils
6 Summary(tr.UTF-8):      GNU geliştirme araçları - DJGPP binutils
7 Name:           crossdjgpp-binutils
8 Version:        2.15.91.0.1
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  0d64d65d33a7f305e5ef8351086b9a3a
14 URL:            http://sources.redhat.com/binutils/
15 BuildRequires:  automake
16 BuildRequires:  bash
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gettext-tools
20 %ifarch sparc sparc32
21 BuildRequires:  sparc32
22 %endif
23 Requires:       crossdjgpp-platform
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         target          i386-pc-msdosdjgpp
27 %define         arch            %{_prefix}/%{target}
28
29 %description
30 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
31 Gnu Programming Platform, if it has to stand for something, but it's
32 best left ambiguous.)
33
34 This package contains cross targeted binutils.
35
36 %description -l pl.UTF-8
37 DJGPP to port GNU GCC dla środowiska DOS (skrót oznacza DJ's Gnu
38 Programming Platform, jeśli już koniecznie ma coś oznaczać).
39
40 Ten pakiet zawiera binutils generujące skrośnie binaria dla DOS.
41
42 %prep
43 %setup -q -n binutils-%{version}
44
45 %build
46 cp /usr/share/automake/config.sub .
47
48 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
49 # lib<target>bfd.so*. To prevent confusion with native binutils, we
50 # forget about shared libraries right now, and do not install libbfd.a
51 # [the same applies to binutils 2.10.1.0.4]
52
53 # ldscripts won't be generated properly if SHELL is not bash...
54 CFLAGS="%{rpmcflags}" \
55 LDFLAGS="%{rpmldflags}" \
56 CONFIG_SHELL="/bin/bash" \
57 %ifarch sparc
58 sparc32 \
59 %endif
60 ./configure \
61         --prefix=%{_prefix} \
62         --libdir=%{_libdir} \
63         --mandir=%{_mandir} \
64         --infodir=%{_infodir} \
65         --target=%{target}
66
67 %{__make} all \
68         tooldir=%{_prefix} \
69         EXEEXT=""
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         prefix=$RPM_BUILD_ROOT%{_prefix} \
76         mandir=$RPM_BUILD_ROOT%{_mandir} \
77         infodir=$RPM_BUILD_ROOT%{_infodir} \
78         libdir=$RPM_BUILD_ROOT%{_libdir}
79
80 # remove these man pages unless we cross-build for win*/netware platforms.
81 # however, this should be done in Makefiles.
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
83
84 %files
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{arch}/bin/*
87 %{arch}/lib/*
88 %attr(755,root,root) %{_bindir}/%{target}-*
89 %{_mandir}/man1/%{target}-*
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
This page took 0.049939 seconds and 3 git commands to generate.