c03cb2a4c042c12ba8a4f3d789dabc7dfd557de4
[fedora-mingw.git] / mingw64-headers.spec
1 # SVN repo: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64
2 # svn co https://....
3 # tar zcf mingw-w64-headers-%{svn_revision}.tar.gz \
4 #   mingw-w64/trunk/mingw-w64-headers
5 %define svn_revision 607
6
7 Name:           mingw64-headers
8 Version:        0.1
9 Release:        0.svn%{svn_revision}.10%{?dist}
10 Summary:        Win32 header files and stubs
11
12 License:        Public Domain and LGPLv2+
13 Group:          Development/Libraries
14
15 URL:            http://mingw-w64.sourceforge.net/
16 Source0:        mingw-w64-headers-%{svn_revision}.tar.gz
17
18 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20 BuildArch:      noarch
21
22 BuildRequires:  mingw64-filesystem >= 10
23
24 Requires:       mingw64-filesystem >= 10
25
26
27 %description
28 MinGW Windows cross-compiler Win64 header files.
29
30
31 %prep
32 %setup -q -n mingw-w64
33
34 find -name .svn | xargs rm -r
35 find -name ChangeLog -delete
36
37 # There are a few other odd *.c and *.dlg files amongst the
38 # headers.  Should we delete them?  (XXX)
39
40
41 %build
42 # nothing
43
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 # This is different from mingw32.  By default GCC 4.4 searches for
49 # headers in these two directories:
50 #   /usr/x86_64-pc-mingw32/include
51 #   /usr/x86_64-pc-mingw32/sys-root/mingw/include64  (symlink to ./include)
52
53 mkdir -p $RPM_BUILD_ROOT%{_mingw64_includedir}
54
55 cp -a trunk/mingw-w64-headers/include/* $RPM_BUILD_ROOT%{_mingw64_includedir}
56 cp -a trunk/mingw-w64-headers/direct-x/include/* $RPM_BUILD_ROOT%{_mingw64_includedir}
57
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62
63 %files
64 %defattr(-,root,root)
65 %{_mingw64_includedir}/*
66
67
68 %changelog
69 * Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1-0.svn607.10
70 - Started mingw64 development.
71
72 * Mon Dec 15 2008 Richard W.M. Jones <rjones@redhat.com> - 3.13-1
73 - New upstream version 3.13.
74
75 * Tue Dec  9 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-8
76 - Force rebuild to get rid of the binary bootstrap package and replace
77   with package built from source.
78
79 * Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-7
80 - No runtime dependency on binutils or gcc.
81
82 * Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-6
83 - Rebuild against latest filesystem package.
84 - Rewrite the summary for accuracy and brevity.
85
86 * Fri Nov 21 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-4
87 - Remove obsoletes for a long dead package.
88 - Enable _mingw32_configure (Levente Farkas).
89
90 * Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-3
91 - Rebuild against mingw32-filesystem 37
92
93 * Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-2
94 - Rebuild against mingw32-filesystem 36
95
96 * Thu Oct 16 2008 Richard W.M. Jones <rjones@redhat.com> - 3.12-1
97 - New upstream version 3.12.
98
99 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-7
100 - Rename mingw -> mingw32.
101
102 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-6
103 - Moved ole provides to mingw-filesystem package.
104
105 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-3
106 - Use the RPM macros from mingw-filesystem.
107
108 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-2
109 - Initial RPM release, largely based on earlier work from several sources.