1 Summary: DJGPP GNU Binary Utility Development Utilities - gcc
2 Summary(pl): Narzêdzia programistyczne GNU DJGPP - gcc
8 Group: Development/Languages
9 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
10 # Source0-md5: d94d66619d69d9fd27717409c8a67740
11 BuildRequires: crossdjgpp-platform
12 BuildRequires: crossdjgpp-binutils
15 BuildRequires: autoconf
16 BuildRequires: /bin/bash
17 Requires: crossdjgpp-binutils
18 Requires: crossdjgpp-platform
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define target i386-pc-msdosdjgpp
24 %define arch %{_prefix}/%{target}
25 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
26 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
29 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
30 Gnu Programming Platform, if it has to stand for something, but it's
33 This package contains cross targeted gcc.
36 DJGPP to port GNU GCC dla ¶rodowiska DOS (skrót oznacza DJ's Gnu
37 Programming Platform, je¶li ju¿ koniecznie ma co¶ oznaczaæ).
39 Ten pakiet zawiera gcc skompilowane jako kroskompilator.
42 Summary: DJGPP GNU Binary Utility Development Utilities - g++
43 Summary(pl): Narzêdzia programistyczne GNU DJGPP - g++
44 Group: Development/Languages
45 Requires: %{name} = %{epoch}:%{version}
48 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
49 Gnu Programming Platform, if it has to stand for something, but it's
52 This package contains cross targeted g++ and (static) libstdc++.
54 %description c++ -l pl
55 DJGPP to port GNU GCC dla ¶rodowiska DOS (skrót oznacza DJ's Gnu
56 Programming Platform, je¶li ju¿ koniecznie ma co¶ oznaczaæ).
58 Ten pakiet zawiera g++ skompilowane jako kroskompilator oraz
59 (statyczne) libstdc++.
61 # does this even work?
63 Summary: DJGPP GNU Binary Utility Development Utilities - g77
64 Summary(pl): Narzêdzia programistyczne GNU DJGPP - g77
65 Group: Development/Languages
66 Requires: %{name} = %{epoch}:%{version}
69 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
70 Gnu Programming Platform, if it has to stand for something, but it's
73 This package contains cross targeted g77.
75 %description g77 -l pl
76 DJGPP to port GNU GCC dla ¶rodowiska DOS (skrót oznacza DJ's Gnu
77 Programming Platform, je¶li ju¿ koniecznie ma co¶ oznaczaæ).
79 Ten pakiet zawiera g77 skompilowane jako kroskompilator.
82 %setup -q -n gcc-%{version}
86 install -d obj-%{target}
89 CFLAGS="%{rpmcflags}" \
90 CXXFLAGS="%{rpmcflags}" \
91 TEXCONFIG=false ../configure \
93 --infodir=%{_infodir} \
97 --enable-languages="c,f77,gcov" \
107 # kluge, we already have full system headers and libraries ready,
108 # needed to get right limits.h
110 cp -f Makefile Makefile.new
111 sed -e "s|^SYSTEM_HEADER_DIR.*|SYSTEM_HEADER_DIR := %{_prefix}/%{target}/include|" \
112 Makefile.new > Makefile
116 # YAK (Yet Another Kluge) :<
118 cp -f configure configure.tmp
119 # don't use newlib, we want djgpp
120 sed -e 's|os_include_dir="config/os/newlib"|#&|' configure.tmp > configure
122 # sigh... it still doesn't work, produces sth<char> in assembly
124 PATH=$PATH:/sbin:%{_sbindir}
127 #LDFLAGS_FOR_TARGET="%{rpmldflags}"
129 %{__make} -C obj-%{target}
132 rm -rf $RPM_BUILD_ROOT
133 install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_bindir}}
136 PATH=$PATH:/sbin:%{_sbindir}
138 %{__make} -C gcc install \
139 prefix=$RPM_BUILD_ROOT%{_prefix} \
140 mandir=$RPM_BUILD_ROOT%{_mandir} \
141 infodir=$RPM_BUILD_ROOT%{_infodir} \
142 gxx_include_dir=$RPM_BUILD_ROOT%{arch}/include/g++ \
143 DESTDIR=$RPM_BUILD_ROOT
145 # c++filt is provided by binutils
146 #rm -f $RPM_BUILD_ROOT%{_bindir}/i386-djgpp-c++filt
148 # what is this there for???
149 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
151 # the same... make hardlink
152 #ln -f $RPM_BUILD_ROOT%{arch}/bin/gcc $RPM_BUILD_ROOT%{_bindir}/%{target}-gcc
154 %{target}-strip -g $RPM_BUILD_ROOT%{gcclib}/libgcc.a
157 rm -rf $RPM_BUILD_ROOT
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/%{target}-gcc
162 %attr(755,root,root) %{_bindir}/%{target}-cpp
164 #%attr(755,root,root) %{arch}/bin/cpp
165 #%attr(755,root,root) %{arch}/bin/gcc
166 #%attr(755,root,root) %{arch}/bin/gcov
167 #%%{arch}/include/_G_config.h
170 %attr(755,root,root) %{gcclib}/cc1
171 %attr(755,root,root) %{gcclib}/tradcpp0
172 %attr(755,root,root) %{gcclib}/cpp0
173 %attr(755,root,root) %{gcclib}/collect2
174 #%%{gcclib}/SYSCALLS.c.X
177 %dir %{gcclib}/include
178 %{gcclib}/include/*.h
179 #%%{gcclib}/include/iso646.h
180 #%%{gcclib}/include/limits.h
181 #%%{gcclib}/include/proto.h
182 #%%{gcclib}/include/stdarg.h
183 #%%{gcclib}/include/stdbool.h
184 #%%{gcclib}/include/stddef.h
185 #%%{gcclib}/include/syslimits.h
186 #%%{gcclib}/include/varargs.h
187 #%%{gcclib}/include/va-*.h
188 %{_mandir}/man1/%{target}-gcc.1*
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_bindir}/%{target}-[cg]++
195 %{arch}/lib/libstdc++.a
196 %attr(755,root,root) %{gcclib}/cc1plus
198 %{gcclib}/include/new.h
199 %{gcclib}/include/exception
200 %{gcclib}/include/new
201 %{gcclib}/include/typeinfo
202 %{_mandir}/man1/%{target}-g++.1*
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_bindir}/%{target}-g77
208 %attr(755,root,root) %{gcclib}/f771
209 %{_mandir}/man1/%{target}-g77.1*