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