]> git.pld-linux.org Git - packages/crossmingw32-runtime.git/blob - crossmingw32-runtime.spec
- copy config.sub from automake
[packages/crossmingw32-runtime.git] / crossmingw32-runtime.spec
1 Summary:        Mingw32 Binary Utility Development Utilities - runtime libraries
2 Summary(pl):    Zestaw narzêdzi mingw32 - biblioteki uruchomieniowe
3 Name:           crossmingw32-runtime
4 Version:        3.2
5 #%%define       run_date        20010604
6 #%%define       runsrc          mingw-runtime-%{version}-%{run_date}
7 %define runver  %{version}
8 %define runsrc  mingw-runtime-%{runver}
9 Release:        1
10 Epoch:          1
11 License:        Free
12 Group:          Development/Libraries
13 Source0:        http://dl.sourceforge.net/mingw/%{runsrc}-src.tar.gz
14 # Source0-md5:  9fe85d9ca858fe00c907ed1e3052ee4c
15 Patch0:         %{name}-stdinc.patch
16 Patch1:         %{name}-configure.patch
17 URL:            http://www.mingw.org/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  crossmingw32-binutils
21 BuildRequires:  crossmingw32-gcc
22 BuildRequires:  crossmingw32-w32api
23 Requires:       crossmingw32-binutils >= 2.14.90.0.4.1-2
24 Requires:       crossmingw32-w32api >= 2.4
25 Obsoletes:      crossmingw32-platform
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         target          i386-mingw32
29 %define         target_platform i386-pc-mingw32
30 %define         _prefix         /usr/%{target}
31
32 # strip fails on static COFF files
33 %define         no_install_post_strip 1
34
35 %description
36 crossmingw32 is a complete cross-compiling development system for
37 building stand-alone Microsoft Windows applications under Linux using
38 the Mingw32 build libraries. This includes a binutils, gcc with g++
39 and objc, and libstdc++, all cross targeted to i386-mingw32, along
40 with supporting Win32 libraries in 'coff' format from free sources.
41
42 This package contains MinGW32 runtime includes and libraries.
43
44 %description -l pl
45 crossmingw32 jest kompletnym systemem do kompilacji skro¶nej,
46 pozwalaj±cym budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c
47 bibliotek mingw32. System sk³ada siê z binutils, gcc z g++ i objc,
48 libstdc++ - wszystkie generuj±ce kod dla platformy i386-mingw32, oraz
49 z bibliotek w formacie COFF.
50
51 Ten pakiet zawiera pliki nag³ówkowe i biblioteki uruchomieniowe
52 MinGW32.
53
54 %prep
55 %setup -q -n %{runsrc}
56 %patch0 -p1 -b .wiget
57 %patch1 -p1
58
59 %build
60 cp /usr/share/automake/config.sub .
61 %{__autoconf}
62 cd mingwex
63 cp /usr/share/automake/config.sub .
64 %{__autoconf}
65 cd ../profile
66 cp /usr/share/automake/config.sub .
67 %{__autoconf}
68 cd ..
69 ./configure \
70         --prefix=%{_prefix} \
71         --host=%{target} \
72         --build=%{_target_platform}
73 %{__make} -C mingwex
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         prefix=$RPM_BUILD_ROOT%{_prefix}
81
82 %if %{!?debug:1}0
83 %{target}-strip $RPM_BUILD_ROOT%{_bindir}/*.dll
84 %{target}-strip -g $RPM_BUILD_ROOT%{_libdir}/*.a
85 %endif
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %{_bindir}/*
93 %{_includedir}/*
94 %{_libdir}/*
This page took 0.091336 seconds and 3 git commands to generate.