source: spec/trunk/SPECS/gcc3.spec@ 1010

Last change on this file since 1010 was 228, checked in by Yuri Dario, 14 years ago

spec: gcc3/gcc4 build update, requires binutils.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1%global gcc_version 3.3.5
2
3Summary: Various compilers (C, C++, Objective-C, Java, ...)
4Name: gcc
5Version: %{gcc_version}
6Release: 6%{?dist}
7# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
8# GCC Runtime Exception.
9License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
10Group: Development/Languages
11Source0: gcc-%{version}.zip
12URL: http://gcc.gnu.org
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
15
16Requires: libgcc335 = %{gcc_version}
17Requires: libc-devel >= 0.6.3
18Requires: binutils
19
20%description
21The gcc package contains the GNU Compiler Collection version 4.4.
22You'll need this package in order to compile C code.
23
24%package -n libgcc335
25Summary: GCC version 3.3 shared support library
26Group: System Environment/Libraries
27Autoreq: false
28
29%description -n libgcc335
30This package contains GCC shared support library which is needed
31e.g. for exception handling support.
32
33%prep
34%setup -q -c
35
36
37%install
38rm -rf $RPM_BUILD_ROOT
39mkdir -p %{buildroot}%{_bindir}
40mkdir -p %{buildroot}%{_includedir}
41mkdir -p %{buildroot}%{_libdir}
42mkdir -p %{buildroot}%{_usr}/man
43mkdir -p %{buildroot}%{_usr}/share
44cp -p -r "usr/bin/*" %{buildroot}%{_bindir}
45cp -p -r "usr/include/*" %{buildroot}%{_includedir}
46cp -p -r "usr/lib/*" %{buildroot}%{_libdir}
47cp -p -r "usr/man/*" %{buildroot}%{_usr}/man
48cp -p -r "usr/share/*" %{buildroot}%{_usr}/share
49
50%clean
51rm -rf %{buildroot}
52
53
54%files
55%defattr(-,root,root,-)
56%{_usr}/bin
57%{_usr}/include
58%{_libdir}/*.*a
59%{_libdir}/gcc-lib/*
60%{_usr}/man
61%{_usr}/share
62
63
64%files -n libgcc335
65%defattr(-,root,root,-)
66%{_libdir}/gcc335.dll
67%doc usr/doc/gcc-3.3.5/*
68
69
70%changelog
71* Tue Sep 04 2011 yd
72- update to csd4
Note: See TracBrowser for help on using the repository browser.