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