49db041972d3a57d624971ee5d6b8a018545c345
[fedora-mingw.git] / w32api / mingw-w32api.spec
1 %include /usr/lib/rpm/mingw-defs
2
3 Name:           mingw-w32api
4 Version:        3.11
5 Release:        3%{?dist}
6 Summary:        MinGW Windows cross-compiler Win32 header files
7
8 License:        Public Domain
9 Group:          Development/Libraries
10 URL:            http://www.mingw.org/
11 Source0:        http://dl.sourceforge.net/sourceforge/mingw/w32api-%{version}-src.tar.gz
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildArch:      noarch
15
16 BuildRequires:  mingw-filesystem >= 3
17 BuildRequires:  mingw-binutils
18 BuildRequires:  mingw-gcc
19 BuildRequires:  mingw-runtime
20
21 Requires:       mingw-filesystem >= 3
22 Requires:       mingw-binutils
23 Requires:       mingw-gcc
24 Requires:       mingw-runtime
25
26 # Once this is installed, mingw-bootstrap (binary bootstrapper) is no
27 # longer needed.
28 Obsoletes:      mingw-bootstrap
29
30 #%define _use_internal_dependency_generator 0
31 #%define __debug_install_post %{nil}
32
33
34 %description
35 MinGW Windows cross-compiler Win32 header files.
36
37
38 %prep
39 %setup -q -n w32api-%{version}
40
41 %build
42 ./configure \
43   --build=%_build \
44   --host=%{_mingw_host}
45
46 make
47
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 make prefix=$RPM_BUILD_ROOT%{_mingw_prefix} install
53
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58
59 %files
60 %defattr(-,root,root)
61 %{_mingw_includedir}/*
62 %{_mingw_libdir}/*
63
64 %changelog
65 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-3
66 - Use the RPM macros from mingw-filesystem.
67
68 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11-2
69 - Initial RPM release, largely based on earlier work from several sources.