]>
Commit | Line | Data |
---|---|---|
e86b7230 | 1 | |
2 | %define realname gettext | |
3 | %define snapshot 2003.02.01-1 | |
4 | Summary: iconv | |
5 | Name: crossmingw32-%{realname} | |
6 | Version: 0.11.5 | |
7 | Release: 1 | |
8 | License: LGPL | |
9 | Group: Libraries | |
10 | Source0: http://dl.sourceforge.net/mingw/%{realname}-%{version}-%{snapshot}-src.tar.bz2 | |
3cf55ad9 | 11 | Patch0: crossmingw32-gettext.patch |
e86b7230 | 12 | URL: http://www.gnu.org/software/gettext/ |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: gtk-doc >= 0.9-4 | |
16 | BuildRequires: libtool | |
17 | BuildRequires: rpm-build >= 4.1-8.2 | |
3cf55ad9 | 18 | BuildRequires: crossmingw32-libiconv |
e86b7230 | 19 | BuildRoot: %{tmpdir}/%{realname}-%{version}-root-%(id -u -n) |
20 | ||
21 | %define no_install_post_strip 1 | |
22 | ||
23 | %define target i386-mingw32 | |
24 | %define target_platform i386-pc-mingw32 | |
25 | %define arch %{_prefix}/%{target} | |
26 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
27 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
28 | ||
29 | %define __cc %{target}-gcc | |
30 | %define __cxx %{target}-g++ | |
31 | ||
32 | %description | |
33 | gettext | |
34 | ||
35 | %prep | |
36 | %setup -q -n %{realname}-%{version} | |
3cf55ad9 | 37 | %patch0 -p1 |
e86b7230 | 38 | |
39 | %build | |
40 | CC=%{target}-gcc ; export CC | |
41 | CXX=%{target}-g++ ; export CXX | |
42 | LD=%{target}-ld ; export LD | |
43 | AR=%{target}-ar ; export AR | |
44 | AS=%{target}-as ; export AS | |
45 | CROSS_COMPILE=1 ; export CROSS_COMPILE | |
46 | CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS | |
47 | RANLIB=%{target}-ranlib ; export RANLIB | |
48 | ||
49 | #rm -f missing | |
50 | %{__libtoolize} | |
51 | %{__aclocal} -I m4 | |
52 | %{__autoconf} | |
53 | ||
54 | %configure \ | |
55 | --target=%{target} \ | |
56 | --host=%{target_platform} \ | |
57 | --prefix=%{arch} \ | |
58 | --disable-static \ | |
59 | --bindir=%{arch}/bin \ | |
60 | --libdir=%{arch}/lib \ | |
61 | --includedir=%{arch}/include | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT%{_mandir} | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %{arch} |