]>
Commit | Line | Data |
---|---|---|
653688e7 JR |
1 | Summary: Cross HP Parisc GNU binary utility development utilities - gcc |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - HP Parisc gcc | |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - HP Parisc gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla HP Parisc - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - HP Parisc gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - HP Parisc gcc | |
7 | Name: crosshppa-gcc | |
8 | Version: 3.3.6 | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: Development/Languages | |
12 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 | |
13 | # Source0-md5: 6936616a967da5a0b46f1e7424a06414 | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: bison | |
17 | BuildRequires: crosshppa-binutils >= 2.15.91.0.1 | |
18 | BuildRequires: flex | |
19 | BuildRequires: /bin/bash | |
20 | Requires: crosshppa-binutils >= 2.15.91.0.1 | |
21 | Requires: gcc-dirs | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define target hppa-pld-linux | |
25 | %define arch %{_prefix}/%{target} | |
26 | %define gccarch %{_libdir}/gcc-lib/%{target} | |
27 | %define gcclib %{_libdir}/gcc-lib/%{target}/%{version} | |
28 | %define _noautostrip .*%{gcclib}/libgcc\\.a | |
29 | ||
30 | %description | |
31 | This package contains a cross-gcc which allows the creation of | |
32 | binaries to be run on HP Parisc (architecture "hppa-linux") | |
33 | on other machines. | |
34 | ||
35 | %description -l de.UTF-8 | |
36 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
37 | anderem Rechner Code für HP Parisc zu generieren. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Ten pakiet zawiera skrośny gcc pozwalający na tworzenie na innych | |
41 | maszynach binariów do uruchamiania na HP Parisc (architektura | |
42 | "hppa-linux"). | |
43 | ||
44 | %prep | |
45 | %setup -q -n gcc-%{version} | |
46 | ||
47 | %build | |
48 | cp -f /usr/share/automake/config.sub . | |
49 | rm -rf obj-%{target} | |
50 | install -d obj-%{target} | |
51 | cd obj-%{target} | |
52 | ||
53 | CFLAGS="%{rpmcflags}" \ | |
54 | CXXFLAGS="%{rpmcflags}" \ | |
55 | TEXCONFIG=false \ | |
56 | ../configure \ | |
57 | --prefix=%{_prefix} \ | |
58 | --infodir=%{_infodir} \ | |
59 | --mandir=%{_mandir} \ | |
60 | --bindir=%{_bindir} \ | |
61 | --libdir=%{_libdir} \ | |
62 | --libexecdir=%{_libdir} \ | |
63 | --includedir=%{arch}/include \ | |
64 | --disable-shared \ | |
65 | --disable-threads \ | |
66 | --enable-languages="c" \ | |
67 | --with-gnu-as \ | |
68 | --with-gnu-ld \ | |
69 | --with-system-zlib \ | |
70 | --with-multilib \ | |
71 | --without-x \ | |
72 | --build=%{_target_platform} \ | |
73 | --host=%{_target_platform} \ | |
74 | --target=%{target} | |
75 | ||
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} -C obj-%{target} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | # don't want target's lib in this place | |
85 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
86 | ||
87 | %if 0%{!?debug:1} | |
88 | %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}/libgcc.a | |
89 | %endif | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/%{target}-cpp | |
97 | %attr(755,root,root) %{_bindir}/%{target}-gcc | |
98 | %attr(755,root,root) %{_bindir}/%{target}-gcc-%{version} | |
99 | %attr(755,root,root) %{_bindir}/%{target}-gccbug | |
100 | %attr(755,root,root) %{_bindir}/%{target}-gcov | |
101 | %dir %{gccarch} | |
102 | %dir %{gcclib} | |
103 | %attr(755,root,root) %{gcclib}/cc1 | |
104 | %attr(755,root,root) %{gcclib}/collect2 | |
105 | %{gcclib}/crt*.o | |
106 | %{gcclib}/libgcc.a | |
107 | %{gcclib}/specs* | |
108 | %dir %{gcclib}/include | |
109 | %{gcclib}/include/*.h | |
110 | %{_mandir}/man1/%{target}-gcc.1* |