gcc/gcc.spec

changeset 321
bbed90117468
parent 320
d8a8300afdc8
child 322
30c214982bd2
equal deleted inserted replaced
0:419554e87497 1:2638521e6252
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: CORE 35 Class: CORE
36 Group: Compiler 36 Group: Compiler
37 License: GPL 37 License: GPL
38 Version: %{V_full} 38 Version: %{V_full}
39 Release: 20101221 39 Release: 20110320
40 40
41 # package options 41 # package options
42 %option with_binutils yes 42 %option with_binutils yes
43 %option with_cxx yes 43 %option with_cxx yes
44 %option with_objc no 44 %option with_objc no
56 Source3: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-java-%{V_full}.tar.bz2 56 Source3: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-java-%{V_full}.tar.bz2
57 Source4: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-fortran-%{V_full}.tar.bz2 57 Source4: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-fortran-%{V_full}.tar.bz2
58 Patch0: gcc.patch 58 Patch0: gcc.patch
59 59
60 # build information 60 # build information
61 Prefix: %{l_prefix}
62 BuildRoot: %{l_buildroot}
61 BuildPreReq: OpenPKG, openpkg >= 20100101, make 63 BuildPreReq: OpenPKG, openpkg >= 20100101, make
62 PreReq: OpenPKG, openpkg >= 20100101 64 PreReq: OpenPKG, openpkg >= 20100101
63 %if "%{with_binutils}" == "yes" 65 %if "%{with_binutils}" == "yes"
64 BuildPreReq: binutils >= 2.14 66 BuildPreReq: binutils >= 2.14
65 PreReq: binutils >= 2.14 67 PreReq: binutils >= 2.14
72 %endif 74 %endif
73 %if "%{with_java}" == "yes" 75 %if "%{with_java}" == "yes"
74 BuildPreReq: zlib 76 BuildPreReq: zlib
75 PreReq: zlib 77 PreReq: zlib
76 %endif 78 %endif
79 AutoReq: no
80 AutoReqProv: no
77 81
78 %description 82 %description
79 The GNU Compiler Collection (GCC) provides standard conforming and 83 The GNU Compiler Collection (GCC) provides standard conforming and
80 highly portable compilers for the ISO C, ISO C++, Objective-C, 84 highly portable compilers for the ISO C, ISO C++, Objective-C,
81 Fortran and Java languages. 85 Fortran and Java languages.
273 LIBCFLAGS="${l_libcflags}" \ 277 LIBCFLAGS="${l_libcflags}" \
274 LIBCXXFLAGS="${l_libcxxflags}" \ 278 LIBCXXFLAGS="${l_libcxxflags}" \
275 $maketarget 279 $maketarget
276 280
277 %install 281 %install
282 rm -rf $RPM_BUILD_ROOT
278 283
279 # fetch GNU platform triple 284 # fetch GNU platform triple
280 triple=`./config.guess` 285 triple=`./config.guess`
281 286
282 # perform the standard installation procedure 287 # perform the standard installation procedure
341 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 346 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
342 347
343 %files -f files 348 %files -f files
344 349
345 %clean 350 %clean
346 351 rm -rf $RPM_BUILD_ROOT
352

mercurial