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