]>
Commit | Line | Data |
---|---|---|
60c7bf0e | 1 | Summary: Cross DJGPP GNU binary utility development utilities - binutils |
bef9c874 ER |
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 | |
870dc85e | 7 | Name: crossdjgpp-binutils |
6f348729 | 8 | Version: 2.15.91.0.1 |
ac814432 | 9 | Release: 1 |
870dc85e MM |
10 | License: GPL |
11 | Group: Development/Tools | |
870dc85e | 12 | Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 |
416283f5 | 13 | # Source0-md5: 0d64d65d33a7f305e5ef8351086b9a3a |
84c1c0d0 | 14 | URL: http://sources.redhat.com/binutils/ |
15 | BuildRequires: automake | |
16 | BuildRequires: bash | |
870dc85e | 17 | BuildRequires: bison |
84c1c0d0 | 18 | BuildRequires: flex |
89f68ee5 | 19 | BuildRequires: gettext-tools |
84c1c0d0 | 20 | %ifarch sparc sparc32 |
21 | BuildRequires: sparc32 | |
22 | %endif | |
870dc85e MM |
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 | |
a7350a0b JB |
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.) | |
870dc85e MM |
33 | |
34 | This package contains cross targeted binutils. | |
a7350a0b | 35 | |
4bb6046d JR |
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ć). | |
a7350a0b | 39 | |
4bb6046d | 40 | Ten pakiet zawiera binutils generujące skrośnie binaria dla DOS. |
870dc85e MM |
41 | |
42 | %prep | |
43 | %setup -q -n binutils-%{version} | |
44 | ||
45 | %build | |
84c1c0d0 | 46 | cp /usr/share/automake/config.sub . |
870dc85e MM |
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... | |
84c1c0d0 | 54 | CFLAGS="%{rpmcflags}" \ |
55 | LDFLAGS="%{rpmldflags}" \ | |
870dc85e | 56 | CONFIG_SHELL="/bin/bash" \ |
84c1c0d0 | 57 | %ifarch sparc |
58 | sparc32 \ | |
59 | %endif | |
870dc85e MM |
60 | ./configure \ |
61 | --prefix=%{_prefix} \ | |
62 | --libdir=%{_libdir} \ | |
63 | --mandir=%{_mandir} \ | |
64 | --infodir=%{_infodir} \ | |
65 | --target=%{target} | |
66 | ||
84c1c0d0 | 67 | %{__make} all \ |
68 | tooldir=%{_prefix} \ | |
69 | EXEEXT="" | |
870dc85e MM |
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} \ | |
47204e34 | 77 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
78 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
84c1c0d0 | 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 | |
870dc85e MM |
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 |