]> git.pld-linux.org Git - packages/crossmingw64-binutils.git/blob - crossmingw64-binutils.spec
- updated to 2.19.51.0.14.
[packages/crossmingw64-binutils.git] / crossmingw64-binutils.spec
1 Summary:        Cross Mingw64 GNU binary utility development utilities - binutils
2 Summary(es.UTF-8):      Utilitarios para desarrollo de binarios de la GNU - Mingw64 binutils
3 Summary(fr.UTF-8):      Utilitaires de développement binaire de GNU - Mingw64 binutils
4 Summary(pl.UTF-8):      Skrośne narzędzia programistyczne GNU dla Mingw64 - binutils
5 Summary(pt_BR.UTF-8):   Utilitários para desenvolvimento de binários da GNU - Mingw64 binutils
6 Summary(tr.UTF-8):      GNU geliştirme araçları - Mingw64 binutils
7 Name:           crossmingw64-binutils
8 Version:        2.19.51.0.14
9 Release:        1
10 License:        GPL v3+
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  e0b485a3ff9392da1351dc3fb61a3d10
14 URL:            http://sources.redhat.com/binutils/
15 BuildRequires:  automake
16 BuildRequires:  bash
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gettext-devel
20 # not necessary unless we patch .texi docs; but they are not packaged here anyway
21 #BuildRequires: texinfo >= 4.2
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         target          x86_64-mingw32
25 %define         arch            %{_prefix}/%{target}
26
27 %description
28 crossmingw64 is a complete cross-compiling development system for
29 building stand-alone Microsoft Windows applications under Linux using
30 the Mingw64 build libraries. This includes a binutils, gcc with g++
31 and objc, and libstdc++, all cross targeted to x86_64-mingw32, along
32 with supporting Win64 libraries in 'coff' format from free sources.
33
34 This package contains cross targeted binutils.
35
36 %description -l pl.UTF-8
37 crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
38 budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
39 System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie
40 generujące kod dla platformy x86_64-mingw32, oraz z bibliotek w formacie
41 COFF.
42
43 Ten pakiet zawiera binutils generujące skrośnie binaria dla Win64.
44
45 %prep
46 %setup -q -n binutils-%{version}
47
48 %build
49 # ldscripts won't be generated properly if SHELL is not bash...
50 CFLAGS="%{rpmcflags}" \
51 LDFLAGS="%{rpmldflags}" \
52 CONFIG_SHELL="/bin/bash" \
53 ./configure \
54         --disable-shared \
55         --disable-nls \
56         --prefix=%{_prefix} \
57         --libdir=%{_libdir} \
58         --mandir=%{_mandir} \
59         --infodir=%{_infodir} \
60         --with-sysroot=%{arch} \
61         --host=%{_target_platform} \
62         --build=%{_target_platform} \
63         --target=%{target}
64
65 %{__make} all \
66         tooldir=%{_prefix}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         INSTALL='$$s/install-sh -c' \
73         prefix=$RPM_BUILD_ROOT%{_prefix} \
74         mandir=$RPM_BUILD_ROOT%{_mandir} \
75         infodir=$RPM_BUILD_ROOT%{_infodir} \
76         libdir=$RPM_BUILD_ROOT%{_libdir}
77
78 # remove this man page unless we cross-build for netware platform.
79 # however, this should be done in Makefiles.
80 rm $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
81
82 # libiberty.a is ELF not PE
83 rm $RPM_BUILD_ROOT%{_libdir}/libiberty.a
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc README
91 %dir %{arch}
92 %dir %{arch}/lib
93 %dir %{arch}/bin
94 %attr(755,root,root) %{arch}/bin/*
95 %{arch}/lib/ldscripts
96 %attr(755,root,root) %{_bindir}/%{target}-*
97 %{_mandir}/man1/%{target}-*
This page took 0.044063 seconds and 4 git commands to generate.