Fix https handling under Wine. Better error checking.
[fedora-mingw.git] / runtime / mingw32-runtime.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 Name:           mingw32-runtime
8 Version:        3.15.1
9 Release:        1%{?dist}
10 Summary:        MinGW Windows cross-compiler runtime and root filesystem
11
12 License:        Public Domain
13 Group:          Development/Libraries
14 URL:            http://www.mingw.org/
15 Source0:        http://dl.sourceforge.net/sourceforge/mingw/mingwrt-%{version}-mingw32-src.tar.gz
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 Patch0:         mingw32-runtime-3.15.1-useconds_t.patch
19
20 BuildArch:      noarch
21
22 BuildRequires:  mingw32-filesystem >= 26
23 BuildRequires:  mingw32-binutils
24 BuildRequires:  mingw32-gcc
25
26 Requires:       mingw32-filesystem >= 26
27 Requires:       mingw32-binutils
28 Requires:       mingw32-gcc
29
30 # Once this is installed, mingw32-bootstrap (binary bootstrapper) is no
31 # longer needed.
32 Obsoletes:      mingw32-runtime-bootstrap
33 Obsoletes:      mingw-runtime-bootstrap
34
35 Provides:       mingw-runtime = %{version}-%{release}
36 Obsoletes:      mingw-runtime < 3.14-5
37
38
39 %description
40 MinGW Windows cross-compiler runtime, base libraries.
41
42
43 %prep
44 %setup -q -n mingwrt-%{version}-mingw32
45 %patch0 -p1
46
47
48 %build
49 CFLAGS="-I%{_mingw32_includedir}" \
50 ./configure \
51   --build=%_build \
52   --host=%{_mingw32_host}
53
54 make
55
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 make prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} install
61
62 # make install places these in nonstandard locations, so move them.
63 mkdir -p $RPM_BUILD_ROOT%{_mingw32_docdir}
64 mv $RPM_BUILD_ROOT%{_mingw32_prefix}/doc/* $RPM_BUILD_ROOT%{_mingw32_docdir}/
65 mkdir -p $RPM_BUILD_ROOT%{_mingw32_mandir}
66 mv $RPM_BUILD_ROOT%{_mingw32_prefix}/man/* $RPM_BUILD_ROOT%{_mingw32_mandir}/
67
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72
73 %files
74 %defattr(-,root,root)
75 %{_mingw32_bindir}/*
76 %{_mingw32_docdir}/*
77 %{_mingw32_includedir}/*
78 %{_mingw32_libdir}/*
79 %{_mingw32_mandir}/man3/*
80
81
82 %changelog
83 * Thu Oct 16 2008 Richard W.M. Jones <rjones@redhat.com> - 3.15.1-1
84 - New upstream version 3.15.1.
85
86 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 3.14-6
87 - Rename mingw -> mingw32.
88
89 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.14-4
90 - Use RPM macros from mingw-filesystem.
91
92 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 3.14-2
93 - Initial RPM release, largely based on earlier work from several sources.