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.
88 mkdir -p $RPM_BUILD_ROOT%{_libdir}/rpm
89 install -m 0755 mingw-find-requires.sh $RPM_BUILD_ROOT%{_libdir}/rpm
90 install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/rpm
91 install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/rpm
95 rm -rf $RPM_BUILD_ROOT
99 %defattr(-,root,root,-)
101 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw
102 %config(noreplace) %{_sysconfdir}/profile.d/mingw.sh
103 %config(noreplace) %{_sysconfdir}/profile.d/mingw.csh
104 %{_prefix}/i686-pc-mingw32/
105 %{_libdir}/rpm/mingw-*
109 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 19-1
110 - 'user32.dll' is provided by Windows.
111 - Allow '-' in DLL names.
112 - More accurate detection of DLLs in requires/provides scripts.
114 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 17-1
115 - Automatically add mingw-filesystem and mingw-runtime requires.
116 - Add --prefix to _mingw_configure macro.
117 - Three backslashes required on each continuation line in RPM macros.
119 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 14-1
120 - Fix path to mingw-find-requires/provides scripts.
122 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 12-1
123 - Put CFLAGS on a single line to avoid problems in some configure scripts.
125 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 10-1
126 - Provides certain base Windows DLLs (not literally).
128 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 9-1
129 - Include RPM dependency generators and definitions.
131 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4-1
132 - Add _mingw_cc/cflags/etc. and _mingw_configure macros.
134 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3-1
135 - Add _mingw_host macro.
137 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2-1
138 - Add _mingw_sysroot macro.
139 - Add _mingw_target macro.
141 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1-1
142 - Basic filesystem layout.