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)
32 This package contains the base filesystem layout, RPM macros and
33 environment for all Fedora MinGW packages.
35 This environment is maintained by the Fedora MinGW SIG at:
37 http://fedoraproject.org/wiki/SIGs/MinGW
43 sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw-find-requires.sh
51 rm -rf $RPM_BUILD_ROOT
53 mkdir -p $RPM_BUILD_ROOT
55 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
56 install -m 644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
58 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
59 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.mingw
61 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32
63 # GCC requires these directories, even though they contain links
64 # to binaries which are also installed in /usr/bin etc. These
65 # contain Fedora native binaries.
66 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/bin
67 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/lib
69 # The MinGW system root which will contain Windows native binaries
70 # and Windows-specific header files, man pages, pkgconfig, etc.
71 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw
72 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin
73 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/doc
74 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include
75 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/sys
76 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib
77 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig
78 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share
79 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc
80 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man
81 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}
83 # Note that some packages try to install in
84 # /usr/i686-pc-mingw32/sys-root/mingw/man and
85 # /usr/i686-pc-mingw32/sys-root/mingw/doc
86 # but these are both packaging bugs.
89 mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
90 install -m 0755 mingw-find-requires.sh $RPM_BUILD_ROOT/usr/lib/rpm
91 install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm
92 install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT/usr/lib/rpm
96 rm -rf $RPM_BUILD_ROOT
100 %defattr(-,root,root,-)
102 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw
103 %config(noreplace) %{_sysconfdir}/profile.d/mingw.sh
104 %config(noreplace) %{_sysconfdir}/profile.d/mingw.csh
105 %{_prefix}/i686-pc-mingw32/
110 * Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 20-1
111 - On 64 bit install in /usr/lib/rpm always.
113 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 19-1
114 - 'user32.dll' is provided by Windows.
115 - Allow '-' in DLL names.
116 - More accurate detection of DLLs in requires/provides scripts.
118 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 17-1
119 - Automatically add mingw-filesystem and mingw-runtime requires.
120 - Add --prefix to _mingw_configure macro.
121 - Three backslashes required on each continuation line in RPM macros.
123 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 14-1
124 - Fix path to mingw-find-requires/provides scripts.
126 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 12-1
127 - Put CFLAGS on a single line to avoid problems in some configure scripts.
129 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 10-1
130 - Provides certain base Windows DLLs (not literally).
132 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 9-1
133 - Include RPM dependency generators and definitions.
135 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4-1
136 - Add _mingw_cc/cflags/etc. and _mingw_configure macros.
138 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3-1
139 - Add _mingw_host macro.
141 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2-1
142 - Add _mingw_sysroot macro.
143 - Add _mingw_target macro.
145 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1-1
146 - Basic filesystem layout.