1 %define debug_package %{nil}
6 Summary: MinGW base filesystem and environment
8 Group: Development/Libraries
10 URL: http://hg.et.redhat.com/misc/fedora-mingw--devel/
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 Source0: mingw-COPYING
15 Source1: mingw-macros.mingw
18 Source4: mingw-find-requires.sh
19 Source5: mingw-find-provides.sh
25 # These are actually provided by Windows itself, or Wine.
26 Provides: mingw(msvcrt.dll)
27 Provides: mingw(kernel32.dll)
28 Provides: mingw(user32.dll)
29 Provides: mingw(gdi32.dll)
30 Provides: mingw(ole32.dll)
34 This package contains the base filesystem layout, RPM macros and
35 environment for all Fedora MinGW packages.
37 This environment is maintained by the Fedora MinGW SIG at:
39 http://fedoraproject.org/wiki/SIGs/MinGW
45 sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw-find-requires.sh
53 rm -rf $RPM_BUILD_ROOT
55 mkdir -p $RPM_BUILD_ROOT
57 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
58 install -m 644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
60 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
61 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.mingw
63 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32
65 # GCC requires these directories, even though they contain links
66 # to binaries which are also installed in /usr/bin etc. These
67 # contain Fedora native binaries.
68 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/bin
69 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/lib
71 # The MinGW system root which will contain Windows native binaries
72 # and Windows-specific header files, man pages, pkgconfig, etc.
73 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw
74 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin
75 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/doc
76 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include
77 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/sys
78 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib
79 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig
80 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share
81 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc
82 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man
83 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,l,n}
85 # Note that some packages try to install in
86 # /usr/i686-pc-mingw32/sys-root/mingw/man and
87 # /usr/i686-pc-mingw32/sys-root/mingw/doc
88 # but these are both packaging bugs.
91 mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
92 install -m 0755 mingw-find-requires.sh $RPM_BUILD_ROOT/usr/lib/rpm
93 install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm
94 install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT/usr/lib/rpm
98 rm -rf $RPM_BUILD_ROOT
102 %defattr(-,root,root,-)
104 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw
105 %config(noreplace) %{_sysconfdir}/profile.d/mingw.sh
106 %config(noreplace) %{_sysconfdir}/profile.d/mingw.csh
107 %{_prefix}/i686-pc-mingw32/
112 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 23-1
113 - Add macros for find-provides/requires scripts
115 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 22-1
116 - Windows provides OLE32.DLL.
118 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 21-1
119 - Allow '.' in dll names for find-requires
120 - Windows provides GDI32.DLL.
122 * Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 20-1
123 - On 64 bit install in /usr/lib/rpm always.
125 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 19-1
126 - 'user32.dll' is provided by Windows.
127 - Allow '-' in DLL names.
128 - More accurate detection of DLLs in requires/provides scripts.
130 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 17-1
131 - Automatically add mingw-filesystem and mingw-runtime requires.
132 - Add --prefix to _mingw_configure macro.
133 - Three backslashes required on each continuation line in RPM macros.
135 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 14-1
136 - Fix path to mingw-find-requires/provides scripts.
138 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 12-1
139 - Put CFLAGS on a single line to avoid problems in some configure scripts.
141 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 10-1
142 - Provides certain base Windows DLLs (not literally).
144 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 9-1
145 - Include RPM dependency generators and definitions.
147 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4-1
148 - Add _mingw_cc/cflags/etc. and _mingw_configure macros.
150 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3-1
151 - Add _mingw_host macro.
153 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2-1
154 - Add _mingw_sysroot macro.
155 - Add _mingw_target macro.
157 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1-1
158 - Basic filesystem layout.