]> git.pld-linux.org Git - packages/crossmingw32-w32api.git/blame - crossmingw32-w32api.spec
- conflicts with crossmingw32-runtime with sdkddkver.h header
[packages/crossmingw32-w32api.git] / crossmingw32-w32api.spec
CommitLineData
63f5c7e5
JB
1Summary: MinGW32 Binary Utility Development Utilities - Win32 API libraries
2Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - biblioteki API Win32
918d7632 3Name: crossmingw32-w32api
d7853113 4Version: 5.0.2
918d7632 5%define apiver %{version}
016e24cb 6%define apisrc w32api-%{apiver}-mingw32
d7853113 7%define runver 5.0.2
83952021 8%define runsrc mingwrt-%{runver}-mingw32
016e24cb 9Release: 1
918d7632 10Epoch: 1
11250f98 11License: Free (Public Domain, SGI Free Software License B, BSD)
918d7632 12Group: Development/Libraries
016e24cb 13Source0: http://downloads.sourceforge.net/mingw/%{apisrc}-src.tar.xz
d7853113 14# Source0-md5: 716b956cdd2e70feed6861e9fbd1a116
919c5a44 15# only for headers
016e24cb 16Source1: http://downloads.sourceforge.net/mingw/%{runsrc}-src.tar.xz
d7853113
JB
17# Source1-md5: 9865c83624b0e80178fdc709ebbc5e15
18# https://www.khronos.org/registry/OpenGL/api/GL/
19Source2: https://www.khronos.org/registry/OpenGL/api/GL/glext.h
20# Source2-md5: b6843d4fb386784479cfa76a94719a1e
21Source3: https://www.khronos.org/registry/OpenGL/api/GL/wgl.h
22# Source3-md5: 425b343fe764cfcc478db28566e0679a
23Source4: https://www.khronos.org/registry/OpenGL/api/GL/wglext.h
24# Source4-md5: 6ab4da87f8e08c7a6f75fd846379eef8
016e24cb 25Patch0: %{name}-mmsystem.patch
918d7632 26URL: http://www.mingw.org/
016e24cb 27BuildRequires: autoconf >= 2.64
d44aab03 28BuildRequires: automake
919c5a44 29BuildRequires: crossmingw32-gcc
00b933e7
JB
30BuildRequires: tar >= 1:1.22
31BuildRequires: xz
e140e9ef 32Requires: crossmingw32-binutils >= 2.15.91.0.2-2
918d7632 33Obsoletes: crossmingw32-platform
e589e418 34Conflicts: crossmingw32-runtime < 1:4.0.3-5
918d7632
JB
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%define target i386-mingw32
38%define target_platform i386-pc-mingw32
0b8b136e 39%define _prefix /usr/%{target}
49644b0a 40%define _libdir %{_prefix}/lib
918d7632
JB
41
42# strip fails on static COFF files
43%define no_install_post_strip 1
44
1a969af4 45%define filterout_ld -Wl,-z,.*
016e24cb 46%define filterout_c -gdwarf-3 -fstack-protector.*
1a969af4 47
11250f98 48%ifnarch %{ix86} %{x8664} x32
168d35de 49# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
0b8b136e
JB
50%define optflags -O2
51%endif
52
918d7632
JB
53%description
54crossmingw32 is a complete cross-compiling development system for
55building stand-alone Microsoft Windows applications under Linux using
63f5c7e5 56the MinGW32 build libraries. This includes a binutils, gcc with g++
918d7632
JB
57and objc, and libstdc++, all cross targeted to i386-mingw32, along
58with supporting Win32 libraries in 'coff' format from free sources.
59
60This package contains Win32 API includes and libraries.
61
250c0546
JR
62%description -l pl.UTF-8
63crossmingw32 jest kompletnym systemem do kompilacji skrośnej,
64pozwalającym budować aplikacje MS Windows pod Linuksem używając
63f5c7e5 65bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc,
250c0546 66libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz
9553b4d5 67z bibliotek w formacie COFF.
918d7632 68
250c0546 69Ten pakiet zawiera pliki nagłówkowe i biblioteki Win32 API.
918d7632
JB
70
71%package dx
72Summary: DirectX from MinGW Win32 API
877c8c53 73Summary(pl.UTF-8): DirectX z API Win32 dla MinGW
918d7632 74Group: Development/Libraries
919c5a44 75Requires: %{name} = %{epoch}:%{version}-%{release}
2ea7e25f
JB
76Provides: crossmingw32-dx
77Obsoletes: crossmingw32-dx
918d7632
JB
78
79%description dx
80DirectX from MinGW Win32 API.
81
250c0546 82%description dx -l pl.UTF-8
918d7632
JB
83DirectX z API Win32 dla MinGW.
84
85%prep
016e24cb
JB
86%setup -q -c -a1
87ln -snf w32api-%{apiver} w32api
88ln -snf mingwrt-%{runver} mingwrt
89cd w32api
e140e9ef 90%patch0 -p1
919c5a44
AF
91
92%build
016e24cb 93cd w32api
d44aab03 94cp /usr/share/automake/config.sub .
919c5a44
AF
95%{__autoconf}
96./configure \
97 --prefix=%{_prefix} \
98 --host=%{target} \
016e24cb 99 --build=%{_target_platform}
919c5a44
AF
100
101%{__make}
918d7632
JB
102
103%install
104rm -rf $RPM_BUILD_ROOT
918d7632 105
016e24cb 106%{__make} -C w32api install \
83952021 107 libdir=$RPM_BUILD_ROOT%{_libdir} \
108 includedir=$RPM_BUILD_ROOT%{_includedir}
109
919c5a44 110%{!?debug:%{target}-strip -g $RPM_BUILD_ROOT%{_libdir}/*.a}
918d7632 111
d7853113 112cp -p %{SOURCE2} %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT%{_includedir}/GL
8d461b1e 113
918d7632
JB
114%clean
115rm -rf $RPM_BUILD_ROOT
116
117%files
118%defattr(644,root,root,755)
016e24cb 119%doc w32api/{CONTRIBUTIONS,ChangeLog,README.w32api,TODO}
c4490213
JB
120%{_libdir}/libaclui.a
121%{_libdir}/libadvapi32.a
122%{_libdir}/libapcups.a
123%{_libdir}/libavicap32.a
124%{_libdir}/libavifil32.a
125%{_libdir}/libbthprops.a
126%{_libdir}/libcap.a
127%{_libdir}/libcfgmgr32.a
128%{_libdir}/libcomctl32.a
129%{_libdir}/libcomdlg32.a
130%{_libdir}/libcrypt32.a
131%{_libdir}/libctl3d32.a
132%{_libdir}/libdhcpcsvc.a
133%{_libdir}/libdlcapi.a
134%{_libdir}/libdnsapi.a
135%{_libdir}/libdxapi.a
136%{_libdir}/libfaultrep.a
137%{_libdir}/libgdi32.a
138%{_libdir}/libgdiplus.a
139%{_libdir}/libglaux.a
140%{_libdir}/libglu32.a
141%{_libdir}/libhal.a
142%{_libdir}/libhid.a
143%{_libdir}/libhidparse.a
144%{_libdir}/libicmui.a
145%{_libdir}/libigmpagnt.a
146%{_libdir}/libimagehlp.a
147%{_libdir}/libimm32.a
148%{_libdir}/libiphlpapi.a
149%{_libdir}/libkernel32.a
150%{_libdir}/libksproxy.a
151%{_libdir}/libksuser.a
152%{_libdir}/liblargeint.a
153%{_libdir}/liblz32.a
154%{_libdir}/libmapi32.a
155%{_libdir}/libmcd.a
156%{_libdir}/libmfcuia32.a
157%{_libdir}/libmgmtapi.a
158%{_libdir}/libmpr.a
159%{_libdir}/libmprapi.a
160%{_libdir}/libmqrt.a
161%{_libdir}/libmsacm32.a
162%{_libdir}/libmscms.a
163%{_libdir}/libmsdmo.a
164%{_libdir}/libmsimg32.a
165%{_libdir}/libmsvcp60.a
166%{_libdir}/libmsvfw32.a
167%{_libdir}/libmswsock.a
168%{_libdir}/libnddeapi.a
169%{_libdir}/libndis.a
170%{_libdir}/libnetapi32.a
171%{_libdir}/libnewdev.a
172%{_libdir}/libntdll.a
173%{_libdir}/libntoskrnl.a
174%{_libdir}/libodbc32.a
175%{_libdir}/libodbccp32.a
176%{_libdir}/libole32.a
177%{_libdir}/liboleacc.a
178%{_libdir}/liboleaut32.a
179%{_libdir}/libolecli32.a
180%{_libdir}/liboledlg.a
181%{_libdir}/libolepro32.a
182%{_libdir}/libolesvr32.a
183%{_libdir}/libopengl32.a
184%{_libdir}/libpenwin32.a
185%{_libdir}/libpkpd32.a
186%{_libdir}/libpowrprof.a
187%{_libdir}/libpsapi.a
188%{_libdir}/libquartz.a
189%{_libdir}/librapi.a
190%{_libdir}/librasapi32.a
191%{_libdir}/librasdlg.a
192%{_libdir}/librpcdce4.a
193%{_libdir}/librpcns4.a
194%{_libdir}/librpcrt4.a
195%{_libdir}/librtm.a
196%{_libdir}/librtutils.a
197%{_libdir}/libscrnsave.a
198%{_libdir}/libscrnsavw.a
199%{_libdir}/libscsiport.a
200%{_libdir}/libsecur32.a
201%{_libdir}/libsetupapi.a
202%{_libdir}/libshell32.a
203%{_libdir}/libshfolder.a
204%{_libdir}/libshlwapi.a
205%{_libdir}/libsnmpapi.a
206%{_libdir}/libstrmiids.a
207%{_libdir}/libsvrapi.a
208%{_libdir}/libtapi32.a
209%{_libdir}/libtdi.a
210%{_libdir}/libthunk32.a
211%{_libdir}/liburl.a
212%{_libdir}/libusbcamd.a
213%{_libdir}/libusbcamd2.a
214%{_libdir}/libuser32.a
215%{_libdir}/libuserenv.a
216%{_libdir}/libusp10.a
217%{_libdir}/libuuid.a
218%{_libdir}/libuxtheme.a
219%{_libdir}/libvdmdbg.a
220%{_libdir}/libversion.a
221%{_libdir}/libvfw32.a
222%{_libdir}/libvideoprt.a
223%{_libdir}/libwin32k.a
224%{_libdir}/libwin32spl.a
225%{_libdir}/libwininet.a
226%{_libdir}/libwinmm.a
227%{_libdir}/libwinspool.a
228%{_libdir}/libwinstrm.a
229%{_libdir}/libwldap32.a
230%{_libdir}/libwow32.a
231%{_libdir}/libws2_32.a
232%{_libdir}/libwsnmp32.a
233%{_libdir}/libwsock32.a
234%{_libdir}/libwst.a
235%{_libdir}/libwtsapi32.a
919c5a44 236%dir %{_includedir}
d7853113 237%{_includedir}/_winsock.h
c4490213
JB
238%{_includedir}/accctrl.h
239%{_includedir}/aclapi.h
240%{_includedir}/aclui.h
241%{_includedir}/adsprop.h
242%{_includedir}/afxres.h
243%{_includedir}/amaudio.h
244%{_includedir}/amvideo.h
245%{_includedir}/audevcod.h
246%{_includedir}/aviriff.h
247%{_includedir}/aygshell.h
248%{_includedir}/basetsd.h
249%{_includedir}/basetyps.h
250%{_includedir}/bdatypes.h
251%{_includedir}/cderr.h
252%{_includedir}/cguid.h
253%{_includedir}/cmnquery.h
254%{_includedir}/comcat.h
255%{_includedir}/commctrl.h
256%{_includedir}/commdlg.h
257%{_includedir}/control.h
258%{_includedir}/cpl.h
259%{_includedir}/cplext.h
260%{_includedir}/custcntl.h
2ea7e25f
JB
261%{_includedir}/dbt.h
262%{_includedir}/dde.h
263%{_includedir}/ddeml.h
264%{_includedir}/devguid.h
265%{_includedir}/dhcpcsdk.h
266%{_includedir}/dlgs.h
267%{_includedir}/docobj.h
268%{_includedir}/dsadmin.h
269%{_includedir}/dsclient.h
270%{_includedir}/dsgetdc.h
271%{_includedir}/dsquery.h
272%{_includedir}/dsrole.h
273%{_includedir}/dvdevcod.h
274%{_includedir}/dvdmedia.h
c4490213
JB
275%{_includedir}/edevdefs.h
276%{_includedir}/errorrep.h
277%{_includedir}/errors.h
278%{_includedir}/evcode.h
279%{_includedir}/exdisp.h
280%{_includedir}/exdispid.h
281%{_includedir}/fltdefs.h
282%{_includedir}/gdiplus.h
283%{_includedir}/httpext.h
284%{_includedir}/icm.h
285%{_includedir}/idispids.h
286%{_includedir}/il21dec.h
287%{_includedir}/imagehlp.h
288%{_includedir}/imm.h
289%{_includedir}/initguid.h
290%{_includedir}/intshcut.h
291%{_includedir}/ipexport.h
292%{_includedir}/iphlpapi.h
293%{_includedir}/ipifcons.h
294%{_includedir}/ipinfoid.h
295%{_includedir}/iprtrmib.h
296%{_includedir}/iptypes.h
297%{_includedir}/ipxconst.h
298%{_includedir}/ipxrtdef.h
299%{_includedir}/ipxtfflt.h
300%{_includedir}/isguids.h
301%{_includedir}/ks.h
302%{_includedir}/ksmedia.h
303%{_includedir}/largeint.h
304%{_includedir}/lm.h
305%{_includedir}/lmaccess.h
306%{_includedir}/lmalert.h
307%{_includedir}/lmapibuf.h
308%{_includedir}/lmat.h
309%{_includedir}/lmaudit.h
310%{_includedir}/lmbrowsr.h
311%{_includedir}/lmchdev.h
312%{_includedir}/lmconfig.h
313%{_includedir}/lmcons.h
314%{_includedir}/lmerr.h
315%{_includedir}/lmerrlog.h
316%{_includedir}/lmmsg.h
317%{_includedir}/lmremutl.h
318%{_includedir}/lmrepl.h
319%{_includedir}/lmserver.h
320%{_includedir}/lmshare.h
321%{_includedir}/lmsname.h
322%{_includedir}/lmstats.h
323%{_includedir}/lmsvc.h
324%{_includedir}/lmuse.h
325%{_includedir}/lmuseflg.h
326%{_includedir}/lmwksta.h
327%{_includedir}/lzexpand.h
328%{_includedir}/mapi.h
329%{_includedir}/mciavi.h
330%{_includedir}/mcx.h
331%{_includedir}/mgm.h
332%{_includedir}/mgmtapi.h
333%{_includedir}/mlang.h
334%{_includedir}/mmreg.h
335%{_includedir}/mmsystem.h
336%{_includedir}/mpegtype.h
337%{_includedir}/mprapi.h
338%{_includedir}/mq.h
339%{_includedir}/msacm.h
340%{_includedir}/mshtml.h
341%{_includedir}/mswsock.h
342%{_includedir}/nb30.h
343%{_includedir}/nddeapi.h
344%{_includedir}/nspapi.h
345%{_includedir}/ntdef.h
346%{_includedir}/ntdll.h
347%{_includedir}/ntdsapi.h
348%{_includedir}/ntdsbcli.h
349%{_includedir}/ntldap.h
350%{_includedir}/ntsecapi.h
351%{_includedir}/ntsecpkg.h
352%{_includedir}/oaidl.h
353%{_includedir}/objbase.h
354%{_includedir}/objfwd.h
355%{_includedir}/objidl.h
356%{_includedir}/objsafe.h
357%{_includedir}/objsel.h
358%{_includedir}/ocidl.h
359%{_includedir}/odbcinst.h
360%{_includedir}/ole.h
361%{_includedir}/ole2.h
362%{_includedir}/ole2ver.h
363%{_includedir}/oleacc.h
364%{_includedir}/oleauto.h
365%{_includedir}/olectl.h
366%{_includedir}/olectlid.h
367%{_includedir}/oledlg.h
368%{_includedir}/oleidl.h
369%{_includedir}/pbt.h
370%{_includedir}/poppack.h
371%{_includedir}/powrprof.h
372%{_includedir}/prsht.h
373%{_includedir}/psapi.h
374%{_includedir}/pshpack1.h
375%{_includedir}/pshpack2.h
376%{_includedir}/pshpack4.h
377%{_includedir}/pshpack8.h
378%{_includedir}/qedit.h
379%{_includedir}/rapi.h
380%{_includedir}/ras.h
381%{_includedir}/rasdlg.h
382%{_includedir}/raserror.h
383%{_includedir}/rassapi.h
384%{_includedir}/reason.h
385%{_includedir}/regstr.h
386%{_includedir}/richedit.h
387%{_includedir}/richole.h
388%{_includedir}/routprot.h
389%{_includedir}/rpc.h
390%{_includedir}/rpcdce.h
391%{_includedir}/rpcdce2.h
392%{_includedir}/rpcdcep.h
393%{_includedir}/rpcndr.h
394%{_includedir}/rpcnsi.h
395%{_includedir}/rpcnsip.h
396%{_includedir}/rpcnterr.h
397%{_includedir}/rpcproxy.h
398%{_includedir}/rtutils.h
399%{_includedir}/schannel.h
400%{_includedir}/schnlsp.h
401%{_includedir}/scrnsave.h
402%{_includedir}/sddl.h
016e24cb 403%{_includedir}/sdkddkver.h
c4490213
JB
404%{_includedir}/secext.h
405%{_includedir}/security.h
406%{_includedir}/servprov.h
407%{_includedir}/setupapi.h
408%{_includedir}/shellapi.h
409%{_includedir}/shldisp.h
410%{_includedir}/shlguid.h
411%{_includedir}/shlobj.h
412%{_includedir}/shlwapi.h
016e24cb 413%{_includedir}/shobjidl.h
c4490213
JB
414%{_includedir}/snmp.h
415%{_includedir}/specstrings.h
416%{_includedir}/sql.h
417%{_includedir}/sqlext.h
418%{_includedir}/sqltypes.h
419%{_includedir}/sqlucode.h
420%{_includedir}/sspi.h
421%{_includedir}/stm.h
422%{_includedir}/strmif.h
423%{_includedir}/subauth.h
424%{_includedir}/svcguid.h
425%{_includedir}/tlhelp32.h
426%{_includedir}/tmschema.h
427%{_includedir}/unknwn.h
428%{_includedir}/userenv.h
429%{_includedir}/usp10.h
430%{_includedir}/uxtheme.h
431%{_includedir}/vfw.h
432%{_includedir}/vidcap.h
433%{_includedir}/vmr9.h
434%{_includedir}/vptype.h
435%{_includedir}/w32api.h
436%{_includedir}/winable.h
437%{_includedir}/winbase.h
438%{_includedir}/winber.h
439%{_includedir}/wincon.h
440%{_includedir}/wincrypt.h
441%{_includedir}/windef.h
442%{_includedir}/windns.h
443%{_includedir}/windows.h
444%{_includedir}/windowsx.h
445%{_includedir}/winerror.h
446%{_includedir}/wingdi.h
447%{_includedir}/wininet.h
448%{_includedir}/winioctl.h
449%{_includedir}/winldap.h
450%{_includedir}/winnetwk.h
451%{_includedir}/winnls.h
452%{_includedir}/winnt.h
453%{_includedir}/winperf.h
454%{_includedir}/winreg.h
455%{_includedir}/winresrc.h
456%{_includedir}/winsnmp.h
457%{_includedir}/winsock.h
458%{_includedir}/winsock2.h
459%{_includedir}/winspool.h
460%{_includedir}/winsvc.h
461%{_includedir}/winuser.h
462%{_includedir}/winver.h
463%{_includedir}/ws2spi.h
464%{_includedir}/ws2tcpip.h
465%{_includedir}/wsahelp.h
466%{_includedir}/wsipx.h
467%{_includedir}/wsnetbs.h
468%{_includedir}/wtsapi32.h
469%{_includedir}/wtypes.h
470%{_includedir}/xprtdefs.h
471%{_includedir}/zmouse.h
2ea7e25f
JB
472%{_includedir}/GL
473%{_includedir}/ddk
8397fc49 474%{_includedir}/gdiplus
918d7632
JB
475
476%files dx
477%defattr(644,root,root,755)
2ea7e25f
JB
478%{_libdir}/libd3d8.a
479%{_libdir}/libd3d9.a
480%{_libdir}/libd3dim.a
481%{_libdir}/libd3drm.a
482%{_libdir}/libd3dx8d.a
483%{_libdir}/libd3dx9d.a
484%{_libdir}/libd3dxof.a
485%{_libdir}/libddraw.a
486%{_libdir}/libdinput.a
487%{_libdir}/libdinput8.a
488%{_libdir}/libdmoguids.a
489%{_libdir}/libdplayx.a
490%{_libdir}/libdpnaddr.a
491%{_libdir}/libdpnet.a
492%{_libdir}/libdpnlobby.a
493%{_libdir}/libdpvoice.a
494%{_libdir}/libdsetup.a
495%{_libdir}/libdsound.a
e140e9ef
JK
496%{_libdir}/libdxerr8.a
497%{_libdir}/libdxerr9.a
2ea7e25f
JB
498%{_libdir}/libdxguid.a
499%{_includedir}/d3d9*.h
500%{_includedir}/dshow.h
501%{_includedir}/dxerr8.h
502%{_includedir}/dxerr9.h
This page took 2.088733 seconds and 4 git commands to generate.