]>
Commit | Line | Data |
---|---|---|
918d7632 | 1 | Summary: Mingw32 Binary Utility Development Utilities - Win32 API libraries |
250c0546 | 2 | Summary(pl.UTF-8): Zestaw narzędzi mingw32 - biblioteki API Win32 |
918d7632 | 3 | Name: crossmingw32-w32api |
d3577f05 | 4 | Version: 3.7 |
918d7632 JB |
5 | %define apiver %{version} |
6 | %define apisrc w32api-%{apiver} | |
b0065419 | 7 | %define runver 3.10 |
919c5a44 | 8 | %define runsrc mingw-runtime-%{runver} |
b0065419 | 9 | Release: 2 |
918d7632 JB |
10 | Epoch: 1 |
11 | License: Free | |
12 | Group: Development/Libraries | |
919c5a44 | 13 | Source0: http://dl.sourceforge.net/mingw/%{apisrc}-src.tar.gz |
d3577f05 | 14 | # Source0-md5: d799c407b4c1b480d0339994d01f355d |
919c5a44 AF |
15 | # only for headers |
16 | Source1: http://dl.sourceforge.net/mingw/%{runsrc}-src.tar.gz | |
b0065419 | 17 | # Source1-md5: 9225684e663eafa900b4075731c25f4c |
8d461b1e | 18 | Source2: http://oss.sgi.com/projects/ogl-sample/ABI/glext.h |
b03b9773 | 19 | # NoSource2-md5: 0c40bd4545aa630e139043c2b12f0807 |
e140e9ef | 20 | Patch0: %{name}-include_fix.patch |
918d7632 | 21 | URL: http://www.mingw.org/ |
96655ce8 | 22 | BuildRequires: autoconf |
d44aab03 | 23 | BuildRequires: automake |
919c5a44 | 24 | BuildRequires: crossmingw32-gcc |
e140e9ef | 25 | Requires: crossmingw32-binutils >= 2.15.91.0.2-2 |
918d7632 JB |
26 | Obsoletes: crossmingw32-platform |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %define target i386-mingw32 | |
30 | %define target_platform i386-pc-mingw32 | |
0b8b136e | 31 | %define _prefix /usr/%{target} |
49644b0a | 32 | %define _libdir %{_prefix}/lib |
918d7632 JB |
33 | |
34 | # strip fails on static COFF files | |
35 | %define no_install_post_strip 1 | |
36 | ||
d49cf4e0 JB |
37 | %ifarch alpha sparc sparc64 sparcv9 |
38 | # alpha's -mieee and sparc's -mtune=* are not valid for target's gcc | |
0b8b136e JB |
39 | %define optflags -O2 |
40 | %endif | |
41 | ||
918d7632 JB |
42 | %description |
43 | crossmingw32 is a complete cross-compiling development system for | |
44 | building stand-alone Microsoft Windows applications under Linux using | |
45 | the Mingw32 build libraries. This includes a binutils, gcc with g++ | |
46 | and objc, and libstdc++, all cross targeted to i386-mingw32, along | |
47 | with supporting Win32 libraries in 'coff' format from free sources. | |
48 | ||
49 | This package contains Win32 API includes and libraries. | |
50 | ||
250c0546 JR |
51 | %description -l pl.UTF-8 |
52 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, | |
53 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
54 | bibliotek mingw32. System składa się z binutils, gcc z g++ i objc, | |
55 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz | |
9553b4d5 | 56 | z bibliotek w formacie COFF. |
918d7632 | 57 | |
250c0546 | 58 | Ten pakiet zawiera pliki nagłówkowe i biblioteki Win32 API. |
918d7632 JB |
59 | |
60 | %package dx | |
61 | Summary: DirectX from MinGW Win32 API | |
250c0546 | 62 | Summary(pl.UTF-8): DirectX z API Win32 dla MinGW |
918d7632 | 63 | Group: Development/Libraries |
919c5a44 | 64 | Requires: %{name} = %{epoch}:%{version}-%{release} |
918d7632 JB |
65 | |
66 | %description dx | |
67 | DirectX from MinGW Win32 API. | |
68 | ||
250c0546 | 69 | %description dx -l pl.UTF-8 |
918d7632 JB |
70 | DirectX z API Win32 dla MinGW. |
71 | ||
72 | %prep | |
919c5a44 | 73 | %setup -q -n w32api-%{version} -a1 |
e140e9ef | 74 | %patch0 -p1 |
919c5a44 AF |
75 | |
76 | %build | |
d44aab03 | 77 | cp /usr/share/automake/config.sub . |
919c5a44 AF |
78 | %{__autoconf} |
79 | ./configure \ | |
80 | --prefix=%{_prefix} \ | |
81 | --host=%{target} \ | |
82 | --build=%{_target_platform} \ | |
83 | CFLAGS="-I`pwd`/%{runsrc}/include %{rpmcflags}" | |
84 | ||
85 | %{__make} | |
918d7632 JB |
86 | |
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
918d7632 | 89 | |
919c5a44 AF |
90 | %{__make} install \ |
91 | inst_libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
92 | inst_includedir=$RPM_BUILD_ROOT%{_includedir} | |
93 | ||
94 | %{!?debug:%{target}-strip -g $RPM_BUILD_ROOT%{_libdir}/*.a} | |
918d7632 | 95 | |
8d461b1e | 96 | install %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/GL |
97 | ||
918d7632 JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
919c5a44 AF |
103 | %dir %{_includedir} |
104 | %{_includedir}/* | |
105 | %{_libdir}/lib[!d]*.a | |
106 | %{_libdir}/libdlcapi.a | |
107 | %{_libdir}/libdxapi.a | |
b31b1ba9 | 108 | %exclude %{_libdir}/libglut*.a |
109 | %exclude %{_includedir}/dxerr*.h | |
110 | %exclude %{_includedir}/d3d*.h | |
918d7632 JB |
111 | |
112 | %files dx | |
113 | %defattr(644,root,root,755) | |
919c5a44 AF |
114 | %{_libdir}/libd[!lx]*.a |
115 | %{_libdir}/libdxguid.a | |
e140e9ef JK |
116 | %{_libdir}/libdxerr8.a |
117 | %{_libdir}/libdxerr9.a | |
b31b1ba9 | 118 | %{_includedir}/dxerr*.h |
119 | %{_includedir}/d3d*.h |