[307cbcb5] | 1 | # |
---|
| 2 | # Please send bugfixes or comments to |
---|
| 3 | # http://www.rtems.org/bugzilla |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | %ifos cygwin cygwin32 mingw mingw32 |
---|
| 8 | %define _exeext .exe |
---|
| 9 | %define debug_package %{nil} |
---|
| 10 | %define _libdir %{_exec_prefix}/lib |
---|
| 11 | %else |
---|
| 12 | %define _exeext %{nil} |
---|
| 13 | %endif |
---|
| 14 | |
---|
| 15 | %ifos cygwin cygwin32 |
---|
| 16 | %define optflags -O3 -pipe -march=i486 -funroll-loops |
---|
| 17 | %endif |
---|
| 18 | |
---|
| 19 | %ifos mingw mingw32 |
---|
| 20 | %if %{defined _mingw32_cflags} |
---|
| 21 | %define optflags %{_mingw32_cflags} |
---|
| 22 | %else |
---|
| 23 | %define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields |
---|
| 24 | %endif |
---|
| 25 | %endif |
---|
| 26 | |
---|
| 27 | %if "%{_build}" != "%{_host}" |
---|
| 28 | %define _host_rpmprefix %{_host}- |
---|
| 29 | %else |
---|
| 30 | %define _host_rpmprefix %{nil} |
---|
| 31 | %endif |
---|
| 32 | |
---|
| 33 | |
---|
[55e45f8d] | 34 | %define gcc_pkgvers 4.4.1 |
---|
| 35 | %define gcc_version 4.4.1 |
---|
| 36 | %define gcc_rpmvers %{expand:%(echo "4.4.1" | tr - _ )} |
---|
[307cbcb5] | 37 | |
---|
| 38 | |
---|
| 39 | Name: i586-pc-freebsd7.2-gcc |
---|
| 40 | Summary: i586-pc-freebsd7.2 gcc |
---|
| 41 | |
---|
| 42 | Group: Development/Tools |
---|
| 43 | Version: %{gcc_rpmvers} |
---|
[55e45f8d] | 44 | Release: 0.20090831.1%{?dist} |
---|
[307cbcb5] | 45 | License: GPL |
---|
| 46 | URL: http://gcc.gnu.org |
---|
| 47 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 48 | |
---|
| 49 | %define _use_internal_dependency_generator 0 |
---|
| 50 | |
---|
| 51 | BuildRequires: %{_host_rpmprefix}gcc |
---|
| 52 | |
---|
| 53 | %if "%{gcc_version}" >= "4.3.0" |
---|
| 54 | %define _gmp_minvers 4.1 |
---|
| 55 | %else |
---|
| 56 | %if "%{gcc_version}" >= "4.2.0" |
---|
| 57 | %define _gmp_minvers 4.1 |
---|
| 58 | %endif |
---|
| 59 | %endif |
---|
| 60 | |
---|
| 61 | %if %{defined _gmp_minvers} |
---|
| 62 | BuildRequires: gmp-devel >= %{_gmp_minvers} |
---|
| 63 | %if "%{_build}" != "%{_host}" |
---|
| 64 | BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers} |
---|
| 65 | %endif |
---|
| 66 | %endif |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %if "%{gcc_version}" >= "4.4.0" |
---|
| 70 | %define _mpfr_minvers 2.3.2 |
---|
| 71 | %define mpfr_version 2.4.1 |
---|
| 72 | %else |
---|
| 73 | %if "%{gcc_version}" >= "4.3.0" |
---|
| 74 | %define _mpfr_minvers 2.3.1 |
---|
| 75 | %define mpfr_version 2.3.2 |
---|
| 76 | %else |
---|
| 77 | %if "%{gcc_version}" >= "4.2.0" |
---|
| 78 | %define _mpfr_minvers 2.2.1 |
---|
| 79 | %define mpfr_version 2.3.2 |
---|
| 80 | %endif |
---|
| 81 | %endif |
---|
| 82 | %endif |
---|
| 83 | |
---|
| 84 | %if %{defined _mpfr_minvers} |
---|
| 85 | # FIXME: This is an ugly cludge |
---|
| 86 | %{?fc10:%global mpfr_provided 2.3.2} |
---|
| 87 | %{?fc11:%global mpfr_provided 2.4.1} |
---|
| 88 | %{?suse10_3:%global mpfr_provided 2.2.1} |
---|
[79e55c5] | 89 | %{?suse11_0:%global mpfr_provided 2.3.1} |
---|
| 90 | %{?suse11_1:%global mpfr_provided 2.3.2} |
---|
[307cbcb5] | 91 | %{?cygwin:%global mpfr_provided 2.4.1} |
---|
| 92 | %{?mingw32:%global mpfr_provided %{nil}} |
---|
| 93 | |
---|
| 94 | %if %{defined mpfr_provided} |
---|
| 95 | %if "%{mpfr_provided}" < "%{_mpfr_minvers}" |
---|
| 96 | %define _build_mpfr 1 |
---|
| 97 | %else |
---|
| 98 | %if "%{_build}" != "%{_host}" |
---|
| 99 | BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers} |
---|
| 100 | %else |
---|
| 101 | BuildRequires: mpfr-devel >= %{_mpfr_minvers} |
---|
| 102 | %endif |
---|
| 103 | %endif |
---|
| 104 | %else |
---|
| 105 | %define _build_mpfr 1 |
---|
| 106 | %endif |
---|
| 107 | |
---|
| 108 | %endif |
---|
| 109 | |
---|
| 110 | %if "%{_build}" != "%{_host}" |
---|
| 111 | BuildRequires: i586-pc-freebsd7.2-gcc = %{gcc_rpmvers} |
---|
| 112 | %endif |
---|
| 113 | |
---|
| 114 | %if "%{gcc_version}" >= "4.2.0" |
---|
| 115 | BuildRequires: flex bison |
---|
| 116 | %endif |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | BuildRequires: texinfo >= 4.2 |
---|
| 120 | BuildRequires: i586-pc-freebsd7.2-binutils |
---|
| 121 | BuildRequires: i586-pc-freebsd7.2-sys-root |
---|
| 122 | |
---|
| 123 | Requires: i586-pc-freebsd7.2-binutils |
---|
| 124 | Requires: i586-pc-freebsd7.2-sys-root |
---|
[55e45f8d] | 125 | Requires: i586-pc-freebsd7.2-gcc-libgcc = %{gcc_rpmvers}-%{release} |
---|
[307cbcb5] | 126 | |
---|
| 127 | |
---|
[79e55c5] | 128 | %define _gcclibdir %{_prefix}/lib |
---|
[307cbcb5] | 129 | |
---|
| 130 | Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2 |
---|
| 131 | %{?_without_sources:NoSource: 0} |
---|
| 132 | |
---|
| 133 | Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2 |
---|
| 134 | %{?_without_sources:NoSource: 1} |
---|
| 135 | |
---|
| 136 | Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2 |
---|
| 137 | %{?_without_sources:NoSource: 2} |
---|
| 138 | |
---|
| 139 | Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2 |
---|
| 140 | %{?_without_sources:NoSource: 5} |
---|
| 141 | |
---|
| 142 | %if "%{gcc_version}" >= "4.3.0" |
---|
| 143 | Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2 |
---|
| 144 | %endif |
---|
| 145 | |
---|
| 146 | %description |
---|
| 147 | Cross gcc for i586-pc-freebsd7.2. |
---|
| 148 | |
---|
| 149 | %prep |
---|
| 150 | %setup -c -T -n %{name}-%{version} |
---|
| 151 | |
---|
| 152 | %setup -q -T -D -n %{name}-%{version} -a0 |
---|
| 153 | %{?PATCH0:%patch0 -p0} |
---|
| 154 | |
---|
| 155 | %setup -q -T -D -n %{name}-%{version} -a1 |
---|
| 156 | %{?PATCH1:%patch1 -p0} |
---|
| 157 | |
---|
| 158 | %setup -q -T -D -n %{name}-%{version} -a2 |
---|
| 159 | %{?PATCH2:%patch2 -p0} |
---|
| 160 | |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | %setup -q -T -D -n %{name}-%{version} -a5 |
---|
| 164 | %{?PATCH5:%patch5 -p0} |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %if 0%{?_build_mpfr} |
---|
| 168 | %setup -q -T -D -n %{name}-%{version} -a60 |
---|
| 169 | %{?PATCH60:%patch60 -p1} |
---|
| 170 | # Build mpfr one-tree style |
---|
| 171 | ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr |
---|
| 172 | %endif |
---|
| 173 | |
---|
| 174 | |
---|
| 175 | # Fix timestamps |
---|
| 176 | cd gcc-%{gcc_pkgvers} |
---|
| 177 | contrib/gcc_update --touch |
---|
| 178 | cd .. |
---|
| 179 | %build |
---|
| 180 | mkdir -p build |
---|
| 181 | |
---|
| 182 | cd build |
---|
| 183 | |
---|
| 184 | languages="c" |
---|
| 185 | languages="$languages,c++" |
---|
[79e55c5] | 186 | languages="$languages,fortran" |
---|
[307cbcb5] | 187 | languages="$languages,objc" |
---|
| 188 | %if "%{_build}" != "%{_host}" |
---|
| 189 | CFLAGS_FOR_BUILD="-g -O2 -Wall" \ |
---|
| 190 | CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \ |
---|
| 191 | %else |
---|
| 192 | # gcc is not ready to be compiled with -std=gnu99 |
---|
| 193 | CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \ |
---|
| 194 | %endif |
---|
| 195 | ../gcc-%{gcc_pkgvers}/configure \ |
---|
| 196 | --prefix=%{_prefix} \ |
---|
| 197 | --bindir=%{_bindir} \ |
---|
| 198 | --exec_prefix=%{_exec_prefix} \ |
---|
| 199 | --includedir=%{_includedir} \ |
---|
[79e55c5] | 200 | --libdir=%{_gcclibdir} \ |
---|
[307cbcb5] | 201 | --libexecdir=%{_libexecdir} \ |
---|
| 202 | --mandir=%{_mandir} \ |
---|
| 203 | --infodir=%{_infodir} \ |
---|
| 204 | --datadir=%{_datadir} \ |
---|
| 205 | --build=%_build --host=%_host \ |
---|
| 206 | --target=i586-pc-freebsd7.2 \ |
---|
| 207 | --disable-libstdcxx-pch \ |
---|
| 208 | --with-gnu-as --with-gnu-ld --verbose \ |
---|
| 209 | --with-system-zlib \ |
---|
| 210 | --disable-nls --without-included-gettext \ |
---|
| 211 | --disable-win32-registry \ |
---|
| 212 | --enable-version-specific-runtime-libs \ |
---|
| 213 | --enable-threads \ |
---|
| 214 | --with-sysroot=%{_exec_prefix}/i586-pc-freebsd7.2/sys-root \ |
---|
| 215 | --enable-languages="$languages" $optargs |
---|
| 216 | |
---|
| 217 | %if "%_host" != "%_build" |
---|
| 218 | # Bug in gcc-3.2.1: |
---|
| 219 | # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs |
---|
| 220 | mkdir -p gcc/include |
---|
| 221 | cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h |
---|
| 222 | %endif |
---|
| 223 | |
---|
| 224 | make %{?_smp_mflags} all |
---|
| 225 | cd .. |
---|
| 226 | |
---|
| 227 | %install |
---|
| 228 | rm -rf $RPM_BUILD_ROOT |
---|
| 229 | |
---|
| 230 | cd build |
---|
| 231 | |
---|
| 232 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 233 | cd .. |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | %if "%{gcc_version}" <= "4.1.2" |
---|
| 237 | # Misplaced header file |
---|
| 238 | if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then |
---|
| 239 | mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \ |
---|
[79e55c5] | 240 | $RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/ |
---|
[307cbcb5] | 241 | fi |
---|
| 242 | %endif |
---|
| 243 | |
---|
| 244 | # host library |
---|
[79e55c5] | 245 | %if "%{gcc_version}" >= "4.2.0" |
---|
| 246 | # libiberty doesn't honor --libdir, but always installs to a |
---|
| 247 | # magically guessed _libdir |
---|
[307cbcb5] | 248 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a |
---|
[79e55c5] | 249 | %else |
---|
| 250 | # libiberty installs to --libdir=... |
---|
| 251 | rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a |
---|
| 252 | %endif |
---|
[307cbcb5] | 253 | |
---|
| 254 | # We use the version from binutils |
---|
| 255 | rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.2-c++filt%{_exeext} |
---|
| 256 | |
---|
| 257 | |
---|
| 258 | # Conflict with a native GCC's infos |
---|
| 259 | rm -rf $RPM_BUILD_ROOT%{_infodir} |
---|
| 260 | |
---|
| 261 | # Conflict with a native GCC's man pages |
---|
| 262 | rm -rf $RPM_BUILD_ROOT%{_mandir}/man7 |
---|
| 263 | |
---|
| 264 | # Bug in gcc-3.4.0pre |
---|
| 265 | rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.2-i586-pc-freebsd7.2-gcjh%{_exeext} |
---|
| 266 | |
---|
| 267 | # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs |
---|
| 268 | # the fixinclude-install-tools |
---|
[79e55c5] | 269 | rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/install-tools |
---|
| 270 | rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/install-tools |
---|
[307cbcb5] | 271 | |
---|
| 272 | # Bug in gcc > 4.1.0: Installs an unused, empty directory |
---|
| 273 | if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.2/include/bits; then |
---|
| 274 | rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.2/include/bits |
---|
| 275 | fi |
---|
| 276 | |
---|
| 277 | # Collect multilib subdirectories |
---|
[55e45f8d] | 278 | multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'` |
---|
[307cbcb5] | 279 | |
---|
| 280 | |
---|
| 281 | rm -f dirs ; |
---|
| 282 | echo "%defattr(-,root,root,-)" >> dirs |
---|
[79e55c5] | 283 | TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}" |
---|
[55e45f8d] | 284 | for i in $multilibs; do |
---|
[307cbcb5] | 285 | case $i in |
---|
[7fde8d5] | 286 | \.) ;; # ignore, handled elsewhere |
---|
[307cbcb5] | 287 | *) echo "%dir ${TGTDIR}/$i" >> dirs |
---|
| 288 | ;; |
---|
| 289 | esac |
---|
| 290 | done |
---|
| 291 | |
---|
| 292 | # Collect files to go into different packages |
---|
| 293 | cp dirs build/files.gcc |
---|
| 294 | cp dirs build/files.gfortran |
---|
| 295 | cp dirs build/files.objc |
---|
| 296 | cp dirs build/files.gcj |
---|
| 297 | cp dirs build/files.g++ |
---|
| 298 | |
---|
[79e55c5] | 299 | TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}" |
---|
[307cbcb5] | 300 | f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; |
---|
| 301 | for i in $f; do |
---|
| 302 | case $i in |
---|
| 303 | *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs |
---|
| 304 | *f771) ;; |
---|
| 305 | *f951) ;; |
---|
| 306 | *cc1) ;; |
---|
| 307 | *cc1obj) ;; |
---|
| 308 | *cc1plus) ;; # ignore: explicitly put into rpm elsewhere |
---|
| 309 | *collect2) ;; |
---|
| 310 | *libobjc*) echo "$i" >> build/files.objc ;; |
---|
| 311 | *include/objc*) ;; |
---|
| 312 | *include/g++*);; |
---|
| 313 | *include/c++*);; |
---|
[55e45f8d] | 314 | *include-fixed/*);; |
---|
[79e55c5] | 315 | *finclude/*);; |
---|
[307cbcb5] | 316 | *adainclude*);; |
---|
| 317 | *adalib*);; |
---|
| 318 | *gnat1);; |
---|
| 319 | *jc1) ;; |
---|
| 320 | *jvgenmain) ;; |
---|
| 321 | */libgfortran*.*) echo "$i" >> build/files.gfortran ;; |
---|
| 322 | */libstdc++.*) echo "$i" >> build/files.g++ ;; |
---|
| 323 | */libsupc++.*) echo "$i" >> build/files.g++ ;; |
---|
| 324 | *) echo "$i" >> build/files.gcc ;; |
---|
| 325 | esac |
---|
| 326 | done |
---|
| 327 | |
---|
| 328 | TGTDIR="%{_exec_prefix}/i586-pc-freebsd7.2/lib" |
---|
| 329 | f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; |
---|
| 330 | for i in $f; do |
---|
| 331 | case $i in |
---|
| 332 | *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs |
---|
| 333 | *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed |
---|
| 334 | # all other files belong to newlib |
---|
| 335 | *) echo "$i" >> build/files.newlib ;; |
---|
| 336 | esac |
---|
| 337 | done |
---|
| 338 | # Extract %%__os_install_post into os_install_post~ |
---|
| 339 | cat << \EOF > os_install_post~ |
---|
| 340 | %__os_install_post |
---|
| 341 | EOF |
---|
| 342 | |
---|
| 343 | # Generate customized brp-*scripts |
---|
| 344 | cat os_install_post~ | while read a x y; do |
---|
| 345 | case $a in |
---|
| 346 | # Prevent brp-strip* from trying to handle foreign binaries |
---|
| 347 | */brp-strip*) |
---|
| 348 | b=$(basename $a) |
---|
| 349 | sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b |
---|
| 350 | chmod a+x $b |
---|
| 351 | ;; |
---|
| 352 | esac |
---|
| 353 | done |
---|
| 354 | |
---|
| 355 | sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \ |
---|
| 356 | < os_install_post~ > os_install_post |
---|
| 357 | %define __os_install_post . ./os_install_post |
---|
| 358 | |
---|
| 359 | |
---|
| 360 | cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides |
---|
| 361 | #!/bin/sh |
---|
| 362 | grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.2/(lib|include|sys-root)' \ |
---|
[79e55c5] | 363 | %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/'} | %__find_provides |
---|
[307cbcb5] | 364 | EOF |
---|
| 365 | chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides |
---|
| 366 | %define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides |
---|
| 367 | |
---|
| 368 | cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires |
---|
| 369 | #!/bin/sh |
---|
| 370 | grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.2/(lib|include|sys-root)' \ |
---|
[79e55c5] | 371 | %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/'} | %__find_requires |
---|
[307cbcb5] | 372 | EOF |
---|
| 373 | chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires |
---|
| 374 | %define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires |
---|
| 375 | |
---|
| 376 | %ifnarch noarch |
---|
| 377 | # Extract %%__debug_install_post into debug_install_post~ |
---|
| 378 | cat << \EOF > debug_install_post~ |
---|
| 379 | %__debug_install_post |
---|
| 380 | EOF |
---|
| 381 | |
---|
| 382 | # Generate customized debug_install_post script |
---|
| 383 | cat debug_install_post~ | while read a x y; do |
---|
| 384 | case $a in |
---|
| 385 | # Prevent find-debuginfo.sh* from trying to handle foreign binaries |
---|
| 386 | */find-debuginfo.sh) |
---|
| 387 | b=$(basename $a) |
---|
| 388 | sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b |
---|
| 389 | chmod a+x $b |
---|
| 390 | ;; |
---|
| 391 | esac |
---|
| 392 | done |
---|
| 393 | |
---|
| 394 | sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \ |
---|
| 395 | < debug_install_post~ > debug_install_post |
---|
| 396 | %define __debug_install_post . ./debug_install_post |
---|
| 397 | |
---|
| 398 | %endif |
---|
| 399 | |
---|
| 400 | %clean |
---|
| 401 | rm -rf $RPM_BUILD_ROOT |
---|
| 402 | |
---|
| 403 | # ============================================================== |
---|
| 404 | # i586-pc-freebsd7.2-gcc |
---|
| 405 | # ============================================================== |
---|
| 406 | # %package -n i586-pc-freebsd7.2-gcc |
---|
| 407 | # Summary: GNU cc compiler for i586-pc-freebsd7.2 |
---|
| 408 | # Group: Development/Tools |
---|
| 409 | # Version: %{gcc_rpmvers} |
---|
| 410 | # Requires: i586-pc-freebsd7.2-binutils |
---|
| 411 | # License: GPL |
---|
| 412 | |
---|
| 413 | # %if %build_infos |
---|
| 414 | # Requires: gcc-common |
---|
| 415 | # %endif |
---|
| 416 | |
---|
| 417 | %description -n i586-pc-freebsd7.2-gcc |
---|
| 418 | GNU cc compiler for i586-pc-freebsd7.2. |
---|
| 419 | |
---|
[55e45f8d] | 420 | # ============================================================== |
---|
| 421 | # i586-pc-freebsd7.2-gcc-libgcc |
---|
| 422 | # ============================================================== |
---|
| 423 | %package -n i586-pc-freebsd7.2-gcc-libgcc |
---|
| 424 | Summary: libgcc for i586-pc-freebsd7.2-gcc |
---|
| 425 | Group: Development/Tools |
---|
| 426 | Version: %{gcc_rpmvers} |
---|
| 427 | %{?_with_noarch_subpackages:BuildArch: noarch} |
---|
| 428 | License: GPL |
---|
| 429 | |
---|
| 430 | %description -n i586-pc-freebsd7.2-gcc-libgcc |
---|
| 431 | libgcc i586-pc-freebsd7.2-gcc. |
---|
| 432 | |
---|
| 433 | |
---|
| 434 | %files -n i586-pc-freebsd7.2-gcc |
---|
[307cbcb5] | 435 | %defattr(-,root,root) |
---|
[55e45f8d] | 436 | |
---|
[307cbcb5] | 437 | %{_mandir}/man1/i586-pc-freebsd7.2-gcc.1* |
---|
| 438 | %{_mandir}/man1/i586-pc-freebsd7.2-cpp.1* |
---|
| 439 | %{_mandir}/man1/i586-pc-freebsd7.2-gcov.1* |
---|
| 440 | |
---|
| 441 | %{_bindir}/i586-pc-freebsd7.2-cpp%{_exeext} |
---|
| 442 | %{_bindir}/i586-pc-freebsd7.2-gcc%{_exeext} |
---|
| 443 | %{_bindir}/i586-pc-freebsd7.2-gcc-%{gcc_version}%{_exeext} |
---|
| 444 | %{_bindir}/i586-pc-freebsd7.2-gcov%{_exeext} |
---|
| 445 | %{_bindir}/i586-pc-freebsd7.2-gccbug |
---|
| 446 | |
---|
[55e45f8d] | 447 | %dir %{_libexecdir}/gcc |
---|
| 448 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2 |
---|
| 449 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
| 450 | %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1%{_exeext} |
---|
| 451 | %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/collect2%{_exeext} |
---|
| 452 | |
---|
| 453 | |
---|
| 454 | %files -n i586-pc-freebsd7.2-gcc-libgcc -f build/files.gcc |
---|
| 455 | %defattr(-,root,root) |
---|
| 456 | %dir %{_gcclibdir}/gcc |
---|
| 457 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2 |
---|
| 458 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
[79e55c5] | 459 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include |
---|
[55e45f8d] | 460 | |
---|
[307cbcb5] | 461 | %if "%{gcc_version}" > "4.0.3" |
---|
| 462 | %if "i586-pc-freebsd7.2" != "bfin-rtems4.10" |
---|
| 463 | %if "i586-pc-freebsd7.2" != "avr-rtems4.10" |
---|
[79e55c5] | 464 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/ssp |
---|
[307cbcb5] | 465 | %endif |
---|
| 466 | %endif |
---|
| 467 | %endif |
---|
| 468 | |
---|
| 469 | %if "%{gcc_version}" >= "4.3.0" |
---|
[55e45f8d] | 470 | %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include-fixed |
---|
[307cbcb5] | 471 | %endif |
---|
| 472 | |
---|
| 473 | # ============================================================== |
---|
| 474 | # i586-pc-freebsd7.2-gcc-c++ |
---|
| 475 | # ============================================================== |
---|
| 476 | %package -n i586-pc-freebsd7.2-gcc-c++ |
---|
| 477 | Summary: GCC c++ compiler for i586-pc-freebsd7.2 |
---|
| 478 | Group: Development/Tools |
---|
| 479 | Version: %{gcc_rpmvers} |
---|
| 480 | License: GPL |
---|
[55e45f8d] | 481 | Requires: i586-pc-freebsd7.2-gcc-libstdc++ = %{gcc_rpmvers}-%{release} |
---|
[307cbcb5] | 482 | |
---|
| 483 | %if "%{_build}" != "%{_host}" |
---|
| 484 | BuildRequires: i586-pc-freebsd7.2-gcc-c++ = %{gcc_rpmvers} |
---|
| 485 | %endif |
---|
| 486 | |
---|
| 487 | Requires: i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release} |
---|
| 488 | |
---|
| 489 | %description -n i586-pc-freebsd7.2-gcc-c++ |
---|
| 490 | GCC c++ compiler for i586-pc-freebsd7.2. |
---|
| 491 | |
---|
[55e45f8d] | 492 | |
---|
| 493 | %package -n i586-pc-freebsd7.2-gcc-libstdc++ |
---|
| 494 | Summary: libstdc++ for i586-pc-freebsd7.2 |
---|
| 495 | Group: Development/Tools |
---|
| 496 | Version: %{gcc_rpmvers} |
---|
| 497 | %{?_with_noarch_subpackages:BuildArch: noarch} |
---|
| 498 | License: GPL |
---|
| 499 | |
---|
| 500 | %description -n i586-pc-freebsd7.2-gcc-libstdc++ |
---|
| 501 | %{_summary} |
---|
| 502 | |
---|
| 503 | |
---|
| 504 | %files -n i586-pc-freebsd7.2-gcc-c++ |
---|
[307cbcb5] | 505 | %defattr(-,root,root) |
---|
[55e45f8d] | 506 | |
---|
[307cbcb5] | 507 | %{_mandir}/man1/i586-pc-freebsd7.2-g++.1* |
---|
| 508 | |
---|
| 509 | %{_bindir}/i586-pc-freebsd7.2-c++%{_exeext} |
---|
| 510 | %{_bindir}/i586-pc-freebsd7.2-g++%{_exeext} |
---|
| 511 | |
---|
[79e55c5] | 512 | %dir %{_libexecdir}/gcc |
---|
| 513 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2 |
---|
| 514 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
| 515 | %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1plus%{_exeext} |
---|
[307cbcb5] | 516 | |
---|
[55e45f8d] | 517 | |
---|
| 518 | %files -n i586-pc-freebsd7.2-gcc-libstdc++ -f build/files.g++ |
---|
| 519 | %defattr(-,root,root) |
---|
| 520 | %dir %{_gcclibdir}/gcc |
---|
| 521 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2 |
---|
| 522 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
[79e55c5] | 523 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include |
---|
| 524 | %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/c++ |
---|
[307cbcb5] | 525 | |
---|
| 526 | # ============================================================== |
---|
| 527 | # i586-pc-freebsd7.2-gcc-gfortran |
---|
| 528 | # ============================================================== |
---|
| 529 | %package -n i586-pc-freebsd7.2-gcc-gfortran |
---|
| 530 | Summary: Fortran 95 support for i586-pc-freebsd7.2-gcc |
---|
| 531 | Group: Development/Tools |
---|
| 532 | Version: %{gcc_rpmvers} |
---|
| 533 | License: GPL |
---|
| 534 | |
---|
| 535 | Requires: i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release} |
---|
[55e45f8d] | 536 | Requires: i586-pc-freebsd7.2-gcc-libgfortran = %{gcc_rpmvers}-%{release} |
---|
[307cbcb5] | 537 | |
---|
| 538 | %description -n i586-pc-freebsd7.2-gcc-gfortran |
---|
| 539 | GCC fortran compiler for i586-pc-freebsd7.2. |
---|
| 540 | |
---|
[55e45f8d] | 541 | %files -n i586-pc-freebsd7.2-gcc-gfortran |
---|
[307cbcb5] | 542 | %defattr(-,root,root) |
---|
| 543 | %{_bindir}/i586-pc-freebsd7.2-gfortran%{_exeext} |
---|
| 544 | |
---|
| 545 | %{_mandir}/man1/i586-pc-freebsd7.2-gfortran.1* |
---|
| 546 | |
---|
[79e55c5] | 547 | %dir %{_libexecdir}/gcc |
---|
| 548 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2 |
---|
| 549 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
| 550 | %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/f951%{_exeext} |
---|
| 551 | |
---|
[55e45f8d] | 552 | # ============================================================== |
---|
| 553 | # i586-pc-freebsd7.2-gcc-libgfortran |
---|
| 554 | # ============================================================== |
---|
| 555 | %package -n i586-pc-freebsd7.2-gcc-libgfortran |
---|
| 556 | Summary: Fortran 95 support libraries for i586-pc-freebsd7.2-gcc |
---|
| 557 | Group: Development/Tools |
---|
| 558 | Version: %{gcc_rpmvers} |
---|
| 559 | %{?_with_noarch_subpackages:BuildArch: noarch} |
---|
| 560 | License: GPL |
---|
| 561 | |
---|
| 562 | %description -n i586-pc-freebsd7.2-gcc-libgfortran |
---|
| 563 | %{_summary} |
---|
| 564 | |
---|
| 565 | %files -n i586-pc-freebsd7.2-gcc-libgfortran -f build/files.gfortran |
---|
| 566 | %defattr(-,root,root) |
---|
| 567 | %dir %{_gcclibdir}/gcc |
---|
| 568 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2 |
---|
| 569 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
[79e55c5] | 570 | %if "%{gcc_version}" >= "4.2.0" |
---|
| 571 | %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/finclude |
---|
| 572 | %endif |
---|
[307cbcb5] | 573 | |
---|
| 574 | # ============================================================== |
---|
| 575 | # i586-pc-freebsd7.2-gcc-objc |
---|
| 576 | # ============================================================== |
---|
| 577 | %package -n i586-pc-freebsd7.2-gcc-objc |
---|
| 578 | Summary: Objective C support for i586-pc-freebsd7.2-gcc |
---|
| 579 | Group: Development/Tools |
---|
| 580 | Version: %{gcc_rpmvers} |
---|
| 581 | License: GPL |
---|
| 582 | |
---|
| 583 | Requires: i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release} |
---|
[55e45f8d] | 584 | Requires: i586-pc-freebsd7.2-gcc-libobjc = %{gcc_rpmvers}-%{release} |
---|
[307cbcb5] | 585 | |
---|
| 586 | %description -n i586-pc-freebsd7.2-gcc-objc |
---|
| 587 | GCC objc compiler for i586-pc-freebsd7.2. |
---|
| 588 | |
---|
[55e45f8d] | 589 | %files -n i586-pc-freebsd7.2-gcc-objc |
---|
[307cbcb5] | 590 | %defattr(-,root,root) |
---|
[79e55c5] | 591 | %dir %{_libexecdir}/gcc |
---|
| 592 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2 |
---|
| 593 | %dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
| 594 | %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1obj%{_exeext} |
---|
[307cbcb5] | 595 | |
---|
[55e45f8d] | 596 | # ============================================================== |
---|
| 597 | # i586-pc-freebsd7.2-gcc-libobjc |
---|
| 598 | # ============================================================== |
---|
| 599 | %package -n i586-pc-freebsd7.2-gcc-libobjc |
---|
| 600 | Summary: Objective C support for i586-pc-freebsd7.2-gcc |
---|
| 601 | Group: Development/Tools |
---|
| 602 | Version: %{gcc_rpmvers} |
---|
| 603 | %{?_with_noarch_subpackages:BuildArch: noarch} |
---|
| 604 | License: GPL |
---|
| 605 | |
---|
| 606 | %description -n i586-pc-freebsd7.2-gcc-libobjc |
---|
| 607 | Support libraries for GCC's objc compiler for i586-pc-freebsd7.2. |
---|
| 608 | |
---|
| 609 | %files -n i586-pc-freebsd7.2-gcc-libobjc -f build/files.objc |
---|
| 610 | %defattr(-,root,root) |
---|
| 611 | %dir %{_gcclibdir}/gcc |
---|
| 612 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2 |
---|
| 613 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version} |
---|
| 614 | %dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include |
---|
[79e55c5] | 615 | %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/objc |
---|
[307cbcb5] | 616 | |
---|