]>
Commit | Line | Data |
---|---|---|
61701235 | 1 | |
2 | %define realname libiconv | |
3 | %define snapshot 2003.02.01-1 | |
4 | Summary: iconv | |
5 | Name: crossmingw32-%{realname} | |
6 | Version: 1.8 | |
7 | Release: 1 | |
8 | License: LGPL | |
9 | Group: Libraries | |
10 | Source0: http://dl.sourceforge.net/mingw/%{realname}-%{version}-%{snapshot}-src.tar.bz2 | |
d57663a5 | 11 | # Source0-md5: 3cda71fd0e14d5f5fa4eca85f053eaea |
61701235 | 12 | Patch0: crossmingw32-libiconv.patch |
13 | URL: http://www.gnu.org/software/libiconv/ | |
d57663a5 | 14 | BuildRequires: autoconf >= 2.57 |
61701235 | 15 | BuildRequires: automake |
16 | BuildRequires: gtk-doc >= 0.9-4 | |
17 | BuildRequires: libtool | |
18 | BuildRequires: rpm-build >= 4.1-8.2 | |
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 | |
d57663a5 | 33 | The libiconv library provides an iconv() implementation, for use on |
34 | systems which don't have one, or whose implementation cannot convert | |
35 | from/to Unicode. | |
36 | ||
37 | This package contains the cross version for Win32. | |
38 | ||
61701235 | 39 | |
40 | %prep | |
41 | %setup -q -n %{realname}-%{version} | |
42 | %patch0 -p1 | |
43 | ||
44 | %build | |
45 | CC=%{target}-gcc ; export CC | |
46 | CXX=%{target}-g++ ; export CXX | |
47 | LD=%{target}-ld ; export LD | |
48 | AR=%{target}-ar ; export AR | |
49 | AS=%{target}-as ; export AS | |
50 | CROSS_COMPILE=1 ; export CROSS_COMPILE | |
51 | CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS | |
52 | ||
53 | rm -f missing | |
54 | %{__libtoolize} | |
55 | %{__aclocal} | |
56 | %{__autoconf} | |
57 | ||
58 | %configure \ | |
59 | --target=%{target} \ | |
60 | --host=%{target_platform} \ | |
61 | --prefix=%{arch} \ | |
62 | --disable-static \ | |
63 | --bindir=%{arch}/bin \ | |
64 | --libdir=%{arch}/lib \ | |
65 | --includedir=%{arch}/include | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT%{_mandir} | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %{arch} |