mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
This commit was manufactured by cvs2svn to create branch
'rtems-4-10-branch'. Sprout from master 2010-06-03 21:00:23 UTC Joel Sherrill <joel.sherrill@OARcorp.com> '2010-06-03 Joel Sherrill <joel.sherrilL@OARcorp.com>' Cherrypick from B_beatnik_import_from_SLAC 2009-12-03 16:56:50 UTC Till Straumann <strauman@slac.stanford.edu> ' - importing 'beatnik' BSP from SLAC repository.': c/src/lib/libbsp/powerpc/beatnik/.cvsignore c/src/lib/libbsp/powerpc/beatnik/LICENSE c/src/lib/libbsp/powerpc/beatnik/README c/src/lib/libbsp/powerpc/beatnik/bsp_specs c/src/lib/libbsp/powerpc/beatnik/configure.ac c/src/lib/libbsp/powerpc/beatnik/flash/flashcfg.c c/src/lib/libbsp/powerpc/beatnik/include/.cvsignore c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c c/src/lib/libbsp/powerpc/beatnik/irq/irq.h c/src/lib/libbsp/powerpc/beatnik/irq/irq_init.c c/src/lib/libbsp/powerpc/beatnik/irq/irq_test_app.c c/src/lib/libbsp/powerpc/beatnik/make/custom/beatnik.cfg c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c c/src/lib/libbsp/powerpc/beatnik/marvell/gt.c c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.c c/src/lib/libbsp/powerpc/beatnik/marvell/gt_timer.h c/src/lib/libbsp/powerpc/beatnik/marvell/gti2c.c c/src/lib/libbsp/powerpc/beatnik/marvell/gti2c_busdrv.h c/src/lib/libbsp/powerpc/beatnik/marvell/gti2creg.h c/src/lib/libbsp/powerpc/beatnik/marvell/gtintrreg.h c/src/lib/libbsp/powerpc/beatnik/marvell/gtpcireg.h c/src/lib/libbsp/powerpc/beatnik/marvell/gtreg.h c/src/lib/libbsp/powerpc/beatnik/network/if_em/LICENSE c/src/lib/libbsp/powerpc/beatnik/network/if_em/README c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em.h c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em_hw.c c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em_hw.h c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em_osdep.h c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em_pub.h c/src/lib/libbsp/powerpc/beatnik/network/if_em/if_em_rtems.c c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/gtethreg.h c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/gtvar.h c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/if_gfe_pub.h c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/if_gfe_rtems.c c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/if_gfevar.h c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h c/src/lib/libbsp/powerpc/beatnik/network/if_mve/if_mve_pub.h c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mve_smallbuf_tst.c c/src/lib/libbsp/powerpc/beatnik/network/if_mve/testing.c c/src/lib/libbsp/powerpc/beatnik/network/porting/LICENSE c/src/lib/libbsp/powerpc/beatnik/network/porting/Makefile.template c/src/lib/libbsp/powerpc/beatnik/network/porting/README c/src/lib/libbsp/powerpc/beatnik/network/porting/if_xxx.modini.c c/src/lib/libbsp/powerpc/beatnik/network/porting/if_xxx_rtems.c c/src/lib/libbsp/powerpc/beatnik/network/porting/pcireg.h c/src/lib/libbsp/powerpc/beatnik/network/porting/rtemscompat.h c/src/lib/libbsp/powerpc/beatnik/network/porting/rtemscompat1.h c/src/lib/libbsp/powerpc/beatnik/network/porting/rtemscompat_defs.h.template c/src/lib/libbsp/powerpc/beatnik/network/support/bsp_bsdnet_attach.h c/src/lib/libbsp/powerpc/beatnik/network/support/early_enet_link_status.h c/src/lib/libbsp/powerpc/beatnik/network/support/early_link_status.c c/src/lib/libbsp/powerpc/beatnik/pci/gt_pci_init.c c/src/lib/libbsp/powerpc/beatnik/pci/motload_fixup.c c/src/lib/libbsp/powerpc/beatnik/pci/pci_io_remap.c c/src/lib/libbsp/powerpc/beatnik/pci/pci_io_remap.h c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c c/src/lib/libbsp/powerpc/beatnik/startup/i2c_init.c c/src/lib/libbsp/powerpc/beatnik/startup/linkcmds c/src/lib/libbsp/powerpc/beatnik/startup/reboot.c c/src/lib/libbsp/powerpc/beatnik/tod/todcfg.c c/src/lib/libbsp/powerpc/beatnik/vme/VMEConfig.h c/src/lib/libbsp/powerpc/beatnik/vme/vme_dma.c c/src/lib/libbsp/powerpc/beatnik/vme/vmeconfig.c Cherrypick from shttpd 2007-06-11 13:24:29 UTC Ralf Corsepius <ralf.corsepius@rtems.org> 'Import from shttpd-1.37.': cpukit/shttpd/compat_unix.h cpukit/shttpd/compat_win32.h cpukit/shttpd/io.h cpukit/shttpd/io_ssl.c cpukit/shttpd/llist.h cpukit/shttpd/md5.h cpukit/shttpd/shttpd.1 cpukit/shttpd/shttpd.h cpukit/shttpd/ssl.h cpukit/shttpd/standalone.c cpukit/shttpd/std_includes.h Cherrypick from B_rtems_mvme3100_bsp_slac 2007-12-14 06:30:15 UTC Till Straumann <strauman@slac.stanford.edu> ' - imported MVME3100 BSP (from SLAC repository)': c/src/lib/libbsp/powerpc/mvme3100/.cvsignore c/src/lib/libbsp/powerpc/mvme3100/KNOWN_PROBLEMS c/src/lib/libbsp/powerpc/mvme3100/LICENSE c/src/lib/libbsp/powerpc/mvme3100/README c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c Cherrypick from zlib 2005-10-28 07:22:42 UTC Ralf Corsepius <ralf.corsepius@rtems.org> 'Import of zlib-1.2.2.2.tar.gz': cpukit/zlib/INDEX cpukit/zlib/crc32.h cpukit/zlib/inffast.h cpukit/zlib/inffixed.h cpukit/zlib/trees.h Cherrypick from rtemsdoc-4-5-branch 1997-05-27 12:40:10 UTC Joel Sherrill <joel.sherrill@OARcorp.com> 'base RTEMS documentation': doc/common/treedef.tex Delete: contrib/crossrpms/cygwin/.cvsignore contrib/crossrpms/cygwin/Makefile.am contrib/crossrpms/cygwin/binutils.am contrib/crossrpms/cygwin/cloog_ppl.am contrib/crossrpms/cygwin/cygwin.am contrib/crossrpms/cygwin/expat.am contrib/crossrpms/cygwin/gcc-prep.add contrib/crossrpms/cygwin/gcc.am contrib/crossrpms/cygwin/gmp.am contrib/crossrpms/cygwin/i686/.cvsignore contrib/crossrpms/cygwin/i686/Makefile.am contrib/crossrpms/cygwin/i686/binutils-sources.add contrib/crossrpms/cygwin/i686/cloog-ppl.add contrib/crossrpms/cygwin/i686/expat.add contrib/crossrpms/cygwin/i686/gcc-sources.add contrib/crossrpms/cygwin/i686/gmp.add contrib/crossrpms/cygwin/i686/i686-pc-cygwin-binutils.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-cloog-ppl.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-expat.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gcc.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-gmp.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-libs.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-mpc.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-mpfr.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-ncurses.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-readline.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-termcap.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-terminfo.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-w32api.spec contrib/crossrpms/cygwin/i686/i686-pc-cygwin-zlib.spec contrib/crossrpms/cygwin/i686/libs.add contrib/crossrpms/cygwin/i686/mpc.add contrib/crossrpms/cygwin/i686/mpfr.add contrib/crossrpms/cygwin/i686/ncurses.add contrib/crossrpms/cygwin/i686/readline.add contrib/crossrpms/cygwin/i686/target-cloog-ppl.add contrib/crossrpms/cygwin/i686/target-expat.add contrib/crossrpms/cygwin/i686/target-gmp.add contrib/crossrpms/cygwin/i686/target-libs.add contrib/crossrpms/cygwin/i686/target-mpc.add contrib/crossrpms/cygwin/i686/target-mpfr.add contrib/crossrpms/cygwin/i686/target-ncurses.add contrib/crossrpms/cygwin/i686/target-readline.add contrib/crossrpms/cygwin/i686/target-termcap.add contrib/crossrpms/cygwin/i686/target-terminfo.add contrib/crossrpms/cygwin/i686/target-w32api.add contrib/crossrpms/cygwin/i686/target-zlib.add contrib/crossrpms/cygwin/i686/termcap.add contrib/crossrpms/cygwin/i686/terminfo.add contrib/crossrpms/cygwin/i686/w32api.add contrib/crossrpms/cygwin/i686/zlib.add contrib/crossrpms/cygwin/mpc.am contrib/crossrpms/cygwin/mpfr.am contrib/crossrpms/cygwin/ncurses.am contrib/crossrpms/cygwin/readline.am contrib/crossrpms/cygwin/termcap.am contrib/crossrpms/cygwin/terminfo.am contrib/crossrpms/cygwin/w32api.am contrib/crossrpms/cygwin/zlib.am contrib/crossrpms/freebsd6.4/.cvsignore contrib/crossrpms/freebsd6.4/Makefile.am contrib/crossrpms/freebsd6.4/binutils.am contrib/crossrpms/freebsd6.4/gcc-prep.add contrib/crossrpms/freebsd6.4/gcc.am contrib/crossrpms/freebsd6.4/i586/.cvsignore contrib/crossrpms/freebsd6.4/i586/Makefile.am contrib/crossrpms/freebsd6.4/i586/binutils-sources.add contrib/crossrpms/freebsd6.4/i586/gcc-sources.add contrib/crossrpms/freebsd6.4/i586/i586-pc-freebsd6.4-binutils.spec contrib/crossrpms/freebsd6.4/i586/i586-pc-freebsd6.4-gcc.spec contrib/crossrpms/freebsd6.4/i586/i586-pc-freebsd6.4-libs.spec contrib/crossrpms/freebsd6.4/i586/libs.add contrib/crossrpms/freebsd6.4/i586/target-libs.add contrib/crossrpms/freebsd6.4/libs.am contrib/crossrpms/freebsd7.3/.cvsignore contrib/crossrpms/freebsd7.3/Makefile.am contrib/crossrpms/freebsd7.3/binutils.am contrib/crossrpms/freebsd7.3/gcc-prep.add contrib/crossrpms/freebsd7.3/gcc.am contrib/crossrpms/freebsd7.3/i586/.cvsignore contrib/crossrpms/freebsd7.3/i586/Makefile.am contrib/crossrpms/freebsd7.3/i586/binutils-sources.add contrib/crossrpms/freebsd7.3/i586/gcc-sources.add contrib/crossrpms/freebsd7.3/i586/i586-pc-freebsd7.3-binutils.spec contrib/crossrpms/freebsd7.3/i586/i586-pc-freebsd7.3-gcc.spec contrib/crossrpms/freebsd7.3/i586/i586-pc-freebsd7.3-libs.spec contrib/crossrpms/freebsd7.3/i586/libs.add contrib/crossrpms/freebsd7.3/i586/target-libs.add contrib/crossrpms/freebsd7.3/libs.am contrib/crossrpms/freebsd8.0/.cvsignore contrib/crossrpms/freebsd8.0/Makefile.am contrib/crossrpms/freebsd8.0/binutils.am contrib/crossrpms/freebsd8.0/gcc-prep.add contrib/crossrpms/freebsd8.0/gcc.am contrib/crossrpms/freebsd8.0/i586/.cvsignore contrib/crossrpms/freebsd8.0/i586/Makefile.am contrib/crossrpms/freebsd8.0/i586/binutils-sources.add contrib/crossrpms/freebsd8.0/i586/gcc-sources.add contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-binutils.spec contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-gcc.spec contrib/crossrpms/freebsd8.0/i586/i586-pc-freebsd8.0-libs.spec contrib/crossrpms/freebsd8.0/i586/libs.add contrib/crossrpms/freebsd8.0/i586/target-libs.add contrib/crossrpms/freebsd8.0/libs.am contrib/crossrpms/freebsd8.0/x86_64/.cvsignore contrib/crossrpms/freebsd8.0/x86_64/Makefile.am contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-binutils.spec contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-gcc.spec contrib/crossrpms/freebsd8.0/x86_64/amd64-pc-freebsd8.0-libs.spec contrib/crossrpms/freebsd8.0/x86_64/binutils-sources.add contrib/crossrpms/freebsd8.0/x86_64/gcc-sources.add contrib/crossrpms/freebsd8.0/x86_64/libs.add contrib/crossrpms/freebsd8.0/x86_64/target-libs.add contrib/crossrpms/mingw32/.cvsignore contrib/crossrpms/mingw32/Makefile.am contrib/crossrpms/mingw32/gmp.am contrib/crossrpms/mingw32/i686/.cvsignore contrib/crossrpms/mingw32/i686/Makefile.am contrib/crossrpms/mingw32/i686/gmp.add contrib/crossrpms/mingw32/i686/i686-pc-mingw32-binutils-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-binutils-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-curses-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-curses-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-expat-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-expat-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gcc-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gcc-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-gmp.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-libs-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-libs-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-mpc.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-mpfr.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-readline-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-readline-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-termcap-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-termcap-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-w32api-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-w32api-helper.spec.in contrib/crossrpms/mingw32/i686/i686-pc-mingw32-zlib-helper.spec contrib/crossrpms/mingw32/i686/i686-pc-mingw32-zlib-helper.spec.in contrib/crossrpms/mingw32/i686/mpc.add contrib/crossrpms/mingw32/i686/mpfr.add contrib/crossrpms/mingw32/i686/target-gmp.add contrib/crossrpms/mingw32/i686/target-mpc.add contrib/crossrpms/mingw32/i686/target-mpfr.add contrib/crossrpms/mingw32/mpc.am contrib/crossrpms/mingw32/mpfr.am contrib/crossrpms/netbsd5.0.2/.cvsignore contrib/crossrpms/netbsd5.0.2/Makefile.am contrib/crossrpms/netbsd5.0.2/binutils.am contrib/crossrpms/netbsd5.0.2/gcc-prep.add contrib/crossrpms/netbsd5.0.2/gcc.am contrib/crossrpms/netbsd5.0.2/i386/.cvsignore contrib/crossrpms/netbsd5.0.2/i386/Makefile.am contrib/crossrpms/netbsd5.0.2/i386/binutils-sources.add contrib/crossrpms/netbsd5.0.2/i386/gcc-sources.add contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-binutils.spec contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-gcc.spec contrib/crossrpms/netbsd5.0.2/i386/i386-pc-netbsdelf5.0.2-libs.spec contrib/crossrpms/netbsd5.0.2/i386/libs.add contrib/crossrpms/netbsd5.0.2/i386/target-libs.add contrib/crossrpms/netbsd5.0.2/libs.am contrib/crossrpms/netbsd5.0.2/x86_64/.cvsignore contrib/crossrpms/netbsd5.0.2/x86_64/Makefile.am contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-binutils.spec contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-gcc.spec contrib/crossrpms/netbsd5.0.2/x86_64/amd64-pc-netbsdelf5.0.2-libs.spec contrib/crossrpms/netbsd5.0.2/x86_64/binutils-sources.add contrib/crossrpms/netbsd5.0.2/x86_64/gcc-sources.add contrib/crossrpms/netbsd5.0.2/x86_64/libs.add contrib/crossrpms/netbsd5.0.2/x86_64/target-libs.add contrib/crossrpms/solaris2.7/.cvsignore contrib/crossrpms/solaris2.7/Makefile.am contrib/crossrpms/solaris2.7/binutils.am contrib/crossrpms/solaris2.7/gcc-prep.add contrib/crossrpms/solaris2.7/gcc.am contrib/crossrpms/solaris2.7/libs.am contrib/crossrpms/solaris2.7/sparc/.cvsignore contrib/crossrpms/solaris2.7/sparc/Makefile.am contrib/crossrpms/solaris2.7/sparc/binutils-sources.add contrib/crossrpms/solaris2.7/sparc/gcc-sources.add contrib/crossrpms/solaris2.7/sparc/libs.add contrib/crossrpms/solaris2.7/sparc/sparc-sun-solaris2.7-binutils.spec contrib/crossrpms/solaris2.7/sparc/sparc-sun-solaris2.7-gcc.spec contrib/crossrpms/solaris2.7/sparc/sparc-sun-solaris2.7-libs.spec contrib/crossrpms/solaris2.7/sparc/target-libs.add cpukit/zlib/CMakeLists.txt cpukit/zlib/ChangeLog cpukit/zlib/ChangeLog.zlib cpukit/zlib/FAQ cpukit/zlib/Makefile.am cpukit/zlib/README cpukit/zlib/adler32.c cpukit/zlib/algorithm.txt cpukit/zlib/compress.c cpukit/zlib/contrib/amd64/amd64-match.S cpukit/zlib/contrib/gcc_gvmat64/gvmat64.S cpukit/zlib/contrib/masmx86/match686.asm cpukit/zlib/contrib/vstudio/vc10/miniunz.vcxproj cpukit/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/miniunz.vcxproj.user cpukit/zlib/contrib/vstudio/vc10/minizip.vcxproj cpukit/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/minizip.vcxproj.user cpukit/zlib/contrib/vstudio/vc10/testzlib.vcxproj cpukit/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/testzlib.vcxproj.user cpukit/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj cpukit/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.user cpukit/zlib/contrib/vstudio/vc10/zlibstat.vcxproj cpukit/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.user cpukit/zlib/contrib/vstudio/vc10/zlibvc.sln cpukit/zlib/contrib/vstudio/vc10/zlibvc.vcxproj cpukit/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters cpukit/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.user cpukit/zlib/contrib/vstudio/vc9/miniunz.vcproj cpukit/zlib/contrib/vstudio/vc9/minizip.vcproj cpukit/zlib/contrib/vstudio/vc9/testzlib.vcproj cpukit/zlib/contrib/vstudio/vc9/testzlibdll.vcproj cpukit/zlib/contrib/vstudio/vc9/zlibstat.vcproj cpukit/zlib/contrib/vstudio/vc9/zlibvc.sln cpukit/zlib/contrib/vstudio/vc9/zlibvc.vcproj cpukit/zlib/crc32.c cpukit/zlib/deflate.c cpukit/zlib/deflate.h cpukit/zlib/doc/rfc1950.txt cpukit/zlib/doc/rfc1951.txt cpukit/zlib/doc/rfc1952.txt cpukit/zlib/doc/txtvsbin.txt cpukit/zlib/examples/enough.c cpukit/zlib/examples/gun.c cpukit/zlib/examples/zran.c cpukit/zlib/gzio.c cpukit/zlib/infback.c cpukit/zlib/inffast.c cpukit/zlib/inflate.c cpukit/zlib/inflate.h cpukit/zlib/inftrees.c cpukit/zlib/inftrees.h cpukit/zlib/nintendods/Makefile cpukit/zlib/nintendods/README cpukit/zlib/old/as400/bndsrc cpukit/zlib/old/as400/compile.clp cpukit/zlib/old/as400/readme.txt cpukit/zlib/old/as400/zlib.inc cpukit/zlib/old/visualc6/README.txt cpukit/zlib/old/visualc6/example.dsp cpukit/zlib/old/visualc6/minigzip.dsp cpukit/zlib/old/visualc6/zlib.dsp cpukit/zlib/old/visualc6/zlib.dsw cpukit/zlib/trees.c cpukit/zlib/uncompr.c cpukit/zlib/watcom/watcom_f.mak cpukit/zlib/watcom/watcom_l.mak cpukit/zlib/win32/README-WIN32.txt cpukit/zlib/zconf.h cpukit/zlib/zlib.3 cpukit/zlib/zlib.h cpukit/zlib/zlib.map cpukit/zlib/zlib.pc.in cpukit/zlib/zlib2ansi cpukit/zlib/zutil.c cpukit/zlib/zutil.h
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i686
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add $(srcdir)/../binutils.am
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
| $(MKSPEC0) \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
> $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-cloog-ppl.add
|
|
||||||
EXTRA_DIST += cloog-ppl.add
|
|
||||||
|
|
||||||
CLOOG_PPL_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(srcdir)/cloog-ppl.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(srcdir)/target-cloog-ppl.add
|
|
||||||
|
|
||||||
$(TARGET)-cloog-ppl.spec.in: $(CLOOG_PPL_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(CLOOG_PPL_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]CLOOG_PPL_VERS[@]/$(CLOOG_PPL_VERS)/g" \
|
|
||||||
-e "s/[@]CLOOG_PPL_RPMREL[@]/$(CLOOG_PPL_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{cloog_ppl_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-cloog-ppl.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-cloog-ppl.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-cloog-ppl.spec: $(TARGET)-cloog-ppl.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-cloog-ppl.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-cloog-ppl.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-cloog-ppl.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
|
|
||||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
|
||||||
|
|
||||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(LIBS_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]CYGWIN_VERS[@]/$(CYGWIN_VERS)/g" \
|
|
||||||
-e "s/[@]CYGWIN_RPMREL[@]/$(CYGWIN_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{cygwin_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-libs.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-libs.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-expat.add
|
|
||||||
EXTRA_DIST += expat.add
|
|
||||||
|
|
||||||
EXPAT_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
EXPAT_SUBPACKAGES += $(srcdir)/expat.add
|
|
||||||
EXPAT_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
EXPAT_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
EXPAT_SUBPACKAGES += $(srcdir)/target-expat.add
|
|
||||||
|
|
||||||
$(TARGET)-expat.spec.in: $(EXPAT_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(EXPAT_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]EXPAT_VERS[@]/$(EXPAT_VERS)/g" \
|
|
||||||
-e "s/[@]EXPAT_RPMREL[@]/$(EXPAT_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{expat_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-expat.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-expat.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-expat.spec: $(TARGET)-expat.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-expat.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-expat.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-expat.spec
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# cygwin patches can't be directly applied through rpm
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%if "%{gcc_version}" < "4.0"
|
|
||||||
patch -p1 -t < %{PATCH70} || true
|
|
||||||
%else
|
|
||||||
patch -p2 -t < %{PATCH70} || true
|
|
||||||
%endif
|
|
||||||
%{?PATCH71:patch -p1 < %{PATCH71}}
|
|
||||||
cd ..
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/^BuildRequ.*[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "s,[@]tool_target[@]-w32api-sys-root,@tool_target@-w32api," \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-gmp.add
|
|
||||||
EXTRA_DIST += gmp.add
|
|
||||||
|
|
||||||
GMP_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GMP_SUBPACKAGES += $(srcdir)/gmp.add
|
|
||||||
GMP_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GMP_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GMP_SUBPACKAGES += $(srcdir)/target-gmp.add
|
|
||||||
|
|
||||||
$(TARGET)-gmp.spec.in: $(GMP_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(GMP_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]GMP_VERS[@]/$(GMP_VERS)/g" \
|
|
||||||
-e "s/[@]GMP_RPMREL[@]/$(GMP_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{gmp_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gmp.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gmp.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gmp.spec: $(TARGET)-gmp.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gmp.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gmp.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gmp.spec
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
*.spec.in
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i686-pc-cygwin
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
CYGWIN_VERS = 1.7.1-1
|
|
||||||
CYGWIN_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../cygwin.am
|
|
||||||
|
|
||||||
CLOOG_PPL_VERS = 0.15.7-1
|
|
||||||
CLOOG_PPL_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../cloog_ppl.am
|
|
||||||
|
|
||||||
W32API_VERS = 3.14-1
|
|
||||||
W32API_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../w32api.am
|
|
||||||
|
|
||||||
NCURSES_VERS = 5.7-18
|
|
||||||
NCURSES_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../ncurses.am
|
|
||||||
|
|
||||||
EXPAT_VERS = 2.0.1-1
|
|
||||||
EXPAT_RPMREL = 0.20090903.0%{?dist}
|
|
||||||
include ../expat.am
|
|
||||||
|
|
||||||
READLINE_VERS = 5.2.14-12
|
|
||||||
READLINE_RPMREL = 0.20090827.0%{?dist}
|
|
||||||
include ../readline.am
|
|
||||||
|
|
||||||
TERMCAP_VERS = 20050421-1
|
|
||||||
TERMCAP_RPMREL = 0.20090827.0%{?dist}
|
|
||||||
include ../termcap.am
|
|
||||||
|
|
||||||
TERMINFO_VERS = 5.7_20091114-13
|
|
||||||
TERMINFO_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../terminfo.am
|
|
||||||
|
|
||||||
ZLIB_VERS = 1.2.3-10
|
|
||||||
ZLIB_RPMREL = 0.20100319.0%{?dist}
|
|
||||||
include ../zlib.am
|
|
||||||
|
|
||||||
GMP_VERS = 4.3.1-3
|
|
||||||
GMP_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../gmp.am
|
|
||||||
|
|
||||||
MPC_VERS = 0.8-1
|
|
||||||
MPC_RPMREL = 0.20100322.0%{?dist}
|
|
||||||
include ../mpc.am
|
|
||||||
|
|
||||||
MPFR_VERS = 2.4.1-4
|
|
||||||
MPFR_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../mpfr.am
|
|
||||||
|
|
||||||
# Cygwin's binutils' versioning is bizarre
|
|
||||||
# Check bfd/configure for the real version number
|
|
||||||
BINUTILS_VERS = 2.19.51-1
|
|
||||||
BINUTILS_PKGVERS = 2.19.51-1
|
|
||||||
BINUTILS_RPMREL = 0.20100425.0
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS += --disable-infos
|
|
||||||
|
|
||||||
GCC_VERS = 3.4.4
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20100427.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=c,cxx
|
|
||||||
GCC_OPTS += --disable-infos
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_pkgvers}-src.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
%if "%{binutils_version}" == "2.17.50"
|
|
||||||
Patch0: binutils-2.17.50-cygwin-%{binutils_pkgvers}.diff
|
|
||||||
%endif
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define cloog_ppl_version @CLOOG_PPL_VERS@
|
|
||||||
%define cloog_ppl_rpmvers %{expand:%(echo @CLOOG_PPL_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-cloog-ppl
|
|
||||||
Release: @CLOOG_PPL_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cloog_ppl_rpmvers
|
|
||||||
Summary: Cygwin cloog-ppl Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/cloog-ppl-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog0/libcloog0-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog-devel/libcloog-devel-%{cloog_ppl_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-cloog-ppl = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-cloog-ppl-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
%define expat_version @EXPAT_VERS@
|
|
||||||
%define expat_rpmvers %{expand:%(echo @EXPAT_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-expat
|
|
||||||
Release: @EXPAT_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %expat_rpmvers
|
|
||||||
Summary: Cygwin expat Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1/libexpat1-%{expat_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1-devel/libexpat1-devel-%{expat_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-expat-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin expat libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH1@
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
%{?_without_sources:NoSource: 3}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
%{?_without_sources:NoSource: 4}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" == "3.4.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc/gcc-3.4.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc-3.4.4-3.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc-3.4.4-3.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.3.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc4-4.3.4-3.src.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc4-4.3.4-3.diff
|
|
||||||
%endif
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define gmp_version @GMP_VERS@
|
|
||||||
%define gmp_rpmvers %{expand:%(echo @GMP_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-gmp
|
|
||||||
Release: @GMP_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %gmp_rpmvers
|
|
||||||
Summary: Cygwin gmp Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp3/libgmp3-%{gmp_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp-devel/libgmp-devel-%{gmp_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-gmp-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin gmp libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define binutils_pkgvers 2.19.51-1
|
|
||||||
%define binutils_version 2.19.51-1
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "2.19.51-1" | tr - _ )}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-binutils
|
|
||||||
Summary: Binutils for target i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 0.20100425.0%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_pkgvers}-src.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
%if "%{binutils_version}" == "2.17.50"
|
|
||||||
Patch0: binutils-2.17.50-cygwin-%{binutils_pkgvers}.diff
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target i686-pc-cygwin
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i686-pc-cygwin \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/i686-pc-cygwin/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i686-pc-cygwin-binutils
|
|
||||||
# Summary: rtems binutils for i686-pc-cygwin
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-binutils
|
|
||||||
GNU binutils targetting i686-pc-cygwin.
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-*.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin/bin
|
|
||||||
%{_exec_prefix}/i686-pc-cygwin/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin/lib
|
|
||||||
%{_exec_prefix}/i686-pc-cygwin/lib/ldscripts
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cloog_ppl_version 0.15.7-1
|
|
||||||
%define cloog_ppl_rpmvers %{expand:%(echo 0.15.7-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-cloog-ppl
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cloog_ppl_rpmvers
|
|
||||||
Summary: Cygwin cloog-ppl Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/cloog-ppl-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog0/libcloog0-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog-devel/libcloog-devel-%{cloog_ppl_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-cloog-ppl = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-cloog-ppl-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define expat_version 2.0.1-1
|
|
||||||
%define expat_rpmvers %{expand:%(echo 2.0.1-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-expat
|
|
||||||
Release: 0.20090903.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %expat_rpmvers
|
|
||||||
Summary: Cygwin expat Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1/libexpat1-%{expat_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1-devel/libexpat1-devel-%{expat_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-expat-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin expat libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,697 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 3.4.4
|
|
||||||
%define gcc_version 3.4.4
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "3.4.4" | tr - _ )}
|
|
||||||
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-gcc
|
|
||||||
Summary: i686-pc-cygwin gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 0.20100427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
|
||||||
%bcond_with lto
|
|
||||||
|
|
||||||
# FIXME: Disable python gdb scripts
|
|
||||||
# ATM, no idea how to package them
|
|
||||||
%bcond_with pygdb
|
|
||||||
|
|
||||||
# FIXME: Disable GCC-plugin
|
|
||||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
|
||||||
%bcond_with plugin
|
|
||||||
|
|
||||||
# versions of libraries, we conditionally bundle if necessary
|
|
||||||
%global mpc_version 0.8.1
|
|
||||||
%global mpfr_version 2.4.1
|
|
||||||
%global gmp_version 4.3.2
|
|
||||||
%global libelf_version 0.8.13
|
|
||||||
|
|
||||||
# versions of libraries these distros are known to ship
|
|
||||||
%if 0%{?fc13}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc12}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc11}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.2.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el6}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el5}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided %{nil}
|
|
||||||
%global gmp_provided 4.1.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_0}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.1
|
|
||||||
%global gmp_provided 4.2.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_1}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.2
|
|
||||||
%global gmp_provided 4.2.3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_2}
|
|
||||||
%global mpc_provided 0.7
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?cygwin}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?mingw32}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
|
||||||
%define cloog_required 0.15
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.4.0"
|
|
||||||
%define mpfr_required 2.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%define mpc_required 0.8
|
|
||||||
%if %{with lto}
|
|
||||||
%define libelf_required 0.8.12
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined mpc_required}
|
|
||||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
|
||||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
|
||||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpc 1
|
|
||||||
%define gmp_required 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined gmp_required}
|
|
||||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
|
||||||
BuildRequires: gmp-devel >= %{gmp_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_gmp 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined libelf_required}
|
|
||||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
|
||||||
BuildRequires: libelf-devel >= %{libelf_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_libelf 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined cloog_required}
|
|
||||||
%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined mpfr_required}
|
|
||||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
|
||||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpfr 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i686-pc-cygwin-gcc = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: i686-pc-cygwin-binutils
|
|
||||||
BuildRequires: i686-pc-cygwin-sys-root
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-binutils
|
|
||||||
Requires: i686-pc-cygwin-sys-root
|
|
||||||
Requires: i686-pc-cygwin-w32api
|
|
||||||
Requires: i686-pc-cygwin-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _gcclibdir %{_prefix}/lib
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" == "3.4.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc/gcc-3.4.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc-3.4.4-3.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc-3.4.4-3.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.3.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc4-4.3.4-3.src.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc4-4.3.4-3.diff
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for i686-pc-cygwin.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a1
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a61
|
|
||||||
%{?PATCH61:%patch61 -p1}
|
|
||||||
# Build mpc one-tree style
|
|
||||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a62
|
|
||||||
%{?PATCH62:%patch62 -p1}
|
|
||||||
# Build gmp one-tree style
|
|
||||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a63
|
|
||||||
%{?PATCH63:%patch63 -p1}
|
|
||||||
# Build libelf one-tree style
|
|
||||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# cygwin patches can't be directly applied through rpm
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%if "%{gcc_version}" < "4.0"
|
|
||||||
patch -p1 -t < %{PATCH70} || true
|
|
||||||
%else
|
|
||||||
patch -p2 -t < %{PATCH70} || true
|
|
||||||
%endif
|
|
||||||
%{?PATCH71:patch -p1 < %{PATCH71}}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Fix timestamps
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
contrib/gcc_update --touch
|
|
||||||
cd ..
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
languages="c"
|
|
||||||
languages="$languages,c++"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
# gcc is not ready to be compiled with -std=gnu99
|
|
||||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
|
||||||
%endif
|
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--exec_prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} \
|
|
||||||
--libdir=%{_gcclibdir} \
|
|
||||||
--libexecdir=%{_libexecdir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i686-pc-cygwin \
|
|
||||||
--disable-libstdcxx-pch \
|
|
||||||
--with-gnu-as --with-gnu-ld --verbose \
|
|
||||||
--with-newlib \
|
|
||||||
--with-system-zlib \
|
|
||||||
--disable-nls --without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--enable-version-specific-runtime-libs \
|
|
||||||
--enable-threads \
|
|
||||||
--with-sysroot=%{_exec_prefix}/i686-pc-cygwin/sys-root \
|
|
||||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
|
||||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
|
||||||
--enable-languages="$languages" $optargs
|
|
||||||
|
|
||||||
%if "%_host" != "%_build"
|
|
||||||
# Bug in gcc-3.2.1:
|
|
||||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
|
||||||
mkdir -p gcc/include
|
|
||||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" <= "4.1.2"
|
|
||||||
# Misplaced header file
|
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
|
||||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# host library
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
# libiberty doesn't honor --libdir, but always installs to a
|
|
||||||
# magically guessed _libdir
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
|
||||||
%else
|
|
||||||
# libiberty installs to --libdir=...
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use the version from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-c++filt%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native GCC's infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# Conflict with a native GCC's man pages
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
|
||||||
|
|
||||||
# Bug in gcc-3.4.0pre
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-i686-pc-cygwin-gcjh%{_exeext}
|
|
||||||
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
|
||||||
# the fixinclude-install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/install-tools
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits; then
|
|
||||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
|
||||||
%if ! %{with pygdb}
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
|
||||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
|
||||||
|
|
||||||
|
|
||||||
rm -f dirs ;
|
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}"
|
|
||||||
for i in $multilibs; do
|
|
||||||
case $i in
|
|
||||||
\.) ;; # ignore, handled elsewhere
|
|
||||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Collect files to go into different packages
|
|
||||||
cp dirs build/files.gcc
|
|
||||||
cp dirs build/files.gfortran
|
|
||||||
cp dirs build/files.objc
|
|
||||||
cp dirs build/files.gcj
|
|
||||||
cp dirs build/files.g++
|
|
||||||
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
|
||||||
*f771) ;;
|
|
||||||
*f951) ;;
|
|
||||||
*cc1) ;;
|
|
||||||
*cc1obj) ;;
|
|
||||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
|
||||||
*collect2) ;;
|
|
||||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
|
||||||
*include/objc*) ;;
|
|
||||||
*include/g++*);;
|
|
||||||
*include/c++*);;
|
|
||||||
*include-fixed/*);;
|
|
||||||
*finclude/*);;
|
|
||||||
*adainclude*);;
|
|
||||||
*adalib*);;
|
|
||||||
*gnat1);;
|
|
||||||
*jc1) ;;
|
|
||||||
*jvgenmain) ;;
|
|
||||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
|
||||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
|
||||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
|
||||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*) echo "$i" >> build/files.gcc ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
TGTDIR="%{_exec_prefix}/i686-pc-cygwin/lib"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
|
||||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
|
||||||
# all other files belong to newlib
|
|
||||||
*) echo "$i" >> build/files.newlib ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i686-pc-cygwin-gcc
|
|
||||||
# Summary: GNU cc compiler for i686-pc-cygwin
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: i686-pc-cygwin-binutils
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc
|
|
||||||
GNU cc compiler for i686-pc-cygwin.
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc-libgcc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i686-pc-cygwin-gcc-libgcc
|
|
||||||
Summary: libgcc for i686-pc-cygwin-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-libgcc
|
|
||||||
libgcc i686-pc-cygwin-gcc.
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-gcc.1*
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-cpp.1*
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-gcov.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-cpp%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcc%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcov%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gccbug
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/collect2%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%{?with_lto:%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/lto%{_exeext}}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/lto-wrapper%{_exeext}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-libgcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include
|
|
||||||
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include-fixed
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc-c++
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i686-pc-cygwin-gcc-c++
|
|
||||||
Summary: GCC c++ compiler for i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
Requires: i686-pc-cygwin-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i686-pc-cygwin-gcc-c++ = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-c++
|
|
||||||
GCC c++ compiler for i686-pc-cygwin.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n i686-pc-cygwin-gcc-libstdc++
|
|
||||||
Summary: libstdc++ for i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-libstdc++
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-c++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-g++.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-c++%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-g++%{_exeext}
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/cc1plus%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-libstdc++ -f build/files.g++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/c++
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define gmp_version 4.3.1-3
|
|
||||||
%define gmp_rpmvers %{expand:%(echo 4.3.1-3 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-gmp
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %gmp_rpmvers
|
|
||||||
Summary: Cygwin gmp Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp3/libgmp3-%{gmp_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp-devel/libgmp-devel-%{gmp_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-gmp-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin gmp libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cygwin_version 1.7.1-1
|
|
||||||
%define cygwin_rpmvers %{expand:%(echo 1.7.1-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cygwin_rpmvers
|
|
||||||
Summary: i686-pc-cygwin libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%description
|
|
||||||
i686-pc-cygwin libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define mpc_version 0.8-1
|
|
||||||
%define mpc_rpmvers %{expand:%(echo 0.8-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-mpc
|
|
||||||
Release: 0.20100322.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpc_rpmvers
|
|
||||||
Summary: Cygwin mpc Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpclib/mpclib-%{mpc_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc1/libmpc1-%{mpc_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc-devel/libmpc-devel-%{mpc_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-mpc-devel = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-libmpc = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-libmpc-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define mpfr_version 2.4.1-4
|
|
||||||
%define mpfr_rpmvers %{expand:%(echo 2.4.1-4 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-mpfr
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpfr_rpmvers
|
|
||||||
Summary: Cygwin mpfr Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpfr/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr1/libmpfr1-%{mpfr_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr-devel/libmpfr-devel-%{mpfr_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-mpfr-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin mpfr libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define ncurses_version 5.7-18
|
|
||||||
%define ncurses_rpmvers %{expand:%(echo 5.7-18 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-ncurses
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %ncurses_rpmvers
|
|
||||||
Summary: Cygwin ncurses Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/ncurses-%{ncurses_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses10/libncurses10-%{ncurses_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{ncurses_version}.tar.bz2
|
|
||||||
|
|
||||||
BuildRequires: i686-pc-cygwin-terminfo
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-libncurses-devel = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-ncurses-devel = %{version}-%{release}
|
|
||||||
Requires: i686-pc-cygwin-terminfo
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin ncurses libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s,^prefix=.*$,prefix=$RPM_BUILD_ROOT%{_prefix}/i686-pc-cygwin/sys-root/usr," \
|
|
||||||
< i686-pc-cygwin/sys-root/etc/postinstall/libncurses-devel.sh \
|
|
||||||
> postinst.sh
|
|
||||||
|
|
||||||
/bin/sh -x ./postinst.sh
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define readline_version 5.2.14-12
|
|
||||||
%define readline_rpmvers %{expand:%(echo 5.2.14-12 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-readline
|
|
||||||
Release: 0.20090827.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %readline_rpmvers
|
|
||||||
Summary: Cygwin readline Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/readline/readline-%{readline_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/readline/libreadline6/libreadline6-%{readline_version}.tar.bz2
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-libncurses-devel
|
|
||||||
Provides: i686-pc-cygwin-readline-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin readline libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define termcap_version 20050421-1
|
|
||||||
%define termcap_rpmvers %{expand:%(echo 20050421-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-termcap
|
|
||||||
Release: 0.20090827.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %termcap_rpmvers
|
|
||||||
Summary: Cygwin termcap Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/termcap/termcap-%{termcap_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-termcap-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin termcap libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define terminfo_version 5.7_20091114-13
|
|
||||||
%define terminfo_rpmvers %{expand:%(echo 5.7_20091114-13 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-terminfo
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %terminfo_rpmvers
|
|
||||||
Summary: Cygwin terminfo Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/terminfo/terminfo-%{terminfo_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-terminfo-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin terminfo libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define w32api_version 3.14-1
|
|
||||||
%define w32api_rpmvers %{expand:%(echo 3.14-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-w32api
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %w32api_rpmvers
|
|
||||||
Summary: Cygwin w32api Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin w32api libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
mkdir -p i686-pc-cygwin
|
|
||||||
cp -a usr/lib usr/include i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/lib
|
|
||||||
%{_prefix}/i686-pc-cygwin/include
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define zlib_version 1.2.3-10
|
|
||||||
%define zlib_rpmvers %{expand:%(echo 1.2.3-10 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-zlib
|
|
||||||
Release: 0.20100319.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %zlib_rpmvers
|
|
||||||
Summary: Cygwin zlib Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-devel/zlib-devel-%{zlib_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/zlib/zlib0/zlib0-%{zlib_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-zlib-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin zlib libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
%define cygwin_version @CYGWIN_VERS@
|
|
||||||
%define cygwin_rpmvers %{expand:%(echo @CYGWIN_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@
|
|
||||||
Release: @CYGWIN_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cygwin_rpmvers
|
|
||||||
Summary: @tool_target@ libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%description
|
|
||||||
@tool_target@ libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
%define mpc_version @MPC_VERS@
|
|
||||||
%define mpc_rpmvers %{expand:%(echo @MPC_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-mpc
|
|
||||||
Release: @MPC_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpc_rpmvers
|
|
||||||
Summary: Cygwin mpc Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpclib/mpclib-%{mpc_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc1/libmpc1-%{mpc_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc-devel/libmpc-devel-%{mpc_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-mpc-devel = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-libmpc = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-libmpc-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define mpfr_version @MPFR_VERS@
|
|
||||||
%define mpfr_rpmvers %{expand:%(echo @MPFR_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-mpfr
|
|
||||||
Release: @MPFR_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpfr_rpmvers
|
|
||||||
Summary: Cygwin mpfr Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpfr/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr1/libmpfr1-%{mpfr_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr-devel/libmpfr-devel-%{mpfr_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-mpfr-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin mpfr libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
%define ncurses_version @NCURSES_VERS@
|
|
||||||
%define ncurses_rpmvers %{expand:%(echo @NCURSES_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-ncurses
|
|
||||||
Release: @NCURSES_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %ncurses_rpmvers
|
|
||||||
Summary: Cygwin ncurses Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/ncurses-%{ncurses_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses10/libncurses10-%{ncurses_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{ncurses_version}.tar.bz2
|
|
||||||
|
|
||||||
BuildRequires: @rpmprefix@@tool_target@-terminfo
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-libncurses-devel = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-ncurses-devel = %{version}-%{release}
|
|
||||||
Requires: @rpmprefix@@tool_target@-terminfo
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin ncurses libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s,^prefix=.*$,prefix=$RPM_BUILD_ROOT%{_prefix}/@tool_target@/sys-root/usr," \
|
|
||||||
< @tool_target@/sys-root/etc/postinstall/libncurses-devel.sh \
|
|
||||||
> postinst.sh
|
|
||||||
|
|
||||||
/bin/sh -x ./postinst.sh
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
%define readline_version @READLINE_VERS@
|
|
||||||
%define readline_rpmvers %{expand:%(echo @READLINE_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-readline
|
|
||||||
Release: @READLINE_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %readline_rpmvers
|
|
||||||
Summary: Cygwin readline Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/readline/readline-%{readline_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/readline/libreadline6/libreadline6-%{readline_version}.tar.bz2
|
|
||||||
|
|
||||||
Requires: @rpmprefix@@tool_target@-libncurses-devel
|
|
||||||
Provides: @rpmprefix@@tool_target@-readline-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin readline libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/lib
|
|
||||||
%{_prefix}/@tool_target@/include
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
%define termcap_version @TERMCAP_VERS@
|
|
||||||
%define termcap_rpmvers %{expand:%(echo @TERMCAP_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-termcap
|
|
||||||
Release: @TERMCAP_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %termcap_rpmvers
|
|
||||||
Summary: Cygwin termcap Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/termcap/termcap-%{termcap_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-termcap-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin termcap libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
%define terminfo_version @TERMINFO_VERS@
|
|
||||||
%define terminfo_rpmvers %{expand:%(echo @TERMINFO_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-terminfo
|
|
||||||
Release: @TERMINFO_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %terminfo_rpmvers
|
|
||||||
Summary: Cygwin terminfo Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/terminfo/terminfo-%{terminfo_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-terminfo-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin terminfo libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
%define w32api_version @W32API_VERS@
|
|
||||||
%define w32api_rpmvers %{expand:%(echo @W32API_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-w32api
|
|
||||||
Release: @W32API_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %w32api_rpmvers
|
|
||||||
Summary: Cygwin w32api Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin w32api libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
mkdir -p @tool_target@
|
|
||||||
cp -a usr/lib usr/include @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
%define zlib_version @ZLIB_VERS@
|
|
||||||
%define zlib_rpmvers %{expand:%(echo @ZLIB_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-zlib
|
|
||||||
Release: @ZLIB_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %zlib_rpmvers
|
|
||||||
Summary: Cygwin zlib Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-devel/zlib-devel-%{zlib_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/zlib/zlib0/zlib0-%{zlib_version}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-zlib-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin zlib libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
EXTRA_DIST += target-mpc.add
|
|
||||||
EXTRA_DIST += mpc.add
|
|
||||||
|
|
||||||
MPC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
MPC_SUBPACKAGES += $(srcdir)/mpc.add
|
|
||||||
MPC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
MPC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
MPC_SUBPACKAGES += $(srcdir)/target-mpc.add
|
|
||||||
|
|
||||||
$(TARGET)-mpc.spec.in: $(MPC_SUBPACKAGES) Makefile.am $(srcdir)/../mpc.am
|
|
||||||
cat $(MPC_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]MPC_VERS[@]/$(MPC_VERS)/g" \
|
|
||||||
-e "s/[@]MPC_RPMREL[@]/$(MPC_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{mpc_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-mpc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-mpc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-mpc.spec: $(TARGET)-mpc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-mpc.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-mpc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-mpc.spec
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
EXTRA_DIST += target-mpfr.add
|
|
||||||
EXTRA_DIST += mpfr.add
|
|
||||||
|
|
||||||
MPFR_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
MPFR_SUBPACKAGES += $(srcdir)/mpfr.add
|
|
||||||
MPFR_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
MPFR_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
MPFR_SUBPACKAGES += $(srcdir)/target-mpfr.add
|
|
||||||
|
|
||||||
$(TARGET)-mpfr.spec.in: $(MPFR_SUBPACKAGES) Makefile.am $(srcdir)/../mpfr.am
|
|
||||||
cat $(MPFR_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]MPFR_VERS[@]/$(MPFR_VERS)/g" \
|
|
||||||
-e "s/[@]MPFR_RPMREL[@]/$(MPFR_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{mpfr_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-mpfr.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-mpfr.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-mpfr.spec: $(TARGET)-mpfr.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-mpfr.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-mpfr.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-mpfr.spec
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-ncurses.add
|
|
||||||
EXTRA_DIST += ncurses.add
|
|
||||||
|
|
||||||
NCURSES_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
NCURSES_SUBPACKAGES += $(srcdir)/ncurses.add
|
|
||||||
NCURSES_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
NCURSES_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
NCURSES_SUBPACKAGES += $(srcdir)/target-ncurses.add
|
|
||||||
|
|
||||||
$(TARGET)-ncurses.spec.in: $(NCURSES_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(NCURSES_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]NCURSES_VERS[@]/$(NCURSES_VERS)/g" \
|
|
||||||
-e "s/[@]NCURSES_RPMREL[@]/$(NCURSES_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{ncurses_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-ncurses.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-ncurses.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-ncurses.spec: $(TARGET)-ncurses.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-ncurses.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-ncurses.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-ncurses.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-readline.add
|
|
||||||
EXTRA_DIST += readline.add
|
|
||||||
|
|
||||||
READLINE_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
READLINE_SUBPACKAGES += $(srcdir)/readline.add
|
|
||||||
READLINE_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
READLINE_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
READLINE_SUBPACKAGES += $(srcdir)/target-readline.add
|
|
||||||
|
|
||||||
$(TARGET)-readline.spec.in: $(READLINE_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(READLINE_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]READLINE_VERS[@]/$(READLINE_VERS)/g" \
|
|
||||||
-e "s/[@]READLINE_RPMREL[@]/$(READLINE_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{readline_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-readline.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-readline.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-readline.spec: $(TARGET)-readline.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-readline.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-readline.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-readline.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-termcap.add
|
|
||||||
EXTRA_DIST += termcap.add
|
|
||||||
|
|
||||||
TERMCAP_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(srcdir)/termcap.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(srcdir)/target-termcap.add
|
|
||||||
|
|
||||||
$(TARGET)-termcap.spec.in: $(TERMCAP_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(TERMCAP_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]TERMCAP_VERS[@]/$(TERMCAP_VERS)/g" \
|
|
||||||
-e "s/[@]TERMCAP_RPMREL[@]/$(TERMCAP_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{termcap_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-termcap.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-termcap.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-termcap.spec: $(TARGET)-termcap.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-termcap.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-termcap.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-termcap.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-terminfo.add
|
|
||||||
EXTRA_DIST += terminfo.add
|
|
||||||
|
|
||||||
TERMINFO_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(srcdir)/terminfo.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(srcdir)/target-terminfo.add
|
|
||||||
|
|
||||||
$(TARGET)-terminfo.spec.in: $(TERMINFO_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(TERMINFO_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]TERMINFO_VERS[@]/$(TERMINFO_VERS)/g" \
|
|
||||||
-e "s/[@]TERMINFO_RPMREL[@]/$(TERMINFO_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{terminfo_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-terminfo.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-terminfo.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-terminfo.spec: $(TARGET)-terminfo.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-terminfo.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-terminfo.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-terminfo.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-w32api.add
|
|
||||||
EXTRA_DIST += w32api.add
|
|
||||||
|
|
||||||
W32API_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
W32API_SUBPACKAGES += $(srcdir)/w32api.add
|
|
||||||
W32API_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
W32API_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
W32API_SUBPACKAGES += $(srcdir)/target-w32api.add
|
|
||||||
|
|
||||||
$(TARGET)-w32api.spec.in: $(W32API_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(W32API_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]W32API_VERS[@]/$(W32API_VERS)/g" \
|
|
||||||
-e "s/[@]W32API_RPMREL[@]/$(W32API_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{w32api_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-w32api.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-w32api.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-w32api.spec: $(TARGET)-w32api.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-w32api.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-w32api.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-w32api.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-zlib.add
|
|
||||||
EXTRA_DIST += zlib.add
|
|
||||||
|
|
||||||
ZLIB_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
ZLIB_SUBPACKAGES += $(srcdir)/zlib.add
|
|
||||||
ZLIB_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
ZLIB_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
ZLIB_SUBPACKAGES += $(srcdir)/target-zlib.add
|
|
||||||
|
|
||||||
$(TARGET)-zlib.spec.in: $(ZLIB_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(ZLIB_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]ZLIB_VERS[@]/$(ZLIB_VERS)/g" \
|
|
||||||
-e "s/[@]ZLIB_RPMREL[@]/$(ZLIB_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{zlib_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-zlib.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-zlib.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-zlib.spec: $(TARGET)-zlib.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-zlib.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-zlib.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-zlib.spec
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i586
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) \
|
|
||||||
| sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
| sed \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "/--with-newlib/d" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
rtems*.spec
|
|
||||||
*.spec.in
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i586-pc-freebsd6.4
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
FREEBSD_VERS = 6.4
|
|
||||||
FREEBSD_RPMREL = 0.20090827.1
|
|
||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
include ../libs.am
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.20.1
|
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
|
||||||
BINUTILS_RPMREL = 0.20100305.1
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS +=
|
|
||||||
|
|
||||||
GCC_VERS = 4.5.0
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20100427.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=cxx,fortran,objc
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH1@
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
%{?_without_sources:NoSource: 3}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
%{?_without_sources:NoSource: 4}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
%endif
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define binutils_pkgvers 2.20.1
|
|
||||||
%define binutils_version 2.20.1
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd6.4-binutils
|
|
||||||
Summary: Binutils for target i586-pc-freebsd6.4
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 0.20100305.1%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target i586-pc-freebsd6.4
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd6.4 \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/i586-pc-freebsd6.4/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd6.4-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd6.4-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd6.4-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd6.4-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd6.4-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd6.4-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd6.4-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd6.4-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd6.4-binutils
|
|
||||||
# Summary: rtems binutils for i586-pc-freebsd6.4
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-binutils
|
|
||||||
GNU binutils targetting i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-*.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd6.4
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd6.4/bin
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd6.4/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd6.4/lib
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd6.4/lib/ldscripts
|
|
||||||
|
|
||||||
@@ -1,773 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 4.5.0
|
|
||||||
%define gcc_version 4.5.0
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
|
|
||||||
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd6.4-gcc
|
|
||||||
Summary: i586-pc-freebsd6.4 gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 0.20100427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
|
||||||
%bcond_with lto
|
|
||||||
|
|
||||||
# FIXME: Disable python gdb scripts
|
|
||||||
# ATM, no idea how to package them
|
|
||||||
%bcond_with pygdb
|
|
||||||
|
|
||||||
# FIXME: Disable GCC-plugin
|
|
||||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
|
||||||
%bcond_with plugin
|
|
||||||
|
|
||||||
# versions of libraries, we conditionally bundle if necessary
|
|
||||||
%global mpc_version 0.8.1
|
|
||||||
%global mpfr_version 2.4.1
|
|
||||||
%global gmp_version 4.3.2
|
|
||||||
%global libelf_version 0.8.13
|
|
||||||
|
|
||||||
# versions of libraries these distros are known to ship
|
|
||||||
%if 0%{?fc13}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc12}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc11}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.2.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el6}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el5}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided %{nil}
|
|
||||||
%global gmp_provided 4.1.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_0}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.1
|
|
||||||
%global gmp_provided 4.2.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_1}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.2
|
|
||||||
%global gmp_provided 4.2.3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_2}
|
|
||||||
%global mpc_provided 0.7
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?cygwin}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?mingw32}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.2.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
|
||||||
%define cloog_required 0.15
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.4.0"
|
|
||||||
%define mpfr_required 2.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%define mpc_required 0.8
|
|
||||||
%if %{with lto}
|
|
||||||
%define libelf_required 0.8.12
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined mpc_required}
|
|
||||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
|
||||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
|
||||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpc 1
|
|
||||||
%define gmp_required 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined gmp_required}
|
|
||||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
|
||||||
BuildRequires: gmp-devel >= %{gmp_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_gmp 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined libelf_required}
|
|
||||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
|
||||||
BuildRequires: libelf-devel >= %{libelf_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_libelf 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined cloog_required}
|
|
||||||
%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined mpfr_required}
|
|
||||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
|
||||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpfr 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd6.4-gcc = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: i586-pc-freebsd6.4-binutils
|
|
||||||
BuildRequires: i586-pc-freebsd6.4-sys-root
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd6.4-binutils
|
|
||||||
Requires: i586-pc-freebsd6.4-sys-root
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _gcclibdir %{_prefix}/lib
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a1
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a2
|
|
||||||
%{?PATCH2:%patch2 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a5
|
|
||||||
%{?PATCH5:%patch5 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a61
|
|
||||||
%{?PATCH61:%patch61 -p1}
|
|
||||||
# Build mpc one-tree style
|
|
||||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a62
|
|
||||||
%{?PATCH62:%patch62 -p1}
|
|
||||||
# Build gmp one-tree style
|
|
||||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a63
|
|
||||||
%{?PATCH63:%patch63 -p1}
|
|
||||||
# Build libelf one-tree style
|
|
||||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
# Fix timestamps
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
contrib/gcc_update --touch
|
|
||||||
cd ..
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
languages="c"
|
|
||||||
languages="$languages,c++"
|
|
||||||
languages="$languages,fortran"
|
|
||||||
languages="$languages,objc"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
# gcc is not ready to be compiled with -std=gnu99
|
|
||||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
|
||||||
%endif
|
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--exec_prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} \
|
|
||||||
--libdir=%{_gcclibdir} \
|
|
||||||
--libexecdir=%{_libexecdir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd6.4 \
|
|
||||||
--disable-libstdcxx-pch \
|
|
||||||
--with-gnu-as --with-gnu-ld --verbose \
|
|
||||||
--with-system-zlib \
|
|
||||||
--disable-nls --without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--enable-version-specific-runtime-libs \
|
|
||||||
--enable-threads \
|
|
||||||
--with-sysroot=%{_exec_prefix}/i586-pc-freebsd6.4/sys-root \
|
|
||||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
|
||||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
|
||||||
--enable-languages="$languages" $optargs
|
|
||||||
|
|
||||||
%if "%_host" != "%_build"
|
|
||||||
# Bug in gcc-3.2.1:
|
|
||||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
|
||||||
mkdir -p gcc/include
|
|
||||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" <= "4.1.2"
|
|
||||||
# Misplaced header file
|
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
|
||||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include/
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# host library
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
# libiberty doesn't honor --libdir, but always installs to a
|
|
||||||
# magically guessed _libdir
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
|
||||||
%else
|
|
||||||
# libiberty installs to --libdir=...
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use the version from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd6.4-c++filt%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native GCC's infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# Conflict with a native GCC's man pages
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
|
||||||
|
|
||||||
# Bug in gcc-3.4.0pre
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd6.4-i586-pc-freebsd6.4-gcjh%{_exeext}
|
|
||||||
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
|
||||||
# the fixinclude-install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/install-tools
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd6.4/include/bits; then
|
|
||||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd6.4/include/bits
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
|
||||||
%if ! %{with pygdb}
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
|
||||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
|
||||||
|
|
||||||
|
|
||||||
rm -f dirs ;
|
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}"
|
|
||||||
for i in $multilibs; do
|
|
||||||
case $i in
|
|
||||||
\.) ;; # ignore, handled elsewhere
|
|
||||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Collect files to go into different packages
|
|
||||||
cp dirs build/files.gcc
|
|
||||||
cp dirs build/files.gfortran
|
|
||||||
cp dirs build/files.objc
|
|
||||||
cp dirs build/files.gcj
|
|
||||||
cp dirs build/files.g++
|
|
||||||
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
|
||||||
*f771) ;;
|
|
||||||
*f951) ;;
|
|
||||||
*cc1) ;;
|
|
||||||
*cc1obj) ;;
|
|
||||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
|
||||||
*collect2) ;;
|
|
||||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
|
||||||
*include/objc*) ;;
|
|
||||||
*include/g++*);;
|
|
||||||
*include/c++*);;
|
|
||||||
*include-fixed/*);;
|
|
||||||
*finclude/*);;
|
|
||||||
*adainclude*);;
|
|
||||||
*adalib*);;
|
|
||||||
*gnat1);;
|
|
||||||
*jc1) ;;
|
|
||||||
*jvgenmain) ;;
|
|
||||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
|
||||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
|
||||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
|
||||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*) echo "$i" >> build/files.gcc ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
TGTDIR="%{_exec_prefix}/i586-pc-freebsd6.4/lib"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
|
||||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
|
||||||
# all other files belong to newlib
|
|
||||||
*) echo "$i" >> build/files.newlib ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd6.4/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd6.4/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd6.4/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd6.4/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd6.4-gcc
|
|
||||||
# Summary: GNU cc compiler for i586-pc-freebsd6.4
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: i586-pc-freebsd6.4-binutils
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc
|
|
||||||
GNU cc compiler for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-libgcc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-libgcc
|
|
||||||
Summary: libgcc for i586-pc-freebsd6.4-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-libgcc
|
|
||||||
libgcc i586-pc-freebsd6.4-gcc.
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-gcc.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-cpp.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-gcov.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-cpp%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-gcc%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-gcov%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-gccbug
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/collect2%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%{?with_lto:%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/lto%{_exeext}}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/lto-wrapper%{_exeext}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-libgcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include
|
|
||||||
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include-fixed
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-c++
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-c++
|
|
||||||
Summary: GCC c++ compiler for i586-pc-freebsd6.4
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd6.4-gcc-c++ = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-c++
|
|
||||||
GCC c++ compiler for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-libstdc++
|
|
||||||
Summary: libstdc++ for i586-pc-freebsd6.4
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-libstdc++
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-c++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-g++.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-c++%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-g++%{_exeext}
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/cc1plus%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-libstdc++ -f build/files.g++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include/c++
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-gfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-gfortran
|
|
||||||
Summary: Fortran 95 support for i586-pc-freebsd6.4-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc-libgfortran = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-gfortran
|
|
||||||
GCC fortran compiler for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/i586-pc-freebsd6.4-gfortran%{_exeext}
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd6.4-gfortran.1*
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/f951%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-libgfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-libgfortran
|
|
||||||
Summary: Fortran 95 support libraries for i586-pc-freebsd6.4-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-libgfortran
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-libgfortran -f build/files.gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/finclude
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-objc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-objc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd6.4-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd6.4-gcc-libobjc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-objc
|
|
||||||
GCC objc compiler for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/cc1obj%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd6.4-gcc-libobjc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd6.4-gcc-libobjc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd6.4-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd6.4-gcc-libobjc
|
|
||||||
Support libraries for GCC's objc compiler for i586-pc-freebsd6.4.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd6.4-gcc-libobjc -f build/files.objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd6.4/%{gcc_version}/include/objc
|
|
||||||
|
|
||||||
@@ -1,202 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define freebsd_version 6.4
|
|
||||||
%define freebsd_rpmvers %{expand:%(echo 6.4 | tr - _)}
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%define __debug_install_post %{nil}
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd6.4
|
|
||||||
Release: 0.20090827.1%{?dist}
|
|
||||||
License: FreeBSD
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %freebsd_rpmvers
|
|
||||||
Summary: i586-pc-freebsd6.4 Libraries
|
|
||||||
|
|
||||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.aa
|
|
||||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ab
|
|
||||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ac
|
|
||||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ad
|
|
||||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ae
|
|
||||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.af
|
|
||||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ag
|
|
||||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ah
|
|
||||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ai
|
|
||||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.aj
|
|
||||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ak
|
|
||||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.al
|
|
||||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.am
|
|
||||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.an
|
|
||||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ao
|
|
||||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ap
|
|
||||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.aq
|
|
||||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ar
|
|
||||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.as
|
|
||||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.at
|
|
||||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.au
|
|
||||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.av
|
|
||||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.aw
|
|
||||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ax
|
|
||||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ay
|
|
||||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.az
|
|
||||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.ba
|
|
||||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.bb
|
|
||||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.bc
|
|
||||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.bd
|
|
||||||
Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.4-RELEASE/base/base.be
|
|
||||||
|
|
||||||
%description
|
|
||||||
i586-pc-freebsd6.4 libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
cat \
|
|
||||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
|
||||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
|
||||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
|
||||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
|
||||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
|
||||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
|
||||||
%SOURCE30 \
|
|
||||||
| %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
|
|
||||||
|
|
||||||
%build
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i586-pc-freebsd6.4/sys-root
|
|
||||||
%{__tar} cf - lib usr/lib usr/include | ( cd i586-pc-freebsd6.4/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
pushd i586-pc-freebsd6.4/sys-root/usr/lib > /dev/null
|
|
||||||
# missing files
|
|
||||||
rm -f lib*_p.*
|
|
||||||
# not needed
|
|
||||||
rm -rf aout compat
|
|
||||||
|
|
||||||
# Fix up symlinks
|
|
||||||
find -type l -exec ls -l {} \; | \
|
|
||||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
|
||||||
case $aA in
|
|
||||||
/lib* ) # link
|
|
||||||
rm $a8;
|
|
||||||
b=`basename $aA`
|
|
||||||
ln -s ../../lib/$b $a8
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i586-pc-freebsd6.4 $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd6.4/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd6.4/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd6.4/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd6.4/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i586-pc-freebsd6.4 target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i586-pc-freebsd6.4 target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i586-pc-freebsd6.4
|
|
||||||
%{_prefix}/i586-pc-freebsd6.4/sys-root
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
%define freebsd_version @FREEBSD_VERS@
|
|
||||||
%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%define __debug_install_post %{nil}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@
|
|
||||||
Release: @FREEBSD_RPMREL@
|
|
||||||
License: FreeBSD
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %freebsd_rpmvers
|
|
||||||
Summary: @tool_target@ Libraries
|
|
||||||
|
|
||||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
|
|
||||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
|
|
||||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
|
|
||||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
|
|
||||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
|
|
||||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
|
|
||||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
|
|
||||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
|
|
||||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
|
|
||||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
|
|
||||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
|
|
||||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
|
|
||||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
|
|
||||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
|
|
||||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
|
|
||||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
|
|
||||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
|
|
||||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
|
|
||||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
|
|
||||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
|
|
||||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
|
|
||||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
|
|
||||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
|
|
||||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
|
|
||||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
|
|
||||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
|
|
||||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
|
|
||||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
|
|
||||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
|
|
||||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
|
|
||||||
Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.be
|
|
||||||
|
|
||||||
%description
|
|
||||||
@tool_target@ libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
cat \
|
|
||||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
|
||||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
|
||||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
|
||||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
|
||||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
|
||||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
|
||||||
%SOURCE30 \
|
|
||||||
| %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
|
|
||||||
|
|
||||||
%build
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
pushd @tool_target@/sys-root/usr/lib > /dev/null
|
|
||||||
# missing files
|
|
||||||
rm -f lib*_p.*
|
|
||||||
# not needed
|
|
||||||
rm -rf aout compat
|
|
||||||
|
|
||||||
# Fix up symlinks
|
|
||||||
find -type l -exec ls -l {} \; | \
|
|
||||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
|
||||||
case $aA in
|
|
||||||
/lib* ) # link
|
|
||||||
rm $a8;
|
|
||||||
b=`basename $aA`
|
|
||||||
ln -s ../../lib/$b $a8
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
|
||||||
|
|
||||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(LIBS_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
|
||||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)%{?dist}/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \
|
|
||||||
> $(TARGET)-libs.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-libs.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i586
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) \
|
|
||||||
| sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
| sed \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "/--with-newlib/d" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
rtems*.spec
|
|
||||||
*.spec.in
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i586-pc-freebsd7.3
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
FREEBSD_VERS = 7.3
|
|
||||||
FREEBSD_RPMREL = 0.20100416.1
|
|
||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
include ../libs.am
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.20.1
|
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
|
||||||
BINUTILS_RPMREL = 0.20100316.1
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS +=
|
|
||||||
|
|
||||||
GCC_VERS = 4.5.0
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20100427.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=cxx,fortran,objc
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH1@
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
%{?_without_sources:NoSource: 3}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
%{?_without_sources:NoSource: 4}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
%endif
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define binutils_pkgvers 2.20.1
|
|
||||||
%define binutils_version 2.20.1
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd7.3-binutils
|
|
||||||
Summary: Binutils for target i586-pc-freebsd7.3
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 0.20100316.1%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target i586-pc-freebsd7.3
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd7.3 \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/i586-pc-freebsd7.3/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd7.3-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd7.3-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd7.3-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd7.3-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd7.3-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd7.3-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd7.3-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd7.3-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd7.3-binutils
|
|
||||||
# Summary: rtems binutils for i586-pc-freebsd7.3
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-binutils
|
|
||||||
GNU binutils targetting i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-*.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd7.3
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd7.3/bin
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd7.3/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd7.3/lib
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd7.3/lib/ldscripts
|
|
||||||
|
|
||||||
@@ -1,773 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 4.5.0
|
|
||||||
%define gcc_version 4.5.0
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
|
|
||||||
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd7.3-gcc
|
|
||||||
Summary: i586-pc-freebsd7.3 gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 0.20100427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
|
||||||
%bcond_with lto
|
|
||||||
|
|
||||||
# FIXME: Disable python gdb scripts
|
|
||||||
# ATM, no idea how to package them
|
|
||||||
%bcond_with pygdb
|
|
||||||
|
|
||||||
# FIXME: Disable GCC-plugin
|
|
||||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
|
||||||
%bcond_with plugin
|
|
||||||
|
|
||||||
# versions of libraries, we conditionally bundle if necessary
|
|
||||||
%global mpc_version 0.8.1
|
|
||||||
%global mpfr_version 2.4.1
|
|
||||||
%global gmp_version 4.3.2
|
|
||||||
%global libelf_version 0.8.13
|
|
||||||
|
|
||||||
# versions of libraries these distros are known to ship
|
|
||||||
%if 0%{?fc13}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc12}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc11}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.2.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el6}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el5}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided %{nil}
|
|
||||||
%global gmp_provided 4.1.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_0}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.1
|
|
||||||
%global gmp_provided 4.2.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_1}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.2
|
|
||||||
%global gmp_provided 4.2.3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_2}
|
|
||||||
%global mpc_provided 0.7
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?cygwin}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?mingw32}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.2.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
|
||||||
%define cloog_required 0.15
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.4.0"
|
|
||||||
%define mpfr_required 2.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%define mpc_required 0.8
|
|
||||||
%if %{with lto}
|
|
||||||
%define libelf_required 0.8.12
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined mpc_required}
|
|
||||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
|
||||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
|
||||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpc 1
|
|
||||||
%define gmp_required 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined gmp_required}
|
|
||||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
|
||||||
BuildRequires: gmp-devel >= %{gmp_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_gmp 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined libelf_required}
|
|
||||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
|
||||||
BuildRequires: libelf-devel >= %{libelf_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_libelf 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined cloog_required}
|
|
||||||
%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined mpfr_required}
|
|
||||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
|
||||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpfr 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd7.3-gcc = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: i586-pc-freebsd7.3-binutils
|
|
||||||
BuildRequires: i586-pc-freebsd7.3-sys-root
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd7.3-binutils
|
|
||||||
Requires: i586-pc-freebsd7.3-sys-root
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _gcclibdir %{_prefix}/lib
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a1
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a2
|
|
||||||
%{?PATCH2:%patch2 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a5
|
|
||||||
%{?PATCH5:%patch5 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a61
|
|
||||||
%{?PATCH61:%patch61 -p1}
|
|
||||||
# Build mpc one-tree style
|
|
||||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a62
|
|
||||||
%{?PATCH62:%patch62 -p1}
|
|
||||||
# Build gmp one-tree style
|
|
||||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a63
|
|
||||||
%{?PATCH63:%patch63 -p1}
|
|
||||||
# Build libelf one-tree style
|
|
||||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
# Fix timestamps
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
contrib/gcc_update --touch
|
|
||||||
cd ..
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
languages="c"
|
|
||||||
languages="$languages,c++"
|
|
||||||
languages="$languages,fortran"
|
|
||||||
languages="$languages,objc"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
# gcc is not ready to be compiled with -std=gnu99
|
|
||||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
|
||||||
%endif
|
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--exec_prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} \
|
|
||||||
--libdir=%{_gcclibdir} \
|
|
||||||
--libexecdir=%{_libexecdir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd7.3 \
|
|
||||||
--disable-libstdcxx-pch \
|
|
||||||
--with-gnu-as --with-gnu-ld --verbose \
|
|
||||||
--with-system-zlib \
|
|
||||||
--disable-nls --without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--enable-version-specific-runtime-libs \
|
|
||||||
--enable-threads \
|
|
||||||
--with-sysroot=%{_exec_prefix}/i586-pc-freebsd7.3/sys-root \
|
|
||||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
|
||||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
|
||||||
--enable-languages="$languages" $optargs
|
|
||||||
|
|
||||||
%if "%_host" != "%_build"
|
|
||||||
# Bug in gcc-3.2.1:
|
|
||||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
|
||||||
mkdir -p gcc/include
|
|
||||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" <= "4.1.2"
|
|
||||||
# Misplaced header file
|
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
|
||||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include/
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# host library
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
# libiberty doesn't honor --libdir, but always installs to a
|
|
||||||
# magically guessed _libdir
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
|
||||||
%else
|
|
||||||
# libiberty installs to --libdir=...
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use the version from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.3-c++filt%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native GCC's infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# Conflict with a native GCC's man pages
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
|
||||||
|
|
||||||
# Bug in gcc-3.4.0pre
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.3-i586-pc-freebsd7.3-gcjh%{_exeext}
|
|
||||||
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
|
||||||
# the fixinclude-install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/install-tools
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.3/include/bits; then
|
|
||||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.3/include/bits
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
|
||||||
%if ! %{with pygdb}
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
|
||||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
|
||||||
|
|
||||||
|
|
||||||
rm -f dirs ;
|
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}"
|
|
||||||
for i in $multilibs; do
|
|
||||||
case $i in
|
|
||||||
\.) ;; # ignore, handled elsewhere
|
|
||||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Collect files to go into different packages
|
|
||||||
cp dirs build/files.gcc
|
|
||||||
cp dirs build/files.gfortran
|
|
||||||
cp dirs build/files.objc
|
|
||||||
cp dirs build/files.gcj
|
|
||||||
cp dirs build/files.g++
|
|
||||||
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
|
||||||
*f771) ;;
|
|
||||||
*f951) ;;
|
|
||||||
*cc1) ;;
|
|
||||||
*cc1obj) ;;
|
|
||||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
|
||||||
*collect2) ;;
|
|
||||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
|
||||||
*include/objc*) ;;
|
|
||||||
*include/g++*);;
|
|
||||||
*include/c++*);;
|
|
||||||
*include-fixed/*);;
|
|
||||||
*finclude/*);;
|
|
||||||
*adainclude*);;
|
|
||||||
*adalib*);;
|
|
||||||
*gnat1);;
|
|
||||||
*jc1) ;;
|
|
||||||
*jvgenmain) ;;
|
|
||||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
|
||||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
|
||||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
|
||||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*) echo "$i" >> build/files.gcc ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
TGTDIR="%{_exec_prefix}/i586-pc-freebsd7.3/lib"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
|
||||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
|
||||||
# all other files belong to newlib
|
|
||||||
*) echo "$i" >> build/files.newlib ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.3/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.3/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.3/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.3/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd7.3-gcc
|
|
||||||
# Summary: GNU cc compiler for i586-pc-freebsd7.3
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: i586-pc-freebsd7.3-binutils
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc
|
|
||||||
GNU cc compiler for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-libgcc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-libgcc
|
|
||||||
Summary: libgcc for i586-pc-freebsd7.3-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-libgcc
|
|
||||||
libgcc i586-pc-freebsd7.3-gcc.
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-gcc.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-cpp.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-gcov.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-cpp%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-gcc%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-gcov%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-gccbug
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/collect2%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%{?with_lto:%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/lto%{_exeext}}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/lto-wrapper%{_exeext}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-libgcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include
|
|
||||||
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include-fixed
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-c++
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-c++
|
|
||||||
Summary: GCC c++ compiler for i586-pc-freebsd7.3
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd7.3-gcc-c++ = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-c++
|
|
||||||
GCC c++ compiler for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-libstdc++
|
|
||||||
Summary: libstdc++ for i586-pc-freebsd7.3
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-libstdc++
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-c++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-g++.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-c++%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-g++%{_exeext}
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/cc1plus%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-libstdc++ -f build/files.g++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include/c++
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-gfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-gfortran
|
|
||||||
Summary: Fortran 95 support for i586-pc-freebsd7.3-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc-libgfortran = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-gfortran
|
|
||||||
GCC fortran compiler for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/i586-pc-freebsd7.3-gfortran%{_exeext}
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd7.3-gfortran.1*
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/f951%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-libgfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-libgfortran
|
|
||||||
Summary: Fortran 95 support libraries for i586-pc-freebsd7.3-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-libgfortran
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-libgfortran -f build/files.gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/finclude
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-objc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-objc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd7.3-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd7.3-gcc-libobjc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-objc
|
|
||||||
GCC objc compiler for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/cc1obj%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd7.3-gcc-libobjc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd7.3-gcc-libobjc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd7.3-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd7.3-gcc-libobjc
|
|
||||||
Support libraries for GCC's objc compiler for i586-pc-freebsd7.3.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd7.3-gcc-libobjc -f build/files.objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd7.3/%{gcc_version}/include/objc
|
|
||||||
|
|
||||||
@@ -1,206 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define freebsd_version 7.3
|
|
||||||
%define freebsd_rpmvers %{expand:%(echo 7.3 | tr - _)}
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%define __debug_install_post %{nil}
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd7.3
|
|
||||||
Release: 0.20100416.1%{?dist}
|
|
||||||
License: FreeBSD
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %freebsd_rpmvers
|
|
||||||
Summary: i586-pc-freebsd7.3 Libraries
|
|
||||||
|
|
||||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.aa
|
|
||||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ab
|
|
||||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ac
|
|
||||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ad
|
|
||||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ae
|
|
||||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.af
|
|
||||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ag
|
|
||||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ah
|
|
||||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ai
|
|
||||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.aj
|
|
||||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ak
|
|
||||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.al
|
|
||||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.am
|
|
||||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.an
|
|
||||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ao
|
|
||||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ap
|
|
||||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.aq
|
|
||||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ar
|
|
||||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.as
|
|
||||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.at
|
|
||||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.au
|
|
||||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.av
|
|
||||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.aw
|
|
||||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ax
|
|
||||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ay
|
|
||||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.az
|
|
||||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.ba
|
|
||||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bb
|
|
||||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bc
|
|
||||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bd
|
|
||||||
Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.be
|
|
||||||
Source31: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bf
|
|
||||||
Source32: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bg
|
|
||||||
Source33: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bh
|
|
||||||
Source34: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.3-RELEASE/base/base.bi
|
|
||||||
|
|
||||||
%description
|
|
||||||
i586-pc-freebsd7.3 libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
cat \
|
|
||||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
|
||||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
|
||||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
|
||||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
|
||||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
|
||||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
|
||||||
%SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 \
|
|
||||||
| %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
|
|
||||||
|
|
||||||
%build
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i586-pc-freebsd7.3/sys-root
|
|
||||||
%{__tar} cf - lib usr/lib usr/include | ( cd i586-pc-freebsd7.3/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
pushd i586-pc-freebsd7.3/sys-root/usr/lib > /dev/null
|
|
||||||
# missing files
|
|
||||||
rm -f lib*_p.*
|
|
||||||
# not needed
|
|
||||||
rm -rf aout compat
|
|
||||||
|
|
||||||
# Fix up symlinks
|
|
||||||
find -type l -exec ls -l {} \; | \
|
|
||||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
|
||||||
case $aA in
|
|
||||||
/lib* ) # link
|
|
||||||
rm $a8;
|
|
||||||
b=`basename $aA`
|
|
||||||
ln -s ../../lib/$b $a8
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i586-pc-freebsd7.3 $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.3/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.3/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{freebsd_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.3/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.3/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{freebsd_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i586-pc-freebsd7.3 target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i586-pc-freebsd7.3 target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i586-pc-freebsd7.3
|
|
||||||
%{_prefix}/i586-pc-freebsd7.3/sys-root
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
%define freebsd_version @FREEBSD_VERS@
|
|
||||||
%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%define __debug_install_post %{nil}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@
|
|
||||||
Release: @FREEBSD_RPMREL@
|
|
||||||
License: FreeBSD
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %freebsd_rpmvers
|
|
||||||
Summary: @tool_target@ Libraries
|
|
||||||
|
|
||||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
|
|
||||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
|
|
||||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
|
|
||||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
|
|
||||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
|
|
||||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
|
|
||||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
|
|
||||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
|
|
||||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
|
|
||||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
|
|
||||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
|
|
||||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
|
|
||||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
|
|
||||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
|
|
||||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
|
|
||||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
|
|
||||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
|
|
||||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
|
|
||||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
|
|
||||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
|
|
||||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
|
|
||||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
|
|
||||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
|
|
||||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
|
|
||||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
|
|
||||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
|
|
||||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
|
|
||||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
|
|
||||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
|
|
||||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
|
|
||||||
Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.be
|
|
||||||
Source31: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bf
|
|
||||||
Source32: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bg
|
|
||||||
Source33: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bh
|
|
||||||
Source34: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bi
|
|
||||||
|
|
||||||
%description
|
|
||||||
@tool_target@ libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
cat \
|
|
||||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
|
||||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
|
||||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
|
||||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
|
||||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
|
||||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
|
||||||
%SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 \
|
|
||||||
| %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include %{?el5:||:}
|
|
||||||
|
|
||||||
%build
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
pushd @tool_target@/sys-root/usr/lib > /dev/null
|
|
||||||
# missing files
|
|
||||||
rm -f lib*_p.*
|
|
||||||
# not needed
|
|
||||||
rm -rf aout compat
|
|
||||||
|
|
||||||
# Fix up symlinks
|
|
||||||
find -type l -exec ls -l {} \; | \
|
|
||||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
|
||||||
case $aA in
|
|
||||||
/lib* ) # link
|
|
||||||
rm $a8;
|
|
||||||
b=`basename $aA`
|
|
||||||
ln -s ../../lib/$b $a8
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
|
||||||
|
|
||||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(LIBS_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
|
||||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)%{?dist}/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \
|
|
||||||
> $(TARGET)-libs.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-libs.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i586 x86_64
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) \
|
|
||||||
| sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
| sed \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "/--with-newlib/d" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
rtems*.spec
|
|
||||||
*.spec.in
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i586-pc-freebsd8.0
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
FREEBSD_VERS = 8.0
|
|
||||||
FREEBSD_RPMREL = 0.20091130.1
|
|
||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
include ../libs.am
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.20.1
|
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
|
||||||
BINUTILS_RPMREL = 0.20100305.1
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS +=
|
|
||||||
|
|
||||||
GCC_VERS = 4.5.0
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20100524.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=cxx,fortran,objc
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH1@
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
%{?_without_sources:NoSource: 3}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
%{?_without_sources:NoSource: 4}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
%endif
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define binutils_pkgvers 2.20.1
|
|
||||||
%define binutils_version 2.20.1
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd8.0-binutils
|
|
||||||
Summary: Binutils for target i586-pc-freebsd8.0
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 0.20100305.1%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target i586-pc-freebsd8.0
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd8.0 \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/i586-pc-freebsd8.0/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd8.0-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd8.0-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd8.0-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd8.0-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd8.0-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd8.0-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i586-pc-freebsd8.0-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i586-pc-freebsd8.0-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd8.0-binutils
|
|
||||||
# Summary: rtems binutils for i586-pc-freebsd8.0
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-binutils
|
|
||||||
GNU binutils targetting i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-*.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd8.0
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd8.0/bin
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd8.0/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i586-pc-freebsd8.0/lib
|
|
||||||
%{_exec_prefix}/i586-pc-freebsd8.0/lib/ldscripts
|
|
||||||
|
|
||||||
@@ -1,773 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 4.5.0
|
|
||||||
%define gcc_version 4.5.0
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
|
|
||||||
|
|
||||||
|
|
||||||
Name: i586-pc-freebsd8.0-gcc
|
|
||||||
Summary: i586-pc-freebsd8.0 gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 0.20100524.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
|
||||||
%bcond_with lto
|
|
||||||
|
|
||||||
# FIXME: Disable python gdb scripts
|
|
||||||
# ATM, no idea how to package them
|
|
||||||
%bcond_with pygdb
|
|
||||||
|
|
||||||
# FIXME: Disable GCC-plugin
|
|
||||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
|
||||||
%bcond_with plugin
|
|
||||||
|
|
||||||
# versions of libraries, we conditionally bundle if necessary
|
|
||||||
%global mpc_version 0.8.1
|
|
||||||
%global mpfr_version 2.4.2
|
|
||||||
%global gmp_version 4.3.2
|
|
||||||
%global libelf_version 0.8.13
|
|
||||||
|
|
||||||
# versions of libraries these distros are known to ship
|
|
||||||
%if 0%{?fc13}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.2
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc12}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc11}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.2.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el6}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el5}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided %{nil}
|
|
||||||
%global gmp_provided 4.1.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_0}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.1
|
|
||||||
%global gmp_provided 4.2.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_1}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.3.2
|
|
||||||
%global gmp_provided 4.2.3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_2}
|
|
||||||
%global mpc_provided 0.7
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?cygwin}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?mingw32}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.2.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
|
||||||
%define cloog_required 0.15
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.4.0"
|
|
||||||
%define mpfr_required 2.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%define mpc_required 0.8
|
|
||||||
%if %{with lto}
|
|
||||||
%define libelf_required 0.8.12
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined mpc_required}
|
|
||||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
|
||||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
|
||||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpc 1
|
|
||||||
%define gmp_required 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined gmp_required}
|
|
||||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
|
||||||
BuildRequires: gmp-devel >= %{gmp_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_gmp 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined libelf_required}
|
|
||||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
|
||||||
BuildRequires: libelf-devel >= %{libelf_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_libelf 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined cloog_required}
|
|
||||||
%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined mpfr_required}
|
|
||||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
|
||||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpfr 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd8.0-gcc = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: i586-pc-freebsd8.0-binutils
|
|
||||||
BuildRequires: i586-pc-freebsd8.0-sys-root
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd8.0-binutils
|
|
||||||
Requires: i586-pc-freebsd8.0-sys-root
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _gcclibdir %{_prefix}/lib
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a1
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a2
|
|
||||||
%{?PATCH2:%patch2 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a5
|
|
||||||
%{?PATCH5:%patch5 -p0}
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a61
|
|
||||||
%{?PATCH61:%patch61 -p1}
|
|
||||||
# Build mpc one-tree style
|
|
||||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a62
|
|
||||||
%{?PATCH62:%patch62 -p1}
|
|
||||||
# Build gmp one-tree style
|
|
||||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a63
|
|
||||||
%{?PATCH63:%patch63 -p1}
|
|
||||||
# Build libelf one-tree style
|
|
||||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
# Fix timestamps
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
contrib/gcc_update --touch
|
|
||||||
cd ..
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
languages="c"
|
|
||||||
languages="$languages,c++"
|
|
||||||
languages="$languages,fortran"
|
|
||||||
languages="$languages,objc"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
# gcc is not ready to be compiled with -std=gnu99
|
|
||||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
|
||||||
%endif
|
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--exec_prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} \
|
|
||||||
--libdir=%{_gcclibdir} \
|
|
||||||
--libexecdir=%{_libexecdir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i586-pc-freebsd8.0 \
|
|
||||||
--disable-libstdcxx-pch \
|
|
||||||
--with-gnu-as --with-gnu-ld --verbose \
|
|
||||||
--with-system-zlib \
|
|
||||||
--disable-nls --without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--enable-version-specific-runtime-libs \
|
|
||||||
--enable-threads \
|
|
||||||
--with-sysroot=%{_exec_prefix}/i586-pc-freebsd8.0/sys-root \
|
|
||||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
|
||||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
|
||||||
--enable-languages="$languages" $optargs
|
|
||||||
|
|
||||||
%if "%_host" != "%_build"
|
|
||||||
# Bug in gcc-3.2.1:
|
|
||||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
|
||||||
mkdir -p gcc/include
|
|
||||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" <= "4.1.2"
|
|
||||||
# Misplaced header file
|
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
|
||||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include/
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# host library
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
# libiberty doesn't honor --libdir, but always installs to a
|
|
||||||
# magically guessed _libdir
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
|
||||||
%else
|
|
||||||
# libiberty installs to --libdir=...
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use the version from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd8.0-c++filt%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native GCC's infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# Conflict with a native GCC's man pages
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
|
||||||
|
|
||||||
# Bug in gcc-3.4.0pre
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd8.0-i586-pc-freebsd8.0-gcjh%{_exeext}
|
|
||||||
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
|
||||||
# the fixinclude-install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/install-tools
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd8.0/include/bits; then
|
|
||||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd8.0/include/bits
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
|
||||||
%if ! %{with pygdb}
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
|
||||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
|
||||||
|
|
||||||
|
|
||||||
rm -f dirs ;
|
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}"
|
|
||||||
for i in $multilibs; do
|
|
||||||
case $i in
|
|
||||||
\.) ;; # ignore, handled elsewhere
|
|
||||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Collect files to go into different packages
|
|
||||||
cp dirs build/files.gcc
|
|
||||||
cp dirs build/files.gfortran
|
|
||||||
cp dirs build/files.objc
|
|
||||||
cp dirs build/files.gcj
|
|
||||||
cp dirs build/files.g++
|
|
||||||
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
|
||||||
*f771) ;;
|
|
||||||
*f951) ;;
|
|
||||||
*cc1) ;;
|
|
||||||
*cc1obj) ;;
|
|
||||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
|
||||||
*collect2) ;;
|
|
||||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
|
||||||
*include/objc*) ;;
|
|
||||||
*include/g++*);;
|
|
||||||
*include/c++*);;
|
|
||||||
*include-fixed/*);;
|
|
||||||
*finclude/*);;
|
|
||||||
*adainclude*);;
|
|
||||||
*adalib*);;
|
|
||||||
*gnat1);;
|
|
||||||
*jc1) ;;
|
|
||||||
*jvgenmain) ;;
|
|
||||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
|
||||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
|
||||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
|
||||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*) echo "$i" >> build/files.gcc ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
TGTDIR="%{_exec_prefix}/i586-pc-freebsd8.0/lib"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
|
||||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
|
||||||
# all other files belong to newlib
|
|
||||||
*) echo "$i" >> build/files.newlib ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd8.0/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd8.0/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd8.0/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd8.0/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i586-pc-freebsd8.0-gcc
|
|
||||||
# Summary: GNU cc compiler for i586-pc-freebsd8.0
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: i586-pc-freebsd8.0-binutils
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc
|
|
||||||
GNU cc compiler for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-libgcc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-libgcc
|
|
||||||
Summary: libgcc for i586-pc-freebsd8.0-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-libgcc
|
|
||||||
libgcc i586-pc-freebsd8.0-gcc.
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-gcc.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-cpp.1*
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-gcov.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-cpp%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-gcc%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-gcov%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-gccbug
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/collect2%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%{?with_lto:%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/lto%{_exeext}}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/lto-wrapper%{_exeext}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-libgcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include
|
|
||||||
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include-fixed
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-c++
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-c++
|
|
||||||
Summary: GCC c++ compiler for i586-pc-freebsd8.0
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i586-pc-freebsd8.0-gcc-c++ = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-c++
|
|
||||||
GCC c++ compiler for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-libstdc++
|
|
||||||
Summary: libstdc++ for i586-pc-freebsd8.0
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-libstdc++
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-c++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-g++.1*
|
|
||||||
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-c++%{_exeext}
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-g++%{_exeext}
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/cc1plus%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-libstdc++ -f build/files.g++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include/c++
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-gfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-gfortran
|
|
||||||
Summary: Fortran 95 support for i586-pc-freebsd8.0-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc-libgfortran = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-gfortran
|
|
||||||
GCC fortran compiler for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/i586-pc-freebsd8.0-gfortran%{_exeext}
|
|
||||||
|
|
||||||
%{_mandir}/man1/i586-pc-freebsd8.0-gfortran.1*
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/f951%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-libgfortran
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-libgfortran
|
|
||||||
Summary: Fortran 95 support libraries for i586-pc-freebsd8.0-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-libgfortran
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-libgfortran -f build/files.gfortran
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/finclude
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-objc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-objc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd8.0-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
Requires: i586-pc-freebsd8.0-gcc-libobjc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-objc
|
|
||||||
GCC objc compiler for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/cc1obj%{_exeext}
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i586-pc-freebsd8.0-gcc-libobjc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i586-pc-freebsd8.0-gcc-libobjc
|
|
||||||
Summary: Objective C support for i586-pc-freebsd8.0-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i586-pc-freebsd8.0-gcc-libobjc
|
|
||||||
Support libraries for GCC's objc compiler for i586-pc-freebsd8.0.
|
|
||||||
|
|
||||||
%files -n i586-pc-freebsd8.0-gcc-libobjc -f build/files.objc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i586-pc-freebsd8.0/%{gcc_version}/include/objc
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user