- crosssparc(32) gcc.
authorPaweł Sikora <pluto@pld-linux.org>
Sat, 22 May 2004 09:22:29 +0000 (09:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    crosssparc-gcc.spec -> 1.1

crosssparc-gcc.spec [new file with mode: 0644]

diff --git a/crosssparc-gcc.spec b/crosssparc-gcc.spec
new file mode 100644 (file)
index 0000000..fd6b81c
--- /dev/null
@@ -0,0 +1,135 @@
+Summary:       Cross SPARC GNU binary utility development utilities - gcc
+Summary(es):   Utilitarios para desarrollo de binarios de la GNU - SPARC gcc
+Summary(fr):   Utilitaires de développement binaire de GNU - SPARC gcc
+Summary(pl):   Skro¶ne narzêdzia programistyczne GNU dla SPARC - gcc
+Summary(pt_BR):        Utilitários para desenvolvimento de binários da GNU - SPARC gcc
+Summary(tr):   GNU geliþtirme araçlarý - SPARC gcc
+Name:          crosssparc-gcc
+Version:       3.3.3
+Release:       1
+Epoch:         1
+License:       GPL
+Group:         Development/Languages
+Source0:       ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
+# Source0-md5: 3c6cfd9fcd180481063b4058cf6faff2
+Patch1:                crosssparc64-gcc-3.3.3-include-fix.patch
+BuildRequires: crosssparc-binutils
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: autoconf
+BuildRequires: /bin/bash
+Requires:      crosssparc-binutils
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                cxx             0
+%define                target          sparc-pld-linux
+%define                _prefix         /usr
+%define                arch            %{_prefix}/%{target}
+%define                gccarch         %{_prefix}/lib/gcc-lib/%{target}
+%define                gcclib          %{_prefix}/lib/gcc-lib/%{target}/%{version}
+
+%description
+This package contains a cross-gcc which allows the creation of
+binaries to be run on SPARC linux (architecture sparc-linux) on
+i386-machines.
+
+%description -l de
+Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem
+i386-Rechner Code für sparc-Linux zu generieren.
+
+%description -l pl
+Ten pakiet zawiera skro¶ny gcc pozwalaj±cy na robienie na maszynach
+i386 binariów do uruchamiania na SPARC (architektura "sparc-linux").
+
+%prep
+%setup -q -n gcc-%{version}
+%patch1 -p1
+
+%build
+rm -rf obj-%{target}
+install -d obj-%{target}
+cd obj-%{target}
+
+CFLAGS="%{rpmcflags}" \
+CXXFLAGS="%{rpmcflags}" \
+TEXCONFIG=false ../configure \
+       --prefix=%{_prefix} \
+       --infodir=%{_infodir} \
+       --mandir=%{_mandir} \
+       --disable-shared \
+       --enable-haifa \
+       --enable-languages="c" \
+       --enable-long-long \
+       --enable-namespaces \
+       --with-gnu-as \
+       --with-gnu-ld \
+       --with-system-zlib \
+       --with-multilib \
+       --without-x \
+       --target=%{target}
+
+PATH=$PATH:/sbin:%{_sbindir}
+
+cd ..
+#LDFLAGS_FOR_TARGET="%{rpmldflags}"
+
+%{__make} -C obj-%{target}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_bindir},%{gcclib}}
+
+cd obj-%{target}
+PATH=$PATH:/sbin:%{_sbindir}
+
+%{__make} -C gcc install \
+       prefix=%{_prefix} \
+       mandir=%{_mandir} \
+       infodir=%{_infodir} \
+       gxx_include_dir=$RPM_BUILD_ROOT%{arch}/include/g++ \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# c++filt is provided by binutils
+#rm -f $RPM_BUILD_ROOT%{_bindir}/i386-mipsel-c++filt
+
+# what is this there for???
+rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
+
+# the same... make hardlink
+#ln -f $RPM_BUILD_ROOT%{arch}/bin/gcc $RPM_BUILD_ROOT%{_bindir}/%{target}-gcc
+
+%{target}-strip -g $RPM_BUILD_ROOT%{gcclib}/libgcc.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{target}-gcc
+%attr(755,root,root) %{_bindir}/%{target}-cpp
+#%dir %{arch}/bin
+#%attr(755,root,root) %{arch}/bin/cpp
+#%attr(755,root,root) %{arch}/bin/gcc
+#%attr(755,root,root) %{arch}/bin/gcov
+#%%{arch}/include/_G_config.h
+%dir %{gccarch}
+%dir %{gcclib}
+%attr(755,root,root) %{gcclib}/cc1
+##%attr(755,root,root) %{gcclib}/tradcpp0
+##%attr(755,root,root) %{gcclib}/cpp0
+%attr(755,root,root) %{gcclib}/collect2
+#%%{gcclib}/SYSCALLS.c.X
+%{gcclib}/libgcc.a
+%{gcclib}/specs*
+%dir %{gcclib}/include
+%{gcclib}/include/*.h
+#%%{gcclib}/include/iso646.h
+#%%{gcclib}/include/limits.h
+#%%{gcclib}/include/proto.h
+#%%{gcclib}/include/stdarg.h
+#%%{gcclib}/include/stdbool.h
+#%%{gcclib}/include/stddef.h
+#%%{gcclib}/include/syslimits.h
+#%%{gcclib}/include/varargs.h
+#%%{gcclib}/include/va-*.h
+%{_mandir}/man1/%{target}-gcc.1*
This page took 0.095139 seconds and 4 git commands to generate.