Replace %include of defs with explicit macros to avoid chicken+egg problem in mock...
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Sep 2008 10:37:04 +0000 (06:37 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Sep 2008 10:37:04 +0000 (06:37 -0400)
25 files changed:
atk/mingw-atk.spec
cairo/mingw-cairo.spec
example/mingw-example.spec
fontconfig/mingw-fontconfig.spec
freetype/mingw-freetype.spec
gettext/mingw-gettext.spec
glib2/mingw-glib2.spec
gnutls/mingw-gnutls.spec
gtk2/mingw-gtk2.spec
iconv/mingw-iconv.spec
jasper/mingw-jasper.spec
libgcrypt/mingw-libgcrypt.spec
libgpg-error/mingw-libgpg-error.spec
libjpeg/mingw-libjpeg.spec
libpng/mingw-libpng.spec
libvirt/mingw-libvirt.spec
libxml2/mingw-libxml2.spec
pango/mingw-pango.spec
pixman/mingw-pixman.spec
portablexdr/mingw-portablexdr.spec
runtime-bootstrap/mingw-runtime-bootstrap.spec [moved from bootstrap/mingw-bootstrap.spec with 84% similarity]
runtime/mingw-runtime.spec
w32api-bootstrap/mingw-w32api-bootstrap.spec [new file with mode: 0644]
w32api/mingw-w32api.spec
zlib/mingw-zlib.spec

index 0a1b18c..11d0e16 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-atk
 Version:        1.23.5
@@ -14,7 +18,7 @@ Patch1: atk-%{version}-mingw.patch
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-iconv
index 813317c..9f885e2 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-cairo
 Version:        1.7.4
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libxml2
index 7492ba3..3a1c5d5 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-example
 Version:        1.2.3
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 21
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 # Any additional BuildRequires.
index 2a523e3..02fccb9 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-fontconfig
 Version:        2.6.0
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-freetype
index d51c5d3..14efc25 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-freetype
 Version:        2.3.7
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-zlib
index 35a1368..4ad4b95 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:      mingw-gettext
 Version:   0.17
@@ -13,6 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch: noarch
 
+BuildRequires: mingw-filesystem >= 23
 BuildRequires: mingw-gcc
 BuildRequires: mingw-gcc-c++
 BuildRequires: mingw-binutils
index fe3e83f..9e62088 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-glib2
 Version:        2.18.0
@@ -15,7 +19,7 @@ BuildArch:      noarch
 
 Patch2:         gio-2.16-only-pass-uri-to-gio-apps.patch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-iconv
index 7f29228..b478cdb 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-gnutls
 Version:        2.4.1
@@ -15,7 +19,7 @@ BuildArch:      noarch
 
 Patch0:         gnutls-certtool-build.patch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libgpg-error
index 6145e5d..0a90999 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-gtk2
 Version:        2.14.0
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-iconv
index c173597..fea6c24 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:      mingw-iconv
 Version:   1.12
@@ -12,7 +16,7 @@ Source0:   http://ftp.gnu.org/pub/gnu/libiconv/libiconv-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 
-BuildRequires: mingw-filesystem >= 19
+BuildRequires: mingw-filesystem >= 23
 BuildRequires: mingw-gcc
 BuildRequires: mingw-binutils
 
index 26e6d41..30e67b3 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-jasper
 Version:        1.900.1
@@ -16,7 +20,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libjpeg
index 483e6c8..924dd9b 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libgcrypt
 Version:        1.4.1
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libgpg-error
index 3110408..f10adcd 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libgpg-error
 Version:        1.6
@@ -12,7 +16,7 @@ Source0:        ftp://ftp.gnupg.org/GnuPG/libgpg-error/libgpg-error-%{version}.t
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 17
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-gettext
index fc50282..72ba205 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libjpeg
 Version:        6b
@@ -9,7 +13,7 @@ License:        IJG
 URL:            http://www.ijg.org/
 Group:          Development/Libraries
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0:        ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
+Source0:        ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.bz2
 Source1:        libjpeg-configure.in
 
 Patch1:         jpeg-c++.patch
@@ -21,7 +25,7 @@ Patch100:       jpeg-mingw.patch
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libpng
index 64b13a5..6769998 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libpng
 Version:        1.2.31
@@ -13,10 +17,10 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
-
+BuildRequires:  mingw-zlib
 
 %description
 MinGW Windows Libpng library.
index c0d66ea..34de139 100644 (file)
@@ -1,4 +1,8 @@
-%include        /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libvirt
 Version:        0.4.5
@@ -11,7 +15,7 @@ URL:            http://www.libvirt.org/
 Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libgpg-error
index 0aba19a..0138197 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-libxml2
 Version:        2.6.32
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-zlib
index 8aeab6a..d761ed6 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-pango
 Version:        1.21.6
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-iconv
index 334ada2..77c46d2 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-pixman
 Version:        0.11.10
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 
index ce52d91..4069ace 100644 (file)
@@ -1,4 +1,8 @@
-%include /usr/lib/rpm/mingw-defs
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-portablexdr
 Version:        4.0.10
@@ -13,7 +17,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 19
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 
similarity index 84%
rename from bootstrap/mingw-bootstrap.spec
rename to runtime-bootstrap/mingw-runtime-bootstrap.spec
index 3af55fb..0adcd5c 100644 (file)
@@ -4,9 +4,8 @@
 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
 
 %define runtime_version 3.14
-%define w32api_version 3.11
 
-Name:           mingw-bootstrap
+Name:           mingw-runtime-bootstrap
 Version:        1
 Release:        3%{?dist}
 Summary:        MinGW Windows bootstrap (binary package)
@@ -16,12 +15,10 @@ License:        Public Domain
 URL:            http://www.mingw.org/
 
 Source0:        http://dl.sourceforge.net/sourceforge/mingw/mingw-runtime-%{runtime_version}.tar.gz
-Source1:        http://dl.sourceforge.net/sourceforge/mingw/w32api-%{w32api_version}.tar.gz
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Provides:       mingw-runtime = %{runtime_version}
-Provides:       mingw-w32api = %{w32api_version}
 
 
 %description
@@ -30,8 +27,6 @@ MinGW bootstrap (binary package).
 
 %prep
 %setup -q -c
-%setup -q -D -T -a1
-
 
 %build
 rm -rf i686-pc-mingw32
index 1078fe9..4cddf3b 100644 (file)
@@ -1,4 +1,9 @@
-%include /usr/lib/rpm/mingw-defs
+
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-runtime
 Version:       3.14
@@ -13,17 +18,17 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:     noarch
 
-BuildRequires:  mingw-filesystem >= 9
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-gcc
 
-Requires:       mingw-filesystem >= 9
+Requires:       mingw-filesystem >= 23
 Requires:       mingw-binutils
 Requires:       mingw-gcc
 
 # Once this is installed, mingw-bootstrap (binary bootstrapper) is no
 # longer needed.
-Obsoletes:      mingw-bootstrap
+Obsoletes:      mingw-runtime-bootstrap
 
 
 %description
diff --git a/w32api-bootstrap/mingw-w32api-bootstrap.spec b/w32api-bootstrap/mingw-w32api-bootstrap.spec
new file mode 100644 (file)
index 0000000..aa2a8ec
--- /dev/null
@@ -0,0 +1,58 @@
+# NOTE: NOT a Fedora package.  This contains binaries which are needed
+# just to bootstrap the whole system if you build everything from scratch.
+
+%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
+
+%define w32api_version 3.11
+
+Name:           mingw-w32api-bootstrap
+Version:        1
+Release:        3%{?dist}
+Summary:        MinGW Windows bootstrap (binary package)
+
+Group:          Development/Libraries
+License:        Public Domain
+URL:            http://www.mingw.org/
+
+Source0:        http://dl.sourceforge.net/sourceforge/mingw/w32api-%{w32api_version}.tar.gz
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Provides:       mingw-w32api = %{w32api_version}
+
+
+%description
+MinGW bootstrap (binary package).
+
+
+%prep
+%setup -q -c
+
+%build
+rm -rf i686-pc-mingw32
+
+# Setup sys-root.
+mkdir -p i686-pc-mingw32/sys-root/mingw
+cp -a include lib i686-pc-mingw32/sys-root/mingw
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT%{_prefix}
+cp -a i686-pc-mingw32 $RPM_BUILD_ROOT%{_prefix}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root)
+%dir %{_prefix}/i686-pc-mingw32
+%{_prefix}/i686-pc-mingw32/sys-root
+
+
+%changelog
+* Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 1-3
+- Initial RPM release.
index 81ec52b..3cadcf6 100644 (file)
@@ -1,4 +1,9 @@
-%include /usr/lib/rpm/mingw-defs
+
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-w32api
 Version:       3.11
@@ -13,19 +18,19 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:     noarch
 
-BuildRequires:  mingw-filesystem >= 3
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-runtime
 
-Requires:       mingw-filesystem >= 3
+Requires:       mingw-filesystem >= 23
 Requires:       mingw-binutils
 Requires:       mingw-gcc
 Requires:       mingw-runtime
 
 # Once this is installed, mingw-bootstrap (binary bootstrapper) is no
 # longer needed.
-Obsoletes:      mingw-bootstrap
+Obsoletes:      mingw-w32api-bootstrap
 
 #%define _use_internal_dependency_generator 0
 #%define __debug_install_post %{nil}
index 7ab1a94..88d57c7 100644 (file)
@@ -1,4 +1,9 @@
-%include /usr/lib/rpm/mingw-defs
+
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
 
 Name:           mingw-zlib
 Version:        1.2.3
@@ -13,7 +18,7 @@ Patch1:         zlib-win32.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
-BuildRequires:  mingw-filesystem >= 12
+BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils