From: Elan Ruusamäe Date: Mon, 11 Dec 2006 21:06:08 +0000 (+0000) Subject: - based on crossmingw32-binutils.spec, compiles but right now probably just creates... X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcrossmingw32ce-binutils.git;a=commitdiff_plain;h=d630396d3df2abef076be4334fd562bfd37da716 - based on crossmingw32-binutils.spec, compiles but right now probably just creates mingw32 programs Changed files: crossmingw32ce-binutils.spec -> 1.1 --- d630396d3df2abef076be4334fd562bfd37da716 diff --git a/crossmingw32ce-binutils.spec b/crossmingw32ce-binutils.spec new file mode 100644 index 0000000..58b9eb5 --- /dev/null +++ b/crossmingw32ce-binutils.spec @@ -0,0 +1,106 @@ +# TODO +# - copy (get inspired) descriptions from http://cegcc.sourceforge.net/ +Summary: Cross Mingw32 GNU binary utility development utilities - binutils +Summary(es): Utilitarios para desarrollo de binarios de la GNU - Mingw32 binutils +Summary(fr): Utilitaires de développement binaire de GNU - Mingw32 binutils +Summary(pl): Skro¶ne narzêdzia programistyczne GNU dla Mingw32 - binutils +Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - Mingw32 binutils +Summary(tr): GNU geliþtirme araçlarý - Mingw32 binutils +Name: crossmingw32ce-binutils +Version: 2.17.50.0.8 +Release: 1 +License: GPL +Group: Development/Tools +Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 +# Source0-md5: 1441fe6fa44b344d0575cb66d3f89252 +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 i386-mingw32ce +%define arch %{_prefix}/%{target} + +%description +crossmingw32ce is a complete cross-compiling development system for +building stand-alone Microsoft Windows applications under Linux using +the Mingw32 build libraries. This includes a binutils, gcc with g++ +and objc, and libstdc++, all cross targeted to i386-mingw32, along +with supporting Win32 libraries in 'coff' format from free sources. + + +This package contains cross targeted binutils. + +%description -l pl +crossmingw32ce jest kompletnym systemem do kroskompilacji, pozwalaj±cym +budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32. +System sk³ada siê z binutils, gcc z g++ i objc, libstdc++ - wszystkie +generuj±ce kod dla platformy i386-mingw32, oraz z bibliotek w formacie +COFF. + +Ten pakiet zawiera binutils generuj±ce skro¶nie binaria dla Win32. + +%prep +%setup -q -n binutils-%{version} + +%build +cp /usr/share/automake/config.sub . + +# Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named +# libbfd.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}-*