| 1 | Summary: The GNU Compiler Collection |
|---|
| 2 | Name: gcc |
|---|
| 3 | Version: 4.4.2 |
|---|
| 4 | Release: 2 |
|---|
| 5 | Group: Development/Tools |
|---|
| 6 | License: GPLv2 |
|---|
| 7 | Distribution: LightCube OS |
|---|
| 8 | Vendor: LightCube Solutions |
|---|
| 9 | URL: http://gcc.gnu.org |
|---|
| 10 | Source0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.bz2 |
|---|
| 11 | |
|---|
| 12 | Requires: base-layout, glibc, glibc-devel, linux-headers, gmp, mpfr, binutils |
|---|
| 13 | BuildRequires: digest(%{SOURCE0}) = 70f5ac588a79e3c9901d5b34f58d896d |
|---|
| 14 | |
|---|
| 15 | %description |
|---|
| 16 | The GNU Compiler Collection is required to compile various languages. |
|---|
| 17 | |
|---|
| 18 | %package libs |
|---|
| 19 | Summary: GCC support libraries |
|---|
| 20 | Group: System Environment/Libraries |
|---|
| 21 | |
|---|
| 22 | %description libs |
|---|
| 23 | The %{name}-libs package contains support libraries for programs |
|---|
| 24 | compiled using GCC. |
|---|
| 25 | |
|---|
| 26 | %package c++ |
|---|
| 27 | Summary: GCC C++ compiler |
|---|
| 28 | Group: Development/Tools |
|---|
| 29 | Requires: %{name} = %{version}-%{release} |
|---|
| 30 | Requires: %{name}-c++-libs = %{version}-%{release} |
|---|
| 31 | |
|---|
| 32 | %description c++ |
|---|
| 33 | The %{name}-c++ package contains a C++ compiler to be used with GCC. It |
|---|
| 34 | It includes support for most of the current C++ specification, including |
|---|
| 35 | templates and exception handling. |
|---|
| 36 | |
|---|
| 37 | %package c++-libs |
|---|
| 38 | Summary: GCC C++ support libraries |
|---|
| 39 | Group: System Environment/Libraries |
|---|
| 40 | Requires: %{name}-libs = %{version}-%{release} |
|---|
| 41 | |
|---|
| 42 | %description c++-libs |
|---|
| 43 | The %{name}-c++-libs package contains support libraries for programs |
|---|
| 44 | compiled using GCC C++. |
|---|
| 45 | |
|---|
| 46 | %prep |
|---|
| 47 | rm -rf %{name}-build |
|---|
| 48 | %setup -q |
|---|
| 49 | |
|---|
| 50 | %build |
|---|
| 51 | sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in |
|---|
| 52 | sed -i 's,\./fixinc\.sh,-c true,' gcc/Makefile.in |
|---|
| 53 | %ifarch i686 |
|---|
| 54 | sed -i 's/^T_CFLAGS =$$/& -fomit-frame-pointer/' gcc/Makefile.in |
|---|
| 55 | %endif |
|---|
| 56 | mkdir -v ../%{name}-build |
|---|
| 57 | cd ../%{name}-build |
|---|
| 58 | ../%{name}-%{version}/configure --prefix=/usr --libexecdir=/usr/lib \ |
|---|
| 59 | --enable-shared --enable-threads=posix --enable-__cxa_atexit \ |
|---|
| 60 | --enable-clocale=gnu --enable-languages=c,c++ |
|---|
| 61 | make LDFLAGS="-s" |
|---|
| 62 | |
|---|
| 63 | %install |
|---|
| 64 | cd ../%{name}-build |
|---|
| 65 | make DESTDIR=%{buildroot} install |
|---|
| 66 | mkdir %{buildroot}/lib |
|---|
| 67 | ln -sv ../usr/bin/cpp %{buildroot}/lib |
|---|
| 68 | ln -sv gcc %{buildroot}/usr/bin/cc |
|---|
| 69 | rm -f %{buildroot}%{_infodir}/dir |
|---|
| 70 | find %{buildroot} -name *.la -exec rm -v '{}' \; |
|---|
| 71 | |
|---|
| 72 | %post |
|---|
| 73 | for i in cpp cppinternals gcc gccinstall gccint libgomp |
|---|
| 74 | do |
|---|
| 75 | /usr/bin/install-info %{_infodir}/$i.info %{_infodir}/dir |
|---|
| 76 | done |
|---|
| 77 | |
|---|
| 78 | %preun |
|---|
| 79 | for i in cpp cppinternals gcc gccinstall gccint libgomp |
|---|
| 80 | do |
|---|
| 81 | /usr/bin/install-info --delete %{_infodir}/$i.info %{_infodir}/dir |
|---|
| 82 | done |
|---|
| 83 | |
|---|
| 84 | %post libs -p /sbin/ldconfig |
|---|
| 85 | %postun libs -p /sbin/ldconfig |
|---|
| 86 | |
|---|
| 87 | %post c++-libs -p /sbin/ldconfig |
|---|
| 88 | %postun c++-libs -p /sbin/ldconfig |
|---|
| 89 | |
|---|
| 90 | %clean |
|---|
| 91 | rm -rf %{buildroot} |
|---|
| 92 | |
|---|
| 93 | %files |
|---|
| 94 | %defattr(-,root,root) |
|---|
| 95 | /%{_lib}/cpp |
|---|
| 96 | /usr/bin/cc |
|---|
| 97 | /usr/bin/cpp |
|---|
| 98 | /usr/bin/gcc |
|---|
| 99 | /usr/bin/gccbug |
|---|
| 100 | /usr/bin/gcov |
|---|
| 101 | /usr/bin/*-linux-gnu-gcc |
|---|
| 102 | /usr/bin/*-linux-gnu-gcc-%{version} |
|---|
| 103 | /usr/info/cpp.info |
|---|
| 104 | /usr/info/cppinternals.info |
|---|
| 105 | /usr/info/gcc.info |
|---|
| 106 | /usr/info/gccinstall.info |
|---|
| 107 | /usr/info/gccint.info |
|---|
| 108 | /usr/info/libgomp.info |
|---|
| 109 | /usr/%{_lib}/gcc |
|---|
| 110 | /usr/%{_lib}/libgcc_s.so |
|---|
| 111 | /usr/%{_lib}/libgomp.a |
|---|
| 112 | /usr/%{_lib}/libgomp.so |
|---|
| 113 | /usr/%{_lib}/libgomp.spec |
|---|
| 114 | /usr/%{_lib}/libmudflap.a |
|---|
| 115 | /usr/%{_lib}/libmudflap.so |
|---|
| 116 | /usr/%{_lib}/libmudflapth.a |
|---|
| 117 | /usr/%{_lib}/libmudflapth.so |
|---|
| 118 | /usr/%{_lib}/libssp.a |
|---|
| 119 | /usr/%{_lib}/libssp.so |
|---|
| 120 | /usr/%{_lib}/libssp_nonshared.a |
|---|
| 121 | %ifarch ppc |
|---|
| 122 | /usr/%{_lib}/nof/libgcc_s.so |
|---|
| 123 | /usr/%{_lib}/nof/libgomp.a |
|---|
| 124 | /usr/%{_lib}/nof/libgomp.so |
|---|
| 125 | /usr/%{_lib}/nof/libgomp.spec |
|---|
| 126 | /usr/%{_lib}/nof/libmudflap.a |
|---|
| 127 | /usr/%{_lib}/nof/libmudflap.so |
|---|
| 128 | /usr/%{_lib}/nof/libmudflapth.a |
|---|
| 129 | /usr/%{_lib}/nof/libmudflapth.so |
|---|
| 130 | /usr/%{_lib}/nof/libssp.a |
|---|
| 131 | /usr/%{_lib}/nof/libssp.so |
|---|
| 132 | /usr/%{_lib}/nof/libssp_nonshared.a |
|---|
| 133 | %endif |
|---|
| 134 | /usr/man/man1/gcov* |
|---|
| 135 | /usr/man/man1/gcc* |
|---|
| 136 | /usr/man/man1/cpp* |
|---|
| 137 | /usr/man/man7/* |
|---|
| 138 | /usr/share/locale/*/LC_MESSAGES/cpplib.mo |
|---|
| 139 | /usr/share/locale/*/LC_MESSAGES/gcc.mo |
|---|
| 140 | |
|---|
| 141 | %files libs |
|---|
| 142 | %defattr(-,root,root) |
|---|
| 143 | /usr/%{_lib}/libgcc_s.so.* |
|---|
| 144 | /usr/%{_lib}/libgomp.so.* |
|---|
| 145 | /usr/%{_lib}/libmudflap.so.* |
|---|
| 146 | /usr/%{_lib}/libmudflapth.so.* |
|---|
| 147 | /usr/%{_lib}/libssp.so.* |
|---|
| 148 | %ifarch ppc |
|---|
| 149 | /usr/%{_lib}/nof/libgcc_s.so.* |
|---|
| 150 | /usr/%{_lib}/nof/libgomp.so.* |
|---|
| 151 | /usr/%{_lib}/nof/libmudflap.so.* |
|---|
| 152 | /usr/%{_lib}/nof/libmudflapth.so.* |
|---|
| 153 | /usr/%{_lib}/nof/libssp.so.* |
|---|
| 154 | %endif |
|---|
| 155 | |
|---|
| 156 | %files c++ |
|---|
| 157 | %defattr(-,root,root) |
|---|
| 158 | /usr/bin/c++ |
|---|
| 159 | /usr/bin/g++ |
|---|
| 160 | /usr/bin/*-linux-gnu-c++ |
|---|
| 161 | /usr/bin/*-linux-gnu-g++ |
|---|
| 162 | /usr/include/c++ |
|---|
| 163 | /usr/%{_lib}/libstdc++.a |
|---|
| 164 | /usr/%{_lib}/libstdc++.so |
|---|
| 165 | /usr/%{_lib}/libsupc++.a |
|---|
| 166 | %ifarch ppc |
|---|
| 167 | /usr/%{_lib}/nof/libstdc++.a |
|---|
| 168 | /usr/%{_lib}/nof/libstdc++.so |
|---|
| 169 | /usr/%{_lib}/nof/libsupc++.a |
|---|
| 170 | %endif |
|---|
| 171 | /usr/man/man1/g++* |
|---|
| 172 | /usr/share/locale/*/LC_MESSAGES/libstdc++.mo |
|---|
| 173 | |
|---|
| 174 | %files c++-libs |
|---|
| 175 | %defattr(-,root,root) |
|---|
| 176 | /usr/%{_lib}/libstdc++.so.* |
|---|
| 177 | %ifarch ppc |
|---|
| 178 | /usr/%{_lib}/nof/libstdc++.so.* |
|---|
| 179 | %endif |
|---|
| 180 | |
|---|
| 181 | %changelog |
|---|
| 182 | * Tue Dec 29 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.4.2-2 |
|---|
| 183 | - Add in support for PowerPC |
|---|
| 184 | |
|---|
| 185 | * Sat Oct 24 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.4.2-1 |
|---|
| 186 | - Upgrade to 4.4.2 |
|---|
| 187 | |
|---|
| 188 | * Sat Jul 25 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - |
|---|
| 189 | - Initial version |
|---|