1 %define debug_package %{nil}
3 Name: mingw32-filesystem
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: mingw32-COPYING
15 Source1: mingw32-macros.mingw32
18 Source4: mingw32-find-requires.sh
19 Source5: mingw32-find-provides.sh
24 # These are actually provided by Windows itself, or Wine.
25 Provides: mingw32(gdi32.dll)
26 Provides: mingw32(kernel32.dll)
27 Provides: mingw32(ole32.dll)
28 Provides: mingw32(mscoree.dll)
29 Provides: mingw32(msvcrt.dll)
30 Provides: mingw32(user32.dll)
32 Obsoletes: mingw-filesystem = %{version}-%{release}
33 Provides: mingw-filesystem < 26
37 This package contains the base filesystem layout, RPM macros and
38 environment for all Fedora MinGW packages.
40 This environment is maintained by the Fedora MinGW SIG at:
42 http://fedoraproject.org/wiki/SIGs/MinGW
48 sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw32-find-requires.sh
56 rm -rf $RPM_BUILD_ROOT
58 mkdir -p $RPM_BUILD_ROOT
60 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
61 install -m 644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
63 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
64 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.mingw32
66 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32
68 # GCC requires these directories, even though they contain links
69 # to binaries which are also installed in /usr/bin etc. These
70 # contain Fedora native binaries.
71 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/bin
72 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/lib
74 # The MinGW system root which will contain Windows native binaries
75 # and Windows-specific header files, pkgconfig, etc.
76 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw
77 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin
78 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include
79 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/sys
80 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib
81 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig
83 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal
85 # We don't normally package manual pages and info files, except
86 # where those are not supplied by a Fedora native package. So we
87 # need to create the directories.
89 # Note that some packages try to install stuff in
90 # /usr/i686-pc-mingw32/sys-root/mingw/man and
91 # /usr/i686-pc-mingw32/sys-root/mingw/doc
92 # but those are both packaging bugs.
93 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share
94 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc
95 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info
96 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man
97 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}
100 mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
101 install -m 0755 mingw32-find-requires.sh $RPM_BUILD_ROOT/usr/lib/rpm
102 install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm
106 rm -rf $RPM_BUILD_ROOT
110 %defattr(-,root,root,-)
112 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw32
113 %config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
114 %config(noreplace) %{_sysconfdir}/profile.d/mingw32.csh
115 %{_prefix}/i686-pc-mingw32/
116 /usr/lib/rpm/mingw32-*
120 * Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 29-1
121 - Added _mingw32_as, _mingw32_dlltool, _mingw32_windres.
123 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 27-1
124 - Begin the grand renaming of mingw -> mingw32.
125 - Added mingw32(mscoree.dll).
127 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 25-1
128 - Add shared aclocal directory.
130 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 24-1
131 - Remove mingw-defs, since no longer used.
132 - Add _mingw_infodir.
134 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 23-1
135 - Add macros for find-provides/requires scripts
137 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 22-1
138 - Windows provides OLE32.DLL.
140 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 21-1
141 - Allow '.' in dll names for find-requires
142 - Windows provides GDI32.DLL.
144 * Fri Sep 5 2008 Richard W.M. Jones <rjones@redhat.com> - 20-1
145 - On 64 bit install in /usr/lib/rpm always.
147 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 19-1
148 - 'user32.dll' is provided by Windows.
149 - Allow '-' in DLL names.
150 - More accurate detection of DLLs in requires/provides scripts.
152 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 17-1
153 - Automatically add mingw-filesystem and mingw-runtime requires.
154 - Add --prefix to _mingw_configure macro.
155 - Three backslashes required on each continuation line in RPM macros.
157 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 14-1
158 - Fix path to mingw-find-requires/provides scripts.
160 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 12-1
161 - Put CFLAGS on a single line to avoid problems in some configure scripts.
163 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 10-1
164 - Provides certain base Windows DLLs (not literally).
166 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 9-1
167 - Include RPM dependency generators and definitions.
169 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4-1
170 - Add _mingw_cc/cflags/etc. and _mingw_configure macros.
172 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3-1
173 - Add _mingw_host macro.
175 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2-1
176 - Add _mingw_sysroot macro.
177 - Add _mingw_target macro.
179 * Mon Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1-1
180 - Basic filesystem layout.