Package avr-gcc: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | # -*- rpm-spec -*- # $Id: avr-gcc,v 1.14 2003/09/05 12:16:22 grigory Exp $ #define snapshot_version 20030512 %define cross_arch avr Summary: GNU Compiler for AVR (C language only). Name: %cross_arch-gcc Version: 4.7.2 Release: alt2 Copyright: GPL Group: Development/Other URL: http://gcc.gnu.org Source0: gcc-%version.tar.bz2 # Automatically added by buildreq on Thu Oct 24 2002 BuildRequires: avr-binutils flex BuildRequires: avr-binutils >= 2.23.51.0.8-alt1 BuildRequires: zlib-devel libmpc-devel libmpfr-devel libgmp-devel Requires: avr-binutils >= 2.20-alt1 %define libavrdir /usr/lib/gcc/%cross_arch %define libavrexecdir /usr/libexec/gcc/%cross_arch %define includeavrdir %_includedir/%cross_arch %description The avr-gcc package contains the GNU Compiler Collection version 3.0 for the Atmel AVR target. %package c++ Summary: C++ support for gcc for AVR Group: Development/Other Requires: avr-gcc = %version-%release %description c++ This package adds C++ support to the GNU C compiler version 3.0 for the Atmel AVR target. WARNING - This is still fairly experimental and only supports c++ programming on the mega128 devices. %prep %setup -q -n gcc-%version contrib/gcc_update --touch #cd %_builddir/gcc-%version/gcc %build echo "" > gcc/cp/g++.1 %__mkdir obj-avr-%_target_platform cd obj-avr-%_target_platform #remove_optflags optflags_nocpp optflags_notraceback #CC=%__cc \ # CFLAGS="$RPM_OPT_FLAGS" \ # CXXFLAGS="$RPM_OPT_FLAGS" \ # GCJFLAGS="$RPM_OPT_FLAGS" \ # XCFLAGS="$RPM_OPT_FLAGS" \ # TCFLAGS="$RPM_OPT_FLAGS" \ # # %optflags_default CC="%__cc $RPM_OPT_FLAGS" \ ../configure \ --target=%cross_arch \ --enable-languages="c,c++" \ --disable-nls \ --disable-libssp \ --prefix=%_prefix \ --mandir=%_mandir \ --infodir=%_infodir \ --with-system-zlib \ --enable-version-specific-runtime-libs \ --with-pkgversion="ALT Linux %version-%release" \ --with-bugurl="http://bugzilla.altlinux.org"; \ --with-objcopy=%_bindir/avr-objcopy \ --enable-target-optspace \ --with-as=%_bindir/avr-as \ --with-ld=%_bindir/avr-ld \ --with-ar=%_bindir/avr-ar \ --with-nm=%_bindir/avr-nm \ # --includedir=%includeavrdir \ # --exec-prefix=%_libdir \ # --libdir=%_libdir \ # --libexecdir=/usr/lib/avr/bin # --libexecdir=/usr/libexec \ # --with-as=%libavrdir/bin/as \ # --with-ld=%libavrdir/bin/ld %make_build %install %__mkdir_p %buildroot%_bindir cd obj-avr-%_target_platform # TARGET_PLATFORM=%_target_platform echo timestamp > gcc/cstamp-h %make_build DESTDIR=%buildroot install # prefix=%buildroot%_prefix \ # exec_prefix=%buildroot%_libdir \ # libdir=%buildroot%_libdir \ # libexecdir=%buildroot/usr/libexec \ # includedir=%buildroot%includeavrdir \ # mandir=%buildroot%_mandir \ # infodir=%buildroot%_infodir install rename cpp.1 %cross_arch-cpp.1 %buildroot%_man1dir/* rename gcov.1 %cross_arch-gcov.1 %buildroot%_man1dir/* %__rm -f %buildroot%_man1dir/%cross_arch-g++* %__rm %buildroot/usr/libexec/gcc/avr/4.7.2/liblto_plugin.la #%__mv %buildroot%_libdir/bin/* %buildroot%_bindir/ %__ln_s -f %cross_arch-gcc.1.bz2 %buildroot%_man1dir/%cross_arch-g++.1.bz2 %__ln_s -f %cross_arch-gcc %buildroot%_bindir/%cross_arch-gcc-%version %__ln_s -f %cross_arch-c++ %buildroot%_bindir/%cross_arch-g++ rename avr-avr avr %buildroot%_man1dir/* %__rm -rf %buildroot{%_infodir,%_man7dir} %buildroot%libavrdir/libiberty.a %buildroot%_libdir/libiberty.a %buildroot%libavrdir/%version/plugin # Copy specs file to /usr/lib/avr/gcc/avr/*/ %__cp %_builddir/gcc-%version/obj-avr-%_target_platform/gcc/specs %buildroot%libavrdir/%version/ %files %doc gcc/README* gcc/*ChangeLog* %dir %libavrexecdir %dir %libavrexecdir/%version %dir %libavrexecdir/%version/plugin %dir %libavrexecdir/%version/install-tools %_bindir/*-cpp %_bindir/*-gcc* %_bindir/*-gcov %libavrdir/%version/avr* %libavrdir/%version/tiny-stack* %libavrdir/%version/include* %libavrdir/%version/libgcc.a %libavrdir/%version/libgcov.a %libavrdir/%version/specs %libavrdir/%version/install-tools* %libavrexecdir/%version/*.so* %libavrexecdir/%version/lto1 %libavrexecdir/%version/cc1 %libavrexecdir/%version/collect2 %libavrexecdir/%version/lto-wrapper %libavrexecdir/%version/plugin/gengtype %libavrexecdir/%version/install-tools/* %_man1dir/avr-gcc.1* %_man1dir/avr-cpp.1* %_man1dir/avr-gcov.1* #%_infodir/avr* %files c++ %_bindir/*-*++* %libavrexecdir/%version/cc1plus %_man1dir/avr-g++.1* %changelog * Fri Feb 01 2013 Grigory Milev <week@altlinux.ru> 4.7.2-alt2 - rebuild with new binutils + new avr cpu's * Fri Feb 01 2013 Grigory Milev <week@altlinux.ru> 4.7.2-alt1 - new version * Thu Aug 30 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.5.1-alt3.1 - Rebuilt with gmp 5.0.5 * Thu Mar 17 2011 Grigory Milev <week@altlinux.ru> 4.5.1-alt3 - added patch for fix problem with USART2 and USART3 on atmega2560 * Thu Jan 13 2011 Grigory Milev <week@altlinux.ru> 4.5.1-alt2 - rebuild with new binutils - fixed configure scripts * Wed Nov 03 2010 Grigory Milev <week@altlinux.ru> 4.5.1-alt1 - new version released - gcc moved to /usr/lib/gcc/avr and /usr/lib/libexec/gcc/avr * Wed Dec 02 2009 Grigory Milev <week@altlinux.ru> 4.2.2-alt2 - fix build requires * Wed Jan 09 2008 Grigory Milev <week@altlinux.ru> 4.2.2-alt1 - New version released * Wed Sep 21 2005 Grigory Milev <week@altlinux.ru> 3.4.4-alt1 - New version released * Fri Sep 5 2003 Grigory Milev <week@altlinux.ru> 3.3.1-alt1 - 3.3.1 released * Thu Jun 19 2003 Grigory Milev <week@altlinux.ru> 3.3-alt1.20030512 - new cvs snapshot released * Tue Apr 22 2003 Grigory Milev <week@altlinux.ru> 3.3-alt1.20030414 - new cvs snapshot released * Mon Feb 10 2003 Grigory Milev <week@altlinux.ru> 3.2.75-alt2 - new version (snapshot 20030203) * Tue Nov 5 2002 Grigory Milev <week@altlinux.ru> 3.2.75-alt1.20021028 - new version (snapshot) * Thu Oct 24 2002 Grigory Milev <week@altlinux.ru> 3.0.4-alt1 - Initial build for ALT Linux * Tue Mar 17 2002 Theodore A. Roth <troth@verinet.com> - Initial spec file. |