SPECS: crossmingw64-binutils.spec (NEW) - binutils for x86_64-peco...

pluto pluto at pld-linux.org
Tue Sep 26 13:56:00 CEST 2006


Author: pluto                        Date: Tue Sep 26 11:56:00 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- binutils for x86_64-pecoff target.

---- Files affected:
SPECS:
   crossmingw64-binutils.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/crossmingw64-binutils.spec
diff -u /dev/null SPECS/crossmingw64-binutils.spec:1.1
--- /dev/null	Tue Sep 26 13:56:00 2006
+++ SPECS/crossmingw64-binutils.spec	Tue Sep 26 13:55:55 2006
@@ -0,0 +1,113 @@
+# $Revision$, $Date$
+Summary:	Cross Mingw64 GNU binary utility development utilities - binutils
+Summary(es):	Utilitarios para desarrollo de binarios de la GNU - Mingw64 binutils
+Summary(fr):	Utilitaires de développement binaire de GNU - Mingw64 binutils
+Summary(pl):	Skrośne narzędzia programistyczne GNU dla Mingw64 - binutils
+Summary(pt_BR):	Utilitários para desenvolvimento de binários da GNU - Mingw64 binutils
+Summary(tr):	GNU geliţtirme araçlarý - Mingw64 binutils
+Name:		crossmingw64-binutils
+Version:	2.17.50.0.4
+Release:	1
+License:	GPL
+Group:		Development/Tools
+Source0:	ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
+# Source0-md5:	a05a19fb80254ed66c87e7fd69c680bb
+Patch0:		%{name}-configure.patch
+URL:		http://sources.redhat.com/binutils/
+BuildRequires:	automake
+BuildRequires:	bash
+BuildRequires:	bison
+BuildRequires:	flex
+BuildRequires:	gettext-devel
+# not necessary unless we patch .texi docs; but they are not packaged here anyway
+#BuildRequires:	texinfo >= 4.2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		target		x86_64-mingw64
+%define		arch		%{_prefix}/%{target}
+
+%description
+crossmingw64 is a complete cross-compiling development system for
+building stand-alone Microsoft Windows applications under Linux using
+the Mingw64 build libraries. This includes a binutils, gcc with g++
+and objc, and libstdc++, all cross targeted to x86_64-mingw64, along
+with supporting Win32 libraries in 'coff' format from free sources.
+
+This package contains cross targeted binutils.
+
+%description -l pl
+crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
+budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
+System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie
+generujące kod dla platformyx86_64-mingw64, oraz z bibliotek w formacie
+COFF.
+
+Ten pakiet zawiera binutils generujące skrośnie binaria dla Win32.
+
+%prep
+%setup -q -n binutils-%{version}
+%patch0 -p1
+
+%build
+# Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
+# lib<target>bfd.so*. To prevent confusion with native binutils, we
+# forget about shared libraries right now, and do not install libbfd.a
+# [the same applies to binutils 2.10.1.0.4]
+
+# ldscripts won't be generated properly if SHELL is not bash...
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+CONFIG_SHELL="/bin/bash" \
+./configure \
+	--disable-shared \
+	--disable-nls \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--mandir=%{_mandir} \
+	--infodir=%{_infodir} \
+	--host=%{_target_platform} \
+	--build=%{_target_platform} \
+	--target=%{target}
+
+%{__make} all \
+	tooldir=%{_prefix}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	INSTALL='$$s/install-sh -c' \
+	prefix=$RPM_BUILD_ROOT%{_prefix} \
+	mandir=$RPM_BUILD_ROOT%{_mandir} \
+	infodir=$RPM_BUILD_ROOT%{_infodir} \
+	libdir=$RPM_BUILD_ROOT%{_libdir}
+
+# remove this man page unless we cross-build for netware platform.
+# however, this should be done in Makefiles.
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
+
+# libiberty.a is ELF not PE
+rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%dir %{arch}
+%dir %{arch}/lib
+%dir %{arch}/bin
+%attr(755,root,root) %{arch}/bin/*
+%{arch}/lib/ldscripts
+%attr(755,root,root) %{_bindir}/%{target}-*
+%{_mandir}/man1/%{target}-*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/09/26 11:55:55  pluto
+- binutils for x86_64-pecoff target.
================================================================


More information about the pld-cvs-commit mailing list